Linux ICS


Recommended Posts

I have linux installed on my box as a dual boot system, however I use ICS so the wife can connect 2 the internet from another pc in the bedroom, is it possible to do this with linux as well?

Link to comment
Share on other sites

If you mean you serving the internet for her, than yes. It's probably much better to do under Linux than windows even. I myself use IPTables to share my internet connection. Here is the script I use for simple sharing:

<pre>

iptables -F; iptables -t nat -F; iptables -t mangle -F

iptables -t nat -A POSTROUTING -s 192.168.0.0/255.255.255.0 -d ! 192.168.0.0/25$

echo 1 > /proc/sys/net/ipv4/ip_forward

iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

iptables -A INPUT -m state --state NEW -i ! eth0 -j ACCEPT

iptables -P INPUT DROP

</pre>

I also bring the eth1 interface up first with this command:

<pre>

ifconfig eth1 up 192.168.0.1 netmask 255.255.255.0

</pre>

I use dhcpd to serve dhcp requests so it is seemless integration if anything on the server ever changes. I never have to edit my client computers' settings.

Make sure you have all the necessary modules installed to use iptables. If you are using a 2.2 kernel you might want to look into iptables.

Good luck.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.