Hi,
I still got a few questions about routing under SuSE 7.1 . I've posted
before about this and got a couple of answers that confuse me (but thanks
for answering).
I don't know what I have to do next.
The IP's are well configured. IP-Routing is on, eth0 is a network card for
connecting to the internet. eth1 for the home-network. eth0 gets assigned a
new IP every time my PC starts up, so I can't specify a static IP. eth1 has
a static IP 192.168.0.1
Now I got the following guidelines
route add default gw <WAN-Side-IP> dev eth1
and then:
ipchains -A forward -j MASQ -s 192.168.4.0/24 -d 0.0.0.0/0
(note: this doesn't restrict anything)
Now a secong person told me after showing this line above:
NO. A default route should only lead to the internet (eth1). If you used
YaST2 to set up eth0, there should automatically be a -net route to your
LAN (192.168.0.0 netmask 255.255.255.0 dev eth0).
However, other boxes on your LAN should point to your LAN IP for their gw
and should have your ISP's DNS servers entered (if not running local DNS).
Another person gave me another ipchains rule:
Bij mij /sbin/ipchains -I forward -p all -j MASQ -s 192.168.1.0/24 -d
0.0.0.0/0
OK this is rather confusing. Is there someone who can tell me what I have to
do exactly,
because I'm a newbe and have screwed up my internet connection once before
by trying these kind of things.
thanks for helping me out,
T.G.