Sitat Ragnar Wiencke <[EMAIL PROTECTED]>:

> Hi guys.
> 
> I have a RH 7.1 box running which I intended to use as a firewall and
> router 
> for the families's windows boxes with an ADSL connection through an
> external 
> Zyxel Prestige 645 modem.
> 
> For testing I got the ADSL connection up and running and from that
> machine I 
> can connect to the Internet and everything is ok.
> 
> Now the RH box has two nics's. Eth0 (10.0.0.132/16)is connected to
> the modem 
> and eth1 (192.168.1.254/24) is connected to the lan. Running 'netstat
> -rn' 
> gives this output:
> 
> root@vesturgate /root]# netstat -rn
> Kernel IP routing table
> Destination  Gateway  Genmask  Flags MSS Window irtt Iface
> 157.157.56.1 0.0.0.0  255.255.255.255 UH 40 0 0 ppp0
> 192.168.1.0  0.0.0.0  255.255.255.0  U 40 0 0 eth0
> 10.0.0.0   0.0.0.0  255.255.0.0  U 40 0 0 eth1
> 127.0.0.0   0.0.0.0  255.0.0.0   U 40 0 0 lo
> 0.0.0.0   157.157.56.1 0.0.0.0   UG 40 0 0 ppp0


Hmmm, the ppp0 suggests you have an ISP that does ppp-over-ethernet. 
Is that right? In that case, at least with my ISP, you don't assign an ip 
address to the eth1, that is bound to the ppp0 virtual interface. Your routing 
table does not correspond to the explanation above, by the way. eth1 and 
eth0 are swapped around. My routing table looks like this at home:

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt 
Iface
x.x.x.x    0.0.0.0         255.255.255.255 UH       40 0          0 ppp0
192.168.1.0     0.0.0.0         255.255.255.0   U        40 0          0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U        40 0          0 lo
0.0.0.0         0.0.0.0         0.0.0.0         U        40 0          0 ppp0

If you really are doing pppoe with your ADSL, i suggest you take a look at 
Roaring Penguin. Rock solid and efficient pppoe client. Also takes care of 
the MTU problem so you don't have to change that on all the clients.

> 
> and I ran the command 'echo "1" > /proc/sys/net/ipv4/ip_forward'
> 

Good, you need that. make sure you edit /etc/sysctl to make it stick across 
reboots.

> The win98 machine (192.168.1.135/24) I configured with the eth0
> address as 
> default gateway and for the dns I used the addresses from my ISP, the
> same 
> as in the '/etc/resolv.conf' file on the RH box.
> 
> The routing table on the win98 box looks like this:
> 
> Network Address Netmask Gateway Address  Interface  Metric
> 0.0.0.0  0.0.0.0  192.168.1.254  192.168.1.135 1
> 127.0.0.0  255.0.0.0  127.0.0.1   127.0.0.1  1
> 192.168.1.0 255.255.255.0192.168.1.135 192.168.1.135  1
> 192.168.1.135 255.255.255.255 127.0.0.1 127.0.0.1  1
> 192.168.1.255-255.255.255.255 192.168.1.135-192.168.1.135  1
> 224.0.0.0 224.0.0.0 192.168.1.135 192.168.1.135  1
> 255.255.255.255 255.255.255.255 192.168.1.135-0.0.0.0  1

Jeez. I've never looked at the routing table on the Win9x boxes. It should 
know the LAN and the default gw, isn't that enough?

> 
> Now comes my problem. When I try to ping the outside world from the
> win98 
> box I get the 'unknown hosts' message. When I try to ping the DNS
> addresses 
> I get the 'request timed out' message.
> 
> IPTABLES have not been configured yet, the RH box is wide open both
> ways (I 
> think).
> 

> Ragnar W.

Hey, you stole mine ;-)


--
Mvh Ragnar Wisløff
------------------
life is a reach. then you gybe.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to