[Bug 452] DNAT to internal network don't work with source routing and 2 uplinks

bugzilla-daemon at bugzilla.netfilter.org bugzilla-daemon at bugzilla.netfilter.org
Wed Feb 22 09:44:07 CET 2006


https://bugzilla.netfilter.org/bugzilla/show_bug.cgi?id=452





------- Additional Comments From mzurakowski-bin at data.pl  2006-02-22 09:44 MET -------
gw:/home/marcin# ifconfig 

eth0      Link encap:Ethernet  HWaddr 00:0C:29:B5:A3:B8  
          inet addr:10.0.0.1  Bcast:10.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:feb5:a3b8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5411985 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5051983 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1726010421 (1.6 GiB)  TX bytes:3518191111 (3.2 GiB)

eth1      Link encap:Ethernet  HWaddr 00:0C:29:B5:A3:C2  
          inet addr:10.0.1.1  Bcast:10.0.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:feb5:a3c2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3776297 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3737309 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2253271526 (2.0 GiB)  TX bytes:1358136401 (1.2 GiB)
          Interrupt:217 Base address:0xd400

eth2      Link encap:Ethernet  HWaddr 00:0C:29:B5:A3:CC  
          inet addr:10.0.2.1  Bcast:10.0.2.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:feb5:a3cc/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2005907 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1960342 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1559244740 (1.4 GiB)  TX bytes:1308894121 (1.2 GiB)
          Interrupt:201 Base address:0xd800

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

gw:/home/marcin# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 eth0
10.0.1.0        0.0.0.0         255.255.255.0   U     0      0        0 eth1
10.0.2.0        0.0.0.0         255.255.255.0   U     0      0        0 eth2
0.0.0.0         10.0.0.2        0.0.0.0         UG    0      0        0 eth0
0.0.0.0         10.0.1.2        0.0.0.0         UG    5      0        0 eth1

gw:/home/marcin# ip rule list
0:	from all lookup local 
32760:	from 10.0.1.1 lookup TABLE2
32761:	from 10.0.0.1 lookup TABLE1 
32766:	from all lookup main 
32767:	from all lookup default 


gw:/home/marcin# ip route list table local
broadcast 127.255.255.255 dev lo  proto kernel  scope link  src 127.0.0.1 
local 10.0.0.1 dev eth0  proto kernel  scope host  src 10.0.0.1 
local 10.0.2.1 dev eth2  proto kernel  scope host  src 10.0.2.1 
broadcast 10.0.0.0 dev eth0  proto kernel  scope link  src 10.0.0.1 
broadcast 10.0.2.0 dev eth2  proto kernel  scope link  src 10.0.2.1 
broadcast 10.0.1.255 dev eth1  proto kernel  scope link  src 10.0.1.1 
local 10.0.1.1 dev eth1  proto kernel  scope host  src 10.0.1.1 
broadcast 10.0.1.0 dev eth1  proto kernel  scope link  src 10.0.1.1 
broadcast 10.0.0.255 dev eth0  proto kernel  scope link  src 10.0.0.1 
broadcast 10.0.2.255 dev eth2  proto kernel  scope link  src 10.0.2.1 
broadcast 127.0.0.0 dev lo  proto kernel  scope link  src 127.0.0.1 
local 127.0.0.1 dev lo  proto kernel  scope host  src 127.0.0.1 
local 127.0.0.0/8 dev lo  proto kernel  scope host  src 127.0.0.1 

gw:/home/marcin# ip route list table TABLE1
10.0.0.0/24 dev eth0  scope link  src 10.0.0.1 
default via 10.0.0.2 dev eth0 

gw:/home/marcin# ip route list table TABLE2
10.0.1.0/24 dev eth1  scope link  src 10.0.1.1 
default via 10.0.1.2 dev eth1 

gw:/home/marcin# ip route list table main
10.0.0.0/24 dev eth0  proto kernel  scope link  src 10.0.0.1 
10.0.1.0/24 dev eth1  proto kernel  scope link  src 10.0.1.1 
10.0.2.0/24 dev eth2  proto kernel  scope link  src 10.0.2.1 
default via 10.0.0.2 dev eth0 
default via 10.0.1.2 dev eth1  metric 5 

gw:/home/marcin# ip route list table default
gw:/home/marcin#


-- 
Configure bugmail: https://bugzilla.netfilter.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the netfilter-buglog mailing list