Hi Karol I would use ipchains and all yo need are these entries on the gateway machine: # Enable chaining echo "1" > /proc/sys/net/ipv4/ip_forward echo "1" > /proc/sys/net/ipv4/ip_dynaddr # Flush any existing chain rules /sbin/ipchains -F # Chain timing /sbin/ipchains -M -S 7200 10 160 # Default deny policy /sbin/ipchains -P forward DENY # Forward internal LAN through external card for all users /sbin/ipchains -A forward -s 192.168.0.0/24 -j MASQ /sbin/ipchains -A forward -i eth0 -j MASQ Good luck! Chris On Sat, 8 Sep 2001 23:16:05 -0400, Karol Pietrzak wrote:
I want to set up a very simple gateway with no (at least not yet) firewalling capability. Just a simply gateway... I'm just got sure how to set it up. eth1: IP determined via dhcp; gateway to Internet 10.1.0.1 eth0: static IP [ 192.168.22.1 ] for internal network
Currently three Windows 95 machines are connected via a hub to eth0 (IP addresses of the three machines are 192.168.22.[2-5]). 192.168.22.1 is set up as the gateway and DNS as 10.1.0.1 (this is how it's supposed to be).
How would the /etc/route.conf on the Linux gateway look like (I already turned on IP forwarding) to allow it to forward the IP packets from the three WIndows 95 machines to 10.1.0.1?
I have no way to test this out because I'm going to see this machine on Monday... Is this right?
100.204.1.0 * 255.255.255.0 eth1 # 100.204.1.X is the IP assigned via dhcp
default 10.1.0.1 10.0.0.0 10.1.0.1 255.0.0.0 eth1 192.168.0.0 * 255.255.0.0 eth0 127.0.0.0 * 255.0.0.0 lo
Would I need to configure IPchains / IPtables are well? -- noodlez: Karol Pietrzak PGP KeyID: 0x3A1446A0
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com