Message-ID: <062c01c4f441$fdfc79d0$3e0010ac@esonet18> From: "mdpeters" Date: Thu, 6 Jan 2005 17:49:34 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0629_01C4F418.1518B630" Subject: [Bridge] Transparent bridge trouble List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: bridge@lists.osdl.org This is a multi-part message in MIME format... ------=_NextPart_000_0629_01C4F418.1518B630 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I can only "see" arp traffic through the bridge. I imagine that I am doing = something wrong but I am at a loss. Kernel linux-2.6.5-1.358, Fedora Core 2. #/sbin/lsmod Module Size Used by ipt_state 5504 2 ip_conntrack 30348 1 ipt_state ipv6 214624 16 iptable_filter 6016 1 ip_tables 18048 2 ipt_state,iptable_filter bridge 32024 0 ip_queue 11672 0 autofs4 15488 0 sunrpc 110280 1 e1000 73356 0 e100 30852 0 mii 7552 1 e100 sg 32288 0 microcode 10400 0 dm_mod 37536 0 button 8472 0 battery 10892 0 asus_acpi 12440 0 ac 7308 0 ext3 108136 2 jbd 50328 1 ext3 ata_piix 9348 3 libata 33536 1 ata_piix,[permanent] sd_mod 20352 4 scsi_mod 97224 3 sg,libata,sd_mod ++++++++++++++++++++++++++++++++++++++++ This is my bridge setup: /sbin/modprobe ip_queue /sbin/ifconfig eth1 0.0.0.0 /sbin/ifconfig eth2 0.0.0.0 /usr/local/sbin/brctl addbr br0 /usr/local/sbin/brctl addif br0 eth1 /usr/local/sbin/brctl addif br0 eth2 /sbin/ifconfig br0 up /usr/local/sbin/brctl stp br0 off /sbin/ifconfig br0 0.0.0.0 -arp ++++++++++++++++++++++++++++++++++++++++ This is what my iptables setup looks like. /usr/local/sbin/iptables -P FORWARD DROP /usr/local/sbin/iptables -A FORWARD -p tcp --syn -m state --state NEW -j QU= EUE /usr/local/sbin/iptables -A FORWARD -p tcp -m state --state RELATED,ESTABLI= SHED -j QUEUE /usr/local/sbin/iptables -A FORWARD -p udp -j QUEUE /usr/local/sbin/iptables -A FORWARD -p icmp -j QUEUE #/usr/local/sbin/iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy DROP) target prot opt source destination QUEUE all -- anywhere anywhere QUEUE tcp -- anywhere anywhere tcp flags:SYN,RST,ACK/SYN state NEW QUEUE tcp -- anywhere anywhere state RELATED,ESTABLISHED QUEUE udp -- anywhere anywhere QUEUE icmp -- anywhere anywhere Chain OUTPUT (policy ACCEPT) target prot opt source destination ++++++++++++++++++++++++++++++++++++++++ # /sbin/ifconfig -a eth0 Link encap:Ethernet HWaddr 00:11:11:50:EE:D2 inet addr:172.16.200.211 Bcast:172.16.255.255 Mask:255.255.0.0 inet6 addr: fe80::211:11ff:fe50:eed2/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:77160 errors:5 dropped:0 overruns:0 frame:5 TX packets:38287 errors:0 dropped:0 overruns:0 carrier:3 collisions:2126 txqueuelen:1000 RX bytes:7950909 (7.5 Mb) TX bytes:14485654 (13.8 Mb) eth1 Link encap:Ethernet HWaddr 00:04:23:AD:ED:BA inet6 addr: fe80::204:23ff:fead:edba/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:413 errors:0 dropped:0 overruns:0 frame:0 TX packets:673 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:31654 (30.9 Kb) TX bytes:71099 (69.4 Kb) Base address:0xc800 Memory:ff8c0000-ff8e0000 eth2 Link encap:Ethernet HWaddr 00:04:23:AD:ED:BB inet6 addr: fe80::204:23ff:fead:edbb/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:10067 errors:0 dropped:0 overruns:0 frame:0 TX packets:190 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:741428 (724.0 Kb) TX bytes:16514 (16.1 Kb) Base address:0xcc00 Memory:ff8e0000-ff900000 eth3 Link encap:Ethernet HWaddr 00:04:23:AD:ED:D6 inet6 addr: fe80::204:23ff:fead:edd6/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:5 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:398 (398.0 b) Base address:0xc000 Memory:ff780000-ff7a0000 eth4 Link encap:Ethernet HWaddr 00:04:23:AD:ED:D7 inet6 addr: fe80::204:23ff:fead:edd7/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1429283 errors:1835 dropped:0 overruns:0 frame:1835 TX packets:5 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:307722248 (293.4 Mb) TX bytes:398 (398.0 b) Base address:0xc400 Memory:ff7a0000-ff7c0000 eth5 Link encap:Ethernet HWaddr 00:04:23:AD:ED:A8 inet6 addr: fe80::204:23ff:fead:eda8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:164 errors:0 dropped:0 overruns:0 frame:0 TX packets:5 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:11008 (10.7 Kb) TX bytes:398 (398.0 b) Base address:0xb800 Memory:ff640000-ff660000 eth6 Link encap:Ethernet HWaddr 00:04:23:AD:ED:A9 inet6 addr: fe80::204:23ff:fead:eda9/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:9078 errors:0 dropped:0 overruns:0 frame:0 TX packets:5 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:898198 (877.1 Kb) TX bytes:398 (398.0 b) Base address:0xbc00 Memory:ff660000-ff680000 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:107 errors:0 dropped:0 overruns:0 frame:0 TX packets:107 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:14503 (14.1 Kb) TX bytes:14503 (14.1 Kb) br0 Link encap:Ethernet HWaddr 00:04:23:AD:ED:BA inet6 addr: fe80::204:23ff:fead:edba/64 Scope:Link UP BROADCAST RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:9861 errors:0 dropped:0 overruns:0 frame:0 TX packets:3 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:506916 (495.0 Kb) TX bytes:210 (210.0 b) sit0 Link encap:IPv6-in-IPv4 NOARP MTU:1480 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) ++++++++++++++++++++++++++++++++++++++++ Am I missing something? I appreciate tremendously your help. Best regards, Michael D. Peters Director of Security Services CISSP Lazarus Alliance Inc. M: 502-767-3448 O: 502-231-8017 x8 H: 502-231-6923 F: 502-231-5347 michael.peters@lazarusalliance.com www.lazarusalliance.com ------=_NextPart_000_0629_01C4F418.1518B630 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
I can only "see" arp traffic through the bridge. I imagine that I am d= oing=20 something wrong but I am at a loss.
 
