SWB DSL - Disappointment [aka ports problem]

Brian Densmore DensmoreB at ctbsonline.com
Wed Jul 17 13:49:43 CDT 2002


> One more thing, I'm still having problems trying to
> forward ports with iptables.
> Linux router with two NICs (eth0, 192.168.1.1 and
> eth1, 192.168.2.1). These are the gateways to their
> respective networks. I have a host with IP
> 192.168.1.50 trying to request a web page from the
> webserver at IP 192.168.2.10. I can't get it to work.
> I have IP_FORWARD enabled and these are the rules I've
> tried:
> 
You might try putting the two NICs on separate subnets.
It's very bad practice to have two NICs in the same machine
on the same subnet. 

Something like this:
eth0 192.168.1.1
eth1 192.168.129.1

and then every PC connected to eth0 should be less than 192.168.128.1
and every PC on eth1 should be greater than 192.168.129.1

HTH,
Brian




More information about the Kclug mailing list