Hi all 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 had similar Problems with a Bintec-Router. We wanted to exchange the Bintec Router in a W2K-Envinontment with a Linux-Server with Mailserver/fetchmail and Firewall. There may be compatibility problems within the TCP/IP implementation of the 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
192.168.0.221 ...i cannot ping any ip on internet, and i cannot surf
Then you need a routing table that routes the internal and external ip's
to the router.
90.90.20.1 <-> Router = external device
192.168.0.221 <-> interal Net = internal device
Your Routing should look like this:
[root@server root]# /sbin/route -n
Kernel IP Routentabelle
Ziel Router Genmask Flags Metric Ref Use
Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0
eth1
90.90.20.0 0.0.0.0 255.255.255.0 U 0 0 0
eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
lo
0.0.0.0 <IP of the router> 0.0.0.0 UG 0 0
0 eth0
There must be a static route for each device if not set allready.
http://sdb.suse.de/de/sdb/html/key_form.html gives you help, search for
keyword "route":
The document: http://sdb.suse.de/de/sdb/html/maddin_route.html gives
detailed information about routing on a network:
/etc/route.conf must look like this:
# Destination Dummy/Gateway Netmask Device
#
# Net devices
#
127.0.0.0 0.0.0.0 255.255.255.0 lo
90.90.20.0 0.0.0.0 255.255.255.0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 eth1
#
# Gateway
#
default
too.
Obviously i can do it on the SLES, i can ping and surf the web.
Yes there is no routing acive on the SLES!
What can i have to do to use my SLES 7 as a router for the lan? It is necessary to use iptables?
Philippe