All of lore.kernel.org
 help / color / mirror / Atom feed
* bug: -j REDIRECT broken with bridge in 2.6.0-test3
@ 2003-08-14  2:03 dmorris
  2003-08-25 23:24 ` dmorris
  0 siblings, 1 reply; 7+ messages in thread
From: dmorris @ 2003-08-14  2:03 UTC (permalink / raw)
  To: netfilter-devel

bug: -j REDIRECT broken with bridge in 2.6.0-test3

Sorry if this has already been reported, well known,
or I'm doing something obviously wrong.
Please email me if I can help, or give any other info.

[1.] One line summary of the problem:    

    -j REDIRECT does not work with a bridge in 2.6.0-test3
 
[2.] Full description of the problem/report:

    -j REDIRECT --to-port 2000 works fine as a router, but not as a bridge
    this appeared sometime between 2.5.68 and 2.6.0-test3

    WORKING EXAMPLE:
    (A) <-----> (B) <-----> (C)

    where A is 10.0.0.10 and C is 10.10.10.10
    and B's left  interface is 10.0.0.0/255.255.255.0
    and B's right interface is 10.10.10.0/255.255.255.0
    with echo 1 >proc/sys/net/ipv4/ip_forward

    On: B do the following
    iptables -t nat -A PREROUTING -p tcp --destination-port 7:7 -j 
REDIRECT --to-port 2000
    netcat -l -p 2000

    Then on C:
    telnet (A) 7
    <connects to netcat on B as expected>

    NON-WORKING EXAMPLE:
    (A) <-----> (B) <-----> (C)

    where A is 10.0.0.10 and C is 10.0.0.020
    and B is a bridge of IP 10.0.0.15

    On: B do the following
    iptables -t nat -A PREROUTING -p tcp --destination-port 7:7 -j 
REDIRECT --to-port 2000
    netcat -l -p 2000

    Then on C:
    telnet (A) 7
    Connecting ...

    The SYN just seems to get dropped somewhere.
    The SYN does not reach A (according to tcpdump)


[3.] Keywords (i.e., modules, networking, kernel):

    networking, netfilter, ethernet bridge

[4.] Kernel version (from /proc/version):

    Linux version 2.6.0-test3 (dmorris@bebe) (gcc version 3.3.1 20030626 
(Debian prerelease)) #2 Wed Aug 13 12:59:35 PDT 2003

[5.] Output of Oops.. message (if applicable) with symbolic information
     resolved (see Documentation/oops-tracing.txt)

    None

[6.] A small shell script or example program which triggers the
     problem (if possible)

    Refer to above

[7.] Environment

    The middle machine is described in depth at:

    http://neogenen.com/bugreport_details2.txt

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-10-18 20:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-14  2:03 bug: -j REDIRECT broken with bridge in 2.6.0-test3 dmorris
2003-08-25 23:24 ` dmorris
2003-08-26  6:12   ` Bart De Schuymer
2003-08-26 19:14     ` Bart De Schuymer
2003-10-06 22:13   ` Dirk Morris
2003-10-07 10:00     ` Harald Welte
2003-10-18 20:48       ` Bart De Schuymer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.