Share internet connection

root@kubuntu-desktop:~# ifconfig eth0 192.168.0.1
root@kubuntu-desktop:~# iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
root@kubuntu-desktop:~# echo 1 > /proc/sys/net/ipv4/ip_forward
root@kubuntu-desktop:~# /etc/init.d/dnsmasq restart
Restarting DNS forwarder and DHCP server: dnsmasq.
root@kubuntu-desktop:~# dpkg-reconfigure ipmasq
root@kubuntu-desktop:~# ifconfig eth0 192.168.0.1
root@kubuntu-desktop:~# iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
root@kubuntu-desktop:~# nano /etc/sysctl.conf

Leave a Reply