Kernel linux-2.6.5-1.358, Fedora Core 2.
 
#/sbin/lsmod
Module        =          =20 Size  Used=20 by
ipt_state          =     =20 5504 =20 2
ip_conntrack         &nbs= p;=20 30348  1=20 ipt_state
ipv6         &nbs= p;       =20 214624 =20 16
iptable_filter         = =20 6016 =20 1
ip_tables          &= nbsp;  =20 18048  2=20 ipt_state,iptable_filter
bridge       = ;         =20 32024 =20 0
ip_queue          &n= bsp;   =20 11672 =20 0
autofs4          &nb= sp;    =20 15488 =20 0
sunrpc          &nbs= p;    =20 110280 =20 1
e1000           = ;      =20 73356 =20 0
e100           =        =20 30852 =20 0
mii           &= nbsp;        =20 7552  1=20 e100
sg           = ;         =20 32288 =20 0
microcode          &= nbsp;  =20 10400 =20 0
dm_mod          &nbs= p;     =20 37536 =20 0
button          &nbs= p;      =20 8472 =20 0
battery          &nb= sp;    =20 10892 =20 0
asus_acpi          &= nbsp;  =20 12440 =20 0
ac           &n= bsp;         =20 7308 =20 0
ext3           =       =20 108136 =20 2
jbd           &= nbsp;       =20 50328  1=20 ext3
ata_piix          = ;     =20 9348 =20 3
libata          &nbs= p;     =20 33536  1=20 ata_piix,[permanent]
sd_mod       &nb= sp;        =20 20352 =20 4
scsi_mod          &n= bsp;   =20 97224  3=20 sg,libata,sd_mod

++++++++++++++++++++++++++++++++++++++++

Thi= s is=20 my bridge setup:

/sbin/modprobe ip_queue
/sbin/ifconfig eth1=20 0.0.0.0
/sbin/ifconfig eth2 0.0.0.0
/usr/local/sbin/brctl addbr=20 br0
/usr/local/sbin/brctl addif br0 eth1
/usr/local/sbin/brctl addif = br0=20 eth2
/sbin/ifconfig br0 up
/usr/local/sbin/brctl stp br0=20 off
/sbin/ifconfig br0 0.0.0.0=20 -arp

++++++++++++++++++++++++++++++++++++++++

