AW: [suse-security] Routing between 2 Networks
i've a SLES 7 ..on a server with 2 network cards.. one 192.168.0.221 and one with public Ip 90.90.20.1 connected directly to an ADSL router
I'd like to use the SLES as a router... I've turned on the ipforward option in /etc/rc.config
but if i set as the default gateway on a win98/2000 machine on the lan the 192.168.0.221 ...i cannot ping any ip on internet, and i cannot surf the web too.
Obviously i can do it on the SLES, i can ping and surf the web.
What can i have to do to use my SLES 7 as a router for the lan? It is necessary to use iptables? You have to set up NAT on your router. Your Win98/2000 machine has a private IP address, and no destination machine in the world knows where to send answer packets to a private IP address. There are so many private networks on our beautiful earth, all using the 192.168.x.x addresses. ;-) NAT means that the packets you send get the IP address of your router instead of the IP address of your client machine. The router
Hi, then knows to which client machine it has to forward the answer packets it receives. Yes, you can realize NAT with iptables. Bye Uli
participants (1)
-
Ulrich Roth