How to setup mandrake 9 ICS


Recommended Posts

I don't feel like getting into anything complicated right now, so I'll just post the commands I use to enable simple connection sharing.

You may have to edit the commands slightly to fit your setup.

Just change "eth0" to eth1 or eth2..3..4 etc..

<pre>

/sbin/iptables -F; /sbin/iptables -t nat -F; /sbin/iptables -t mangle -F

/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

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

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

/sbin/iptables -A INPUT -m state --state NEW -i eth0 -j ACCEPT

</pre>

Just type or copy/paste them into a terminal/konsole.

It should work with the default mandrake 9.0 installation.

To enable connection sharing everytime you boot, you can edit /etc/rc.d/rc.local and copy/paste those commands at the end of the file.

Link to comment
Share on other sites

*dreams of a day when people will stop calling network address translation (NAT) "ICS"*

Look for iptables tutorials. No one linux user calls it ICS, that's a term reserved for ignorant windows users who have no clue what they're doing. There are TONS of websites dedicated to helping people with iptables, and a number of GUI frontends and shell scripts to do it for you.

Link to comment
Share on other sites

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

    • No registered users viewing this page.