<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.weweweb.net/wiki/index.php?action=history&amp;feed=atom&amp;title=LinuxDailup</id>
	<title>LinuxDailup - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.weweweb.net/wiki/index.php?action=history&amp;feed=atom&amp;title=LinuxDailup"/>
	<link rel="alternate" type="text/html" href="https://www.weweweb.net/wiki/index.php?title=LinuxDailup&amp;action=history"/>
	<updated>2026-05-16T18:23:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://www.weweweb.net/wiki/index.php?title=LinuxDailup&amp;diff=87&amp;oldid=prev</id>
		<title>Willy: Created page with &quot;Add a network interface (Private IP)   ifconfig eth0:0 netmask 255.255.255.0 192.168.10.50  route add -host 192.168.10.50 dev eth0:0  Add ipchains of masq   ipchains -A forwar...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.weweweb.net/wiki/index.php?title=LinuxDailup&amp;diff=87&amp;oldid=prev"/>
		<updated>2022-01-27T04:02:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Add a network interface (Private IP)   ifconfig eth0:0 netmask 255.255.255.0 192.168.10.50  route add -host 192.168.10.50 dev eth0:0  Add ipchains of masq   ipchains -A forwar...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Add a network interface (Private IP)&lt;br /&gt;
&lt;br /&gt;
 ifconfig eth0:0 netmask 255.255.255.0 192.168.10.50&lt;br /&gt;
 route add -host 192.168.10.50 dev eth0:0&lt;br /&gt;
&lt;br /&gt;
Add ipchains of masq&lt;br /&gt;
&lt;br /&gt;
 ipchains -A forward -s 192.168.10.0/24 -j MASQ&lt;br /&gt;
&lt;br /&gt;
If you are using iptables (which is used to replace ipchains in the new Linux system), you don't need to create the interface eth0:0. Use the follow iptables rules:&lt;br /&gt;
&lt;br /&gt;
 iptables --flush&lt;br /&gt;
 iptables --table nat --flush&lt;br /&gt;
 iptables --delete-chain&lt;br /&gt;
 iptables --table nat --delete-chain&lt;br /&gt;
 iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE&lt;br /&gt;
 iptables --append FORWARD --in-interface ppp0 -j ACCEPT&lt;br /&gt;
 echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;br /&gt;
&lt;br /&gt;
In /etc/inittab, activate the serial line&lt;br /&gt;
&lt;br /&gt;
 S0:2345:respawn /sbin/mgetty ttyS0&lt;br /&gt;
 S1:2345:respawn /sbin/mgetty ttyS1&lt;br /&gt;
&lt;br /&gt;
Start from Fedora 9, the Upstart is used to replace SysVInit, so you can't put it in inittab. In /etc/event.d, create a file ttyS0 with the following content:&lt;br /&gt;
&lt;br /&gt;
 # ttyS0 - getty&lt;br /&gt;
 #&lt;br /&gt;
 # This service maintains a getty on ttyS0 from the point the system is&lt;br /&gt;
 # started until it is shut down again.&lt;br /&gt;
 &lt;br /&gt;
 start on stopped rc2&lt;br /&gt;
 start on stopped rc3&lt;br /&gt;
 start on stopped rc4&lt;br /&gt;
 start on stopped rc5&lt;br /&gt;
 start on started prefdm&lt;br /&gt;
 &lt;br /&gt;
 stop on runlevel 0&lt;br /&gt;
 stop on runlevel 1&lt;br /&gt;
 stop on runlevel 6&lt;br /&gt;
 &lt;br /&gt;
 respawn&lt;br /&gt;
 exec /sbin/mgetty -D ttyS0&lt;br /&gt;
&lt;br /&gt;
To start the newly created service, use the command:&lt;br /&gt;
&lt;br /&gt;
 initctl start ttyS0&lt;br /&gt;
&lt;br /&gt;
In /etc/ppp/options, add the following lines:&lt;br /&gt;
&lt;br /&gt;
 syncmap 0&lt;br /&gt;
 netmask 255.255.255.0&lt;br /&gt;
 proxyarp&lt;br /&gt;
 lock&lt;br /&gt;
 crtscts&lt;br /&gt;
 modem&lt;br /&gt;
 ms-dns 202.14.67.4&lt;br /&gt;
 ms-dns 202.14.64.14&lt;br /&gt;
&lt;br /&gt;
In /etc/ppp, add file options.ttyS0&lt;br /&gt;
&lt;br /&gt;
 login&lt;br /&gt;
 require-pap&lt;br /&gt;
 192.168.10.51:192.168.10.56&lt;br /&gt;
&lt;br /&gt;
In /etc/ppp, add file options.ttyS1&lt;br /&gt;
&lt;br /&gt;
 login&lt;br /&gt;
 require-pap&lt;br /&gt;
 192.168.10.52:192.168.10.57&lt;br /&gt;
&lt;br /&gt;
In /etc/ppp/pap-secrets&lt;br /&gt;
&lt;br /&gt;
 #client    server     secret    IP addresses&lt;br /&gt;
 user1      *          &amp;quot;&amp;quot;        *&lt;br /&gt;
 user2      *          &amp;quot;&amp;quot;        *&lt;br /&gt;
&lt;br /&gt;
In /etc/ppp/chap-secrets, copy the contents of pap-secrets&lt;br /&gt;
&lt;br /&gt;
Set sticky for /usr/sbin/pppd:-&lt;br /&gt;
&lt;br /&gt;
 chmod u+s /usr/sbin/pppd&lt;br /&gt;
&lt;br /&gt;
In /etc/bashrc, add a line&lt;br /&gt;
&lt;br /&gt;
 alias ppp=&amp;quot;exec /usr/sbin/pppd -detach&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To reset the inittab file&lt;br /&gt;
&lt;br /&gt;
 init q&lt;br /&gt;
&lt;br /&gt;
To connect to modem use the program&lt;br /&gt;
&lt;br /&gt;
 minicom&lt;br /&gt;
&lt;br /&gt;
To initialize the minicom, use the &amp;quot;-s&amp;quot; option&lt;br /&gt;
----&lt;br /&gt;
Goto [[Linux]]&lt;/div&gt;</summary>
		<author><name>Willy</name></author>
	</entry>
</feed>