BitTorrent still crashes Linux firewall running bridging :-(

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Unfortunately, I did speak too soon, dammit. Even after replacing the
Quad Tulip card with three independent Ethernet cards, BitTorrent
(actually, Azureus) downloads are still regularly crashing this Linux
firewall running bridging.

So, back to the drawing board. What's the next diagnostic step? I guess
I could just kill the VoIP device for a day or two. Who needs home phone
service, anyway? Oh, yeah, wait, my wife... So, next diagnostic steps,
please?

Thanks again for your help, bridge users.
-Jay



-----Original Message-----


Many thanks to Ryan for his comment that multiple Digital Tulip Ethernet
adapters in a system have been known in the past to crack up the kernel.
Looks like that problem still exists.

I hope I'm not speaking too soon and jinxing myself, but last night I
pulled out the single quad Tulip card and replaced it with three
independent Ethernet controllers (of various parentage, none of them
Digital), and have since BitTorrent downloaded a few hundred megabytes
with no crashes at all.


To Stephen, thank you too for replying. I should have been more
specific, you're right. The "Crash" I'm referring to is the whole kernel
going down so hard and fast that nothing even gets left in a memory
buffer to be picked up on reboot. It's as if someone hit the hard reset
switch on the system.

Unfortunately, due to my complex network design, it is difficult to test
with the bridging rules out, because without the bridging rules, I can't
talk through this firewall.  That's because I have a static IP address
range which runs through a Vonage customized not-very-smart bridge/NAT
device which doesn't actually understand how to have one IP address on
its public interface and bridge all other traffic that comes its way. It
doesn't answer ARPs for anything but itself. So, I have to have bridging
rules on the firewall on an interface peeking at the outside segment and
replying to ARPs, so that the packets can get through this Vonage box.
To test without bridging, I'd have to discombobulate the whole darn
network, which I've been trying to avoid.

Hopefully, the problem was just with the Tulip card or drivers.

Thanks again everyone,
-Jay

Original posting:
I have a Linux system (based on Fedora, all packages current per 'yum'),
running bridging.  It works fine ... except if I have BitTorrent traffic
running through it, in which case it is guaranteed to crash repeatedly,
sometimes with as little as a minute's worth of traffic going through it
after a reboot before crashing again.

The firewall has a PCI quad Ethernet card with Digital DS21140 Tulip
controllers on it. These are eth0, eth1, eth2, and eth3.

Here's the 'dmesg' output relating to this PCI quad Ethernet card:

Linux Tulip driver version 1.1.15 (Feb 27, 2007)
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 11
PCI: setting IRQ 11 as level-triggered
ACPI: PCI Interrupt 0000:02:04.0[A] -> Link [LNKB] -> GSI 11 (level,
low) -> IRQ 11
tulip0:  EEPROM default media type Autosense.
tulip0:  Index #0 - Media 10baseT (#0) described by a 21140 non-MII (0)
block.
tulip0:  Index #1 - Media 100baseTx (#3) described by a 21140 non-MII
(0) block.
tulip0:  Index #2 - Media 10baseT-FDX (#4) described by a 21140 non-MII
(0) block.
tulip0:  Index #3 - Media 100baseTx-FDX (#5) described by a 21140
non-MII (0) block.
eth0: Digital DS21140 Tulip rev 34 at MMIO 0xd5000000,
00:00:BC:11:56:D7, IRQ 11.
ACPI: PCI Interrupt 0000:02:05.0[A] -> Link [LNKC] -> GSI 5 (level, low)
-> IRQ 5
tulip1:  EEPROM default media type Autosense.
tulip1:  Index #0 - Media 10baseT (#0) described by a 21140 non-MII (0)
block.
tulip1:  Index #1 - Media 100baseTx (#3) described by a 21140 non-MII
(0) block.
tulip1:  Index #2 - Media 10baseT-FDX (#4) described by a 21140 non-MII
(0) block.
tulip1:  Index #3 - Media 100baseTx-FDX (#5) described by a 21140
non-MII (0) block.
eth1: Digital DS21140 Tulip rev 34 at MMIO 0xd5001000,
00:00:BC:11:56:D6, IRQ 5.
ACPI: PCI Interrupt 0000:02:06.0[A] -> Link [LNKD] -> GSI 10 (level,
low) -> IRQ 10
tulip2:  EEPROM default media type Autosense.
tulip2:  Index #0 - Media 10baseT (#0) described by a 21140 non-MII (0)
block.
tulip2:  Index #1 - Media 100baseTx (#3) described by a 21140 non-MII
(0) block.
tulip2:  Index #2 - Media 10baseT-FDX (#4) described by a 21140 non-MII
(0) block.
tulip2:  Index #3 - Media 100baseTx-FDX (#5) described by a 21140
non-MII (0) block.
eth2: Digital DS21140 Tulip rev 34 at MMIO 0xd5002000,
00:00:BC:11:56:D5, IRQ 10.
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
ACPI: PCI Interrupt 0000:02:07.0[A] -> Link [LNKA] -> GSI 11 (level,
low) -> IRQ 11
tulip3:  EEPROM default media type Autosense.
tulip3:  Index #0 - Media 10baseT (#0) described by a 21140 non-MII (0)
block.
tulip3:  Index #1 - Media 100baseTx (#3) described by a 21140 non-MII
(0) block.
tulip3:  Index #2 - Media 10baseT-FDX (#4) described by a 21140 non-MII
(0) block.
tulip3:  Index #3 - Media 100baseTx-FDX (#5) described by a 21140
non-MII (0) block.
piix4_smbus 0000:00:07.3: Found 0000:00:07.3 device
eth3: Digital DS21140 Tulip rev 34 at MMIO 0xd5003000,
00:00:BC:11:56:D4, IRQ 11.

 ... and some more 'dmesg' output of net interest:

NET: Registered protocol family 10
lo: Disabled Privacy Extensions
ADDRCONF(NETDEV_UP): eth2: link is not ready
ADDRCONF(NETDEV_UP): eth3: link is not ready
Mobile IPv6
ADDRCONF(NETDEV_CHANGE): eth3: link becomes ready

ip_tables: (C) 2000-2006 Netfilter Core Team
arp_tables: (C) 2002 David S. Miller
Ebtables v2.0 registered
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (4607 buckets, 36856 max)
ip6_tables: (C) 2000-2006 Netfilter Core Team
Bridge firewalling registered
device eth3 entered promiscuous mode
br0: port 1(eth3) entering learning state
eth0: no IPv6 routers present
eth1: no IPv6 routers present
eth3: no IPv6 routers present
br0: no IPv6 routers present
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@xxxxxxxxxxxx>
tun0: Disabled Privacy Extensions
tun1: Disabled Privacy Extensions
tun2: Disabled Privacy Extensions
br0: topology change detected, propagating
br0: port 1(eth3) entering forwarding state
ADDRCONF(NETDEV_CHANGE): eth2: link becomes ready
eth2: no IPv6 routers present


Here's ifconfig -a output:

br0       Link encap:Ethernet  HWaddr 00:00:BC:11:56:D4  
          inet6 addr: fe80::200:bcff:fe11:56d4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1033126 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:47748729 (45.5 MiB)  TX bytes:468 (468.0 b)

eth0      Link encap:Ethernet  HWaddr 00:00:BC:11:56:D7  
          inet addr:216.xxx.xxx.xxx  Bcast:216.xxx.xxx.255
Mask:255.255.255.0
          inet6 addr: fe80::200:bcff:fe11:56d7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:23941 errors:1 dropped:0 overruns:0 frame:0
          TX packets:672809 errors:4 dropped:0 overruns:0 carrier:9
          collisions:134 txqueuelen:1000 
          RX bytes:13324751 (12.7 MiB)  TX bytes:57721426 (55.0 MiB)
          Interrupt:11 Base address:0x8000 

eth0:1    Link encap:Ethernet  HWaddr 00:00:BC:11:56:D7  
          inet addr:192.168.15.3  Bcast:192.168.15.255
Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:11 Base address:0x8000 

eth1      Link encap:Ethernet  HWaddr 00:00:BC:11:56:D6  
          inet addr:192.168.255.5  Bcast:192.168.255.127
Mask:255.255.255.128
          inet6 addr: fe80::200:bcff:fe11:56d6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:793455 errors:0 dropped:0 overruns:0 frame:0
          TX packets:452729 errors:4 dropped:0 overruns:0 carrier:10
          collisions:837 txqueuelen:1000 
          RX bytes:67810520 (64.6 MiB)  TX bytes:60778513 (57.9 MiB)
          Interrupt:5 

eth2      Link encap:Ethernet  HWaddr 00:00:BC:11:56:D5  
          inet addr:192.168.0.139  Bcast:192.168.0.255
Mask:255.255.255.0
          inet6 addr: fe80::200:bcff:fe11:56d5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11659 errors:70656 dropped:0 overruns:0 frame:0
          TX packets:9318 errors:5 dropped:0 overruns:0 carrier:11
          collisions:2 txqueuelen:1000 
          RX bytes:10236933 (9.7 MiB)  TX bytes:1291086 (1.2 MiB)
          Interrupt:10 Base address:0xc000 

eth3      Link encap:Ethernet  HWaddr 00:00:BC:11:56:D4  
          inet6 addr: fe80::200:bcff:fe11:56d4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1070453 errors:1 dropped:0 overruns:0 frame:0
          TX packets:859 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:78197874 (74.5 MiB)  TX bytes:36294 (35.4 KiB)
          Interrupt:11 Base address:0x2000 

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:9669 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9669 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:949740 (927.4 KiB)  TX bytes:949740 (927.4 KiB)

tun0      Link encap:UNSPEC  HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet addr:192.168.253.1  P-t-P:192.168.253.2
Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  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:100 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

tun1      Link encap:UNSPEC  HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet addr:192.168.253.65  P-t-P:192.168.253.66
Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  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:100 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

tun2      Link encap:UNSPEC  HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet addr:192.168.253.129  P-t-P:192.168.253.130
Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  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:100 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

Eth0 is connected to a 10Mbit Ethernet hub which is the outside segment
of my network. Eth0 has my firewall's public Internet address
(statically assigned, one of a group of static IPs assigned to me, by my
ISP). Also on that outside Ethernet segment (that is, plugged in to that
same hub) are the inside interface of a Vonage VoIP adaptor, and Eth3.

Eth1 is connected to my internal network.

Eth2 is my fallback interface which can be connected to e.g. my
neighbor's WLAN (with their permission) when my own (unreliable) DSL
service craps out. The vast majority of the time, Eth2 is not physically
connected.

Eth3 is configured 'up' and has no IP address. Arptables is set up on
this Linux host to answer proxy ARPs for the rest of my static IP
address range, because the Vonage VoIP adaptor is too stupid to do so.
If I do not have Eth3 able to answer ARPs from the outside world for my
other static IP addresses, then only the Vonage VoIP adaptor's one
static address out of my range of 10 addresses can be reached from the
Internet. Sigh.  Yes, I need the VoIP adaptor outside the network like
this, to perform traffic shaping. (I tried using Linux kernel traffic
shaping, to insufficient effect).

The tun interfaces are for OpenVPN, which I pretty much never use
anymore.

Here's the br0 configuration:

# brctl show
bridge name     bridge id               STP enabled     interfaces
br0             8000.0000bc1156d4       no              eth3

Here are the commands which set up that bridge:

# brctl addbr br0
# brctl addif br0 eth3
# ifconfig br0 0.0.0.0

I have static ARP entries on this Linux firewall thus:

# arp -Ds 216.xxx.xxx.43 eth1 -i eth1 pub
# route add -host 216.xxx.xxx.43 dev eth0 gw 192.168.15.1
# for host in 42 44 45 46 47 48 49 50 51; do \
   ebtables -t nat -A PREROUTING -i eth0 -p ARP \
   --arp-op request --arp-ip-dst 216.xxx.xxx.$host \
   -j arpreply --arpreply-mac $MAC_OF_VOIP_ADAPTOR_OUTER_INTERFACE;
done



Any high level ideas on why BitTorrent traffic might crash the firewall
with this bridge and ARP configuration?



_______________________________________________
Bridge mailing list
Bridge@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/bridge

[Index of Archives]     [Netdev]     [AoE Tools]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux