[ale] linux routing problem

Eric Z. Ayers eric.ayers at mindspring.com
Thu Dec 2 22:26:03 EST 1999


Could it be for some reason that eth0 and eth1 got swapped around?
Here is my ipchains line. It doesn't reference a network device:

ipchains -A forward -j MASQ -s 10.34.13.0/24 -d 0.0.0.0/0  

the masquraded hosts are 10.34.13.1,  10.34.13.2,  10.34.13.3,  ...

-Eric.


michael mcdermott writes:
...
 > 
 > #echo 1 > /proc/sys/net/ipv4/ip_forward
 > #ipchains -P forward DENY
 > #ipchains -A forward -i eth1 -j MASQ
 > 
 > 
 > # netstat -nr
 > Kernel IP routing table
 > Destination     Gateway         Genmask         Flags   MSS Window  irtt
 > Iface
 > xxx.xxx.xxx.220 0.0.0.0         255.255.255.255 UH        0 0          0
 > eth1
 > 10.1.1.1        0.0.0.0         255.255.255.255 UH        0 0          0
 > eth0
 > xxx.xxx.xxx.192 0.0.0.0         255.255.255.224 U         0 0          0
 > eth1
 > 10.1.1.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         xxx.xxx.xxx.193 0.0.0.0         UG        0 0          0
 > eth1
 > 
 > # ifconfig
 > eth0      Link encap:Ethernet  HWaddr 00:10:4B:10:F9:53  
 >           inet addr:10.1.1.1  Bcast:10.1.1.1  Mask:255.255.255.0
 >           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 >           RX packets:822 errors:0 dropped:0 overruns:0 frame:0
 >           TX packets:324 errors:0 dropped:0 overruns:0 carrier:0
 >           collisions:0 txqueuelen:100 
 >           Interrupt:11 Base address:0xec00 
 > 
 > eth1      Link encap:Ethernet  HWaddr 00:10:5A:26:F3:A2  
 >           inet addr:xxx.xxx.xxx.220  Bcast:xxx.xxx.xxx.220
 > Mask:255.255.255.224              UP BROADCAST RUNNING MULTICAST 
 > MTU:1500  Metric:1
 >           RX packets:5597 errors:0 dropped:0 overruns:0 frame:0
 >           TX packets:6362 errors:0 dropped:0 overruns:0 carrier:14
 >           collisions:21 txqueuelen:100 
 >           Interrupt:11 Base address:0xe480 
 > 
 > lo        Link encap:Local Loopback  
 >           inet addr:127.0.0.1  Mask:255.0.0.0
 >           UP LOOPBACK RUNNING  MTU:3924  Metric:1
 >           RX packets:2808 errors:0 dropped:0 overruns:0 frame:0
 >           TX packets:2808 errors:0 dropped:0 overruns:0 carrier:0
 >           collisions:0 txqueuelen:0 






More information about the Ale mailing list