[ale] linux gateway...? simple question?

hirsch at zapmedia.com hirsch at zapmedia.com
Mon Nov 12 09:15:30 EST 2001


Christopher Bergeron writes:
 > Hi guys, I'm having a bit of a prob. I'm hoping is easy to resolve.  I
 > finally got my cablemodem on Saturday (w00 h00!).  Well, I can get out fine
 > with my linux box.  I'm trying to set my girlfriends windos machine up to
 > get internet via my linux box/cablemodem.
 > 
 > Background:
 > a) linux box gets out(internet) fine on eth1; DHCP, gets DNS from provider,
 > etc.
 > b) win box is connected to linux box on eth0 (via hub)
 > c) win box has linux box set as gateway machine.
 > d) win box has static ip assigned to it.
 > e) win box has DNS set same as linux box's DNS
 > f) IP_FORWARD = YES is set in /etc/sysconfig/network on linux box

You also need to set you linux box up for IP Masquerading (aka NAT in
the non-linux world).  Your linux router needs to replace the IP
address of the windows box with its own IP address for out going, and
vice versa for incoming email intended for the windows box.

There is a very useful HOWTO at linuxdoc.org.

--Michael

 > g) win box can ping linux box(eth0) fine.
 > h) win box CAN'T get internet via hostname _or_ IP addy.
 > i) default route on linux box is ISP/CABLEMODEM;
 > 
 > what am I doing wrong?  Do i need a route for the 192.168 (internal) net to
 > send packets over to the 24.88.(external) interface?  I thought forwarding
 > would did this...  My kernel is 2.4;
 > 
 > My routing table has:
 >   my external network 	(24.88.22.0) 	eth1
 >   my internal network 	(192.168.0.0) 	eth0
 >   my loopback 		(127.0.0.0) 	lo
 >   my default gw 		(24.88.22.1) 	eth1
 > 
 > If anyone needs any more info, I can gladly provide it.  I'm at my wits end
 > on this, and I fear that I've done something stupid that I just can't see.
 > 
 > If anyone can provide me with any leads, I would greatly appreciate it!!!
 > 
 > TIA,
 > CB

---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list