How To Share Dialup Internet Connection On Ubuntu Server
This article explain how to share your dialup internet connection on ubuntu linux. Just to share with the other. Here you are.
1. Change your statict network interface. In this example is eth1.
# vim /etc/network/interfaces
auto eth1
iface eth1 inet static
address 192.168.0.254
netmask 255.255.255.0
broadcast 192.168.0.255
where eth1 is the network card and ip is your desired server ip address. I used 192.168.0.254 as IP Address.
2. Configure the NAT:
# iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
where ppp0 is the network card that the Internet is coming from. Use ppp0 for dialup connection.
# echo 1 > /proc/sys/net/ipv4/ip_forward
3. Install dnsmasq and ipmasq using apt-get:
# apt-get install dnsmasq ipmasq
4. Reconfigure ipmasq to start after networking has been started:
# dpkg-reconfigure ipmasq
5. Add the line “net.ipv4.ip_forward = 1″ to /etc/sysctl.conf
# vim /etc/sysctl.conf
6. Set your client DNS to 192.168.0.254