This is what my= =20 iptables setup looks like.

/usr/local/sbin/iptables -P FORWARD=20 DROP
/usr/local/sbin/iptables -A FORWARD -p tcp --syn -m state --state N= EW -j=20 QUEUE
/usr/local/sbin/iptables -A FORWARD -p tcp -m state --state=20 RELATED,ESTABLISHED -j QUEUE
/usr/local/sbin/iptables -A FORWARD -p udp = -j=20 QUEUE
/usr/local/sbin/iptables -A FORWARD -p icmp -j=20 QUEUE

#/usr/local/sbin/iptables -L
Chain INPUT (policy=20 ACCEPT)
target     prot opt=20 source           &nb= sp;  =20 destination

Chain FORWARD (policy DROP)
target   &= nbsp;=20 prot opt=20 source           &nb= sp;  =20 destination
QUEUE      all  -- =20 anywhere           &= nbsp;=20 anywhere
QUEUE      tcp  -- =20 anywhere           &= nbsp;=20 anywhere           = =20 tcp
flags:SYN,RST,ACK/SYN state NEW
QUEUE    &nbs= p;=20 tcp  -- =20 anywhere           &= nbsp;=20 anywhere           = =20 state
RELATED,ESTABLISHED
QUEUE      udp&nbs= p;=20 -- =20 anywhere           &= nbsp;=20 anywhere
QUEUE      icmp -- =20 anywhere           &= nbsp;=20 anywhere

Chain OUTPUT (policy ACCEPT)
target   &nb= sp;=20 prot opt=20 source           &nb= sp;  =20 destination

++++++++++++++++++++++++++++++++++++++++

#=20 /sbin/ifconfig -a
eth0      Link=20 encap:Ethernet  HWaddr=20 00:11:11:50:EE:D2
         = inet=20 addr:172.16.200.211  Bcast:172.16.255.255 =20 Mask:255.255.0.0
          = inet6=20 addr: fe80::211:11ff:fe50:eed2/64=20 Scope:Link
          UP=20 BROADCAST RUNNING MULTICAST  MTU:1500 =20 Metric:1
          RX=20 packets:77160 errors:5 dropped:0 overruns:0=20 frame:5
          TX=20 packets:38287 errors:0 dropped:0 overruns:0=20 carrier:3
         =20 collisions:2126=20 txqueuelen:1000
          R= X=20 bytes:7950909 (7.5 Mb)  TX bytes:14485654 (13.8=20 Mb)

eth1      Link encap:Ethernet  HWa= ddr=20 00:04:23:AD:ED:BA
         = =20 inet6 addr: fe80::204:23ff:fead:edba/64=20 Scope:Link
          UP=20 BROADCAST MULTICAST  MTU:1500 =20 Metric:1
          RX=20 packets:413 errors:0 dropped:0 overruns:0=20 frame:0
          TX packet= s:673=20 errors:0 dropped:0 overruns:0=20 carrier:0
          collisi= ons:0=20 txqueuelen:1000
          R= X=20 bytes:31654 (30.9 Kb)  TX bytes:71099 (69.4=20 Kb)
          Base=20 address:0xc800=20 Memory:ff8c0000-ff8e0000

eth2      Link=20 encap:Ethernet  HWaddr=20 00:04:23:AD:ED:BB
         = =20 inet6 addr: fe80::204:23ff:fead:edbb/64=20 Scope:Link
          UP=20 BROADCAST RUNNING MULTICAST  MTU:1500 =20 Metric:1
          RX=20 packets:10067 errors:0 dropped:0 overruns:0=20 frame:0
          TX packet= s:190=20 errors:0 dropped:0 overruns:0=20 carrier:0
          collisi= ons:0=20 txqueuelen:1000
          R= X=20 bytes:741428 (724.0 Kb)  TX bytes:16514 (16.1=20 Kb)
          Base=20 address:0xcc00=20 Memory:ff8e0000-ff900000

eth3      Link=20 encap:Ethernet  HWaddr=20 00:04:23:AD:ED:D6
         = =20 inet6 addr: fe80::204:23ff:fead:edd6/64=20 Scope:Link
          UP=20 BROADCAST RUNNING MULTICAST  MTU:1500 =20 Metric:1
          RX packe= ts:0=20 errors:0 dropped:0 overruns:0=20 frame:0
          TX packet= s:5=20 errors:0 dropped:0 overruns:0=20 carrier:0
          collisi= ons:0=20 txqueuelen:1000
          R= X=20 bytes:0 (0.0 b)  TX bytes:398 (398.0=20 b)
          Base address:0= xc000=20 Memory:ff780000-ff7a0000

