MMTS Sysadmin wrote:
Hello, guys!
Please, guide me of how to setup router. I need my network`s W98 computers see Internet thru my server (SuSE Linux 6.2). I.e., I need my Server work as a gateway.
On the way to internet another gateway is placed.
The current situation is: - from inside Linux Server is able to access both local and external network - W98 workstations are able to access Server only (even ping does not work for other IP) - naming is configured via SAMBA-WINS
I have tried all the documentation, but I don`t know, what is wrong. Please, see my config files (attached).
Hello, It seems to me you have two internal networks.
# /etc/route.conf 192.168.6.0 0.0.0.0 255.255.255.224 eth0 172.16.0.0 0.0.0.0 255.255.0.0 eth1 default 172.16.0.1
192.168.6.0 is a non-arbitrating network (not public), as s 172.16.0.0, so you route from one private net to another. In this case, you don't need to masquerade, but simply turn routing on, because I figure you have either a proxy or a firewall running on 172.16.0.1 which performs masquerading services. If you don't have a 172.16.0.0-network (you mistyped it or wanted another network), just specify the right number and start masquerading by typing this at the prompt (and optionally in a startup-script): echo 1 > /proc/sys/net/ipv4/ip_forward ipchains -I forward -j MASQ The first line enables IP-forwarding (neccesary to o masquerading), the second line tells the kernel it should masquerade. This could be a security-hole, because it will not only masquerade your 192.168.6.0-network to the outside world, but also vicce-versa, so you could specify some more parameters (man ipchains). If you have a caching nameserver on the 172.16-net, you can specify that on your clients, if not, I too advise you to set one up on your linux box and use that.
# /etc/resolv.conf search nameserver 195.50.0.161 nameserver 194.158.194.131
You will need to specify your local domain after 'search' (wel, you don't have to, but that way you dont have to type the whole hostname). Hope this helped you out some more, Greetings, Rogier -- 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/Doku/FAQ/