Dale wrote: > I ran those commands and it now works fine. I can ssh and everything. > When I run /etc/init.d/iptables save, where does it save those too? I > want to save the rules I had, just in case. I thought it was in /var > somewhere but I can't find it. > >
- It is defined in "/etc/conf.d/iptables" as variable named IPTABLES_SAVE. > I need to learn iptables I guess. It looks like those commands open > everything up. I also don't know if it will connect the second rig to > the net through my main box. Something I'll have to test out later. > No, it would not connect the second rig to The Internet if you use reserved IP addresses (eg. 10.X.X.X or 192.168.X.X). In that case you have to enable ip forwarding and network address translation (NAT) on the rig which is connected to The Internet. May be it is a good start to read the "Home Router Guide" [1]. The following quick & dirty guide should be suffucient: 1) put "net.ipv4.ip_forward = 1" in "/etc/sysctl.conf" 2) sysctl -p 3) iptables -t nat -A POSTROUTING -o ethX -j MASQUERADE (replace "ethX" with the name of the interface connected to The Internet) 4) /etc/init.d/iptables save 5) rc-update -a iptables default Please, read the guide [1] provided by Gentoo. The solution I'm showing here is really dirty because it doesn't provide any security. [1] http://www.gentoo.org/doc/en/home-router-howto.xml -- Best regards, Daniel -- [email protected] mailing list

