Can it realize that redirect on Brige?!
Can it realize that redirect on Brige?!
My config as follow:
ifconfig
br0 Link encap:Ethernet HWaddr 00:AA:CD:00:02:37
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:17144 errors:0 dropped:0 overruns:0 frame:0 TX packets:380 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0
RX bytes:2040848 (1.9 Mb) TX bytes:22215 (21.6 Kb)
eth0 Link encap:Ethernet HWaddr 00:AA:CD:00:02:37
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:16582 errors:0 dropped:0 overruns:16566 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:2190125 (2.0 Mb)
Interrupt:11 Base address:0xe000 eth1 Link encap:Ethernet HWaddr 00:AA:CD:00:02:38
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:129092 errors:0 dropped:0 overruns:0 frame:2 TX packets:380 errors:0 dropped:0 overruns:0 carrier:0 collisions:26 txqueuelen:100
RX bytes:107081665 (102.1 Mb) TX bytes:22209 (21.6 Kb) Interrupt:10
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
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)
and When I add a policy as follow:
iptables -t nat -A PREROUTING -j REDIRECT --to 1080
my kernel panic!
Quoted 2 lines · Dec0y wrote:
iptables -t nat -A PREROUTING -j REDIRECT --to 1080 my kernel panic!
try iptables -t mangle instat of nat because normally you don't use nat on a bridge.
Hope that helps.
Eicke.
Quoted 1 line · On Monday 19 May 2003 06:09, Dec0y wrote:
Can it realize that redirect on Brige?!
<snip>
Quoted 4 lines
and When I add a policy as follow:
iptables -t nat -A PREROUTING -j REDIRECT --to 1080 my kernel panic!
redirecting on a bridge should normally not be a problem. I'm assuming you are using bridge-nf?
What kernel are you using? Can you give a trace on that oops? Is this specific to port 1080?
Signature · 2 lines
cheers, Bart