eth4      Link=20 encap:Ethernet  HWaddr=20 00:04:23:AD:ED:D7
         = =20 inet6 addr: fe80::204:23ff:fead:edd7/64=20 Scope:Link
          UP=20 BROADCAST RUNNING MULTICAST  MTU:1500 =20 Metric:1
          RX=20 packets:1429283 errors:1835 dropped:0 overruns:0=20 frame:1835
          TX=20 packets:5 errors:0 dropped:0 overruns:0=20 carrier:0
          collisi= ons:0=20 txqueuelen:1000
          R= X=20 bytes:307722248 (293.4 Mb)  TX bytes:398 (398.0=20 b)
          Base address:0= xc400=20 Memory:ff7a0000-ff7c0000

eth5      Link=20 encap:Ethernet  HWaddr=20 00:04:23:AD:ED:A8
         = =20 inet6 addr: fe80::204:23ff:fead:eda8/64=20 Scope:Link
          UP=20 BROADCAST RUNNING MULTICAST  MTU:1500 =20 Metric:1
          RX=20 packets:164 errors:0 dropped:0 overruns:0=20 frame:0
          TX packet= s:5=20 errors:0 dropped:0 overruns:0=20 carrier:0
          collisi= ons:0=20 txqueuelen:1000
          R= X=20 bytes:11008 (10.7 Kb)  TX bytes:398 (398.0=20 b)
          Base address:0= xb800=20 Memory:ff640000-ff660000

eth6      Link=20 encap:Ethernet  HWaddr=20 00:04:23:AD:ED:A9
         = =20 inet6 addr: fe80::204:23ff:fead:eda9/64=20 Scope:Link
          UP=20 BROADCAST RUNNING MULTICAST  MTU:1500 =20 Metric:1
          RX=20 packets:9078 errors:0 dropped:0 overruns:0=20 frame:0
          TX packet= s:5=20 errors:0 dropped:0 overruns:0=20 carrier:0
          collisi= ons:0=20 txqueuelen:1000
          R= X=20 bytes:898198 (877.1 Kb)  TX bytes:398 (398.0=20 b)
          Base address:0= xbc00=20 Memory:ff660000-ff680000

lo       = ;=20 Link encap:Local=20 Loopback
          inet=20 addr:127.0.0.1 =20 Mask:255.0.0.0
          in= et6=20 addr: ::1/128=20 Scope:Host
          UP LOO= PBACK=20 RUNNING  MTU:16436 =20 Metric:1
          RX=20 packets:107 errors:0 dropped:0 overruns:0=20 frame:0
          TX packet= s:107=20 errors:0 dropped:0 overruns:0=20 carrier:0
          collisi= ons:0=20 txqueuelen:0
          RX= =20 bytes:14503 (14.1 Kb)  TX bytes:14503 (14.1=20 Kb)

br0      Link encap:Ethernet  HWad= dr=20 00:04:23:AD:ED:BA
         = =20 inet6 addr: fe80::204:23ff:fead:edba/64=20 Scope:Link
          UP=20 BROADCAST RUNNING NOARP MULTICAST  MTU:1500 =20 Metric:1
          RX=20 packets:9861 errors:0 dropped:0 overruns:0=20 frame:0
          TX packet= s:3=20 errors:0 dropped:0 overruns:0=20 carrier:0
          collisi= ons:0=20 txqueuelen:0
          RX= =20 bytes:506916 (495.0 Kb)  TX bytes:210 (210.0=20 b)

sit0      Link=20 encap:IPv6-in-IPv4
         = ;=20 NOARP  MTU:1480 =20 Metric:1
          RX packe= ts:0=20 errors:0 dropped:0 overruns:0=20 frame:0
          TX packet= s:0=20 errors:0 dropped:0 overruns:0=20 carrier:0
          collisi= ons:0=20 txqueuelen:0
          RX= =20 bytes:0 (0.0 b)  TX bytes:0 (0.0=20 b)

++++++++++++++++++++++++++++++++++++++++

Am I missing=20 something? I appreciate tremendously your help.

Best regards,
 
Michael D. Peters
Director of Security Services
CISSP
Lazarus= =20 Alliance Inc.
M: 502-767-3448
O: 502-231-8017 x8
H: 502-231-6923F:=20 502-231-5347
 
michael.peters@lazarusal= liance.com
www.lazarusalliance.com
------=_NextPart_000_0629_01C4F418.1518B630--