January 28th, 2002, 10:14 PM
linux for internet connection sharing
You could say that I am a newbie to Linux networking. I am trying to figure out how to use my Linux box to allow other computers in my network to access the Internet through it. Can someone give me a rundown as to what is necessary for this?
Thanks in Advance
January 28th, 2002, 10:33 PM
January 29th, 2002, 03:31 PM
Just in case you find those tutorials a little too cryptic (I do ), you can probably get file-sharing working by typing these 2 commands into the console:
echo 1 > /proc/sys/net/ipv4/ip_forward
ipchains -I forward -s 192.168.0.0/24 -d 0/0 -j MASQ
I am not a l33t Linux user, I'm a newbie, so I don't know if this is the best solution to the problem... it's quick though - hope it helps you!
February 17th, 2002, 10:16 PM
It's important to not to forget the security factors when using ipchains or iptables to do masquerading (or infact at any time).
Although it is simple enough to enable Internet Sharing (IP Masquerading) with a couple of commands, you shouldn't do this without proper firewalling to accompany it.
Make sure you find a suitable firewall script that supports IP Masquerading instead of just enabling IP Masquerading.
Just food for thought.