ggb112 | 10 Nov 2004 03:22
Picon
Picon

Bridge utilities compatible driver

Hi guys

I am writing a serial network driver. My aim is to bridge two ethernets 
across a serial bridge.
Unfortunately the channel is noisy and slip and ppp are too unreliable.

The driver appears to work by itself and allows two computers  to ping 
each other across a
null modem cable.

The network driver code permits Linux OS ARPing support for ethernet and 
 MAC addresses
are manually assigned by insmod.

The driver is based on  mkiss.c: the packet radio driver for serial ttys 
except that I have eliminated
ax25 specific code, interfaced to IP directly and added some ethernet 
support.

Now the problem...

The network driver cannot be bridged to an ethernet card using the 
bridge-utilities layer 2
bridge tools.

Note that I have  successfully bridged between the ethernet  card and 
other  ethernet like hardware such as
cisco pci340 WiFi by using these tools.

I am using bridge-utilities-0.9.6-1 on linux 2.4.18-14 and linux 2.20-8.
(Continue reading)

Stephen Hemminger | 10 Nov 2004 18:15

Re: Bridge utilities compatible driver

On Wed, 10 Nov 2004 13:22:18 +1100
ggb112 <gerard.borg <at> anu.edu.au> wrote:

> Hi guys
> 
> I am writing a serial network driver. My aim is to bridge two ethernets 
> across a serial bridge.
> Unfortunately the channel is noisy and slip and ppp are too unreliable.

Full stop.  Then bridging is not the answer. You need to have a reliable
(no corruption), packetized link to do bridging. Otherwise, you would
be introducing corrupted packets from you link onto the Ethernet you
are bridging onto. If you can't get ppp to work, then bridging it isn't
the answer.

> The driver appears to work by itself and allows two computers  to ping 
> each other across a
> null modem cable.
> 
> The network driver code permits Linux OS ARPing support for ethernet and 
>  MAC addresses
> are manually assigned by insmod.
> 
> The driver is based on  mkiss.c: the packet radio driver for serial ttys 
> except that I have eliminated
> ax25 specific code, interfaced to IP directly and added some ethernet 
> support.
> 
> Now the problem...
> 
(Continue reading)

TEJAS VORA | 10 Nov 2004 19:48
Picon

Bridge Problem with RedHat and iptables

Hello,

I am running into a strange problem here. I wrote you a mail earlier
also regarding this.

1. I am trying to run the bridge mode over Redhat 7.3 (kernel 2.4.18).
I tried the latest version of brdige mode utility and also I tried
version 0.94 as well. But whenever I run the brdige mode on this
kernel - the kernel goes panic saying "aiee - killing interrupt
handler". Now I am in a crutial situation here. We are building a
product based on kernel version 2.4.18 and running on Redhat 7.3 - and
we have to setup bridge mode on the machine. But due to this problem
we are not able to do that. So please help me what is the problem here
and what could be the solution?

2. Now the second problem is regarding iptables. As brdige was not
working on redhat 7.3 due to kernel panicing - I tried it temporarily
in redhat 9.0 (jkernel 2.4.20-8) - where it is working fine. I setup a
FTP transparent proxy on the machine. The configuration is - our
machine (with brdige mode and transparent proxy) seats between client
and server. And it forwards or the traffice to and fro and for FTP
traffic we want to have transparent proxy in between. The
configuration is as shiown below.

Bridge Machine (br0) IP : 192.168.11.201
(need to be used as Transparent proxy)
       +---------------------------------------------+
       |                       |
       |                       |
       |                       |
(Continue reading)

Stephen Hemminger | 10 Nov 2004 20:43

Re: Bridge Problem with RedHat and iptables

Since this a question about the bridge filtering, you probably
want to ask: 	Bart De Schuymer <bart.de.schuymer <at> pandora.be>
and/or the ebtables mailing lists.

	ebtables-user <at> lists.sourceforge.net
	ebtables-devel <at> lists.sourceforge.net
_______________________________________________
Bridge mailing list
Bridge <at> lists.osdl.org
http://lists.osdl.org/mailman/listinfo/bridge
Adam Sulmicki | 30 Nov 2004 02:54
Picon

improved finding of KERNEL_HEADERS


hello,
	the attached patch should improve finding kernel headers
	automagically.

	not on the list, please cc. thanks.

adam

--- configure.in	2004-11-29 12:24:40.291063296 -0700
+++ configure.in-backup	2004-11-29 12:22:02.881063296 -0700
 <at>  <at>  -4,7 +4,7  <at>  <at> 
 AM_INIT_AUTOMAKE(bridge-utils,1.0.4)
 
 AC_ARG_WITH( linux-headers, [  --with-linux-headers     Location of the linux headers to use], 
-    KERNEL_HEADERS=$withval, KERNEL_HEADERS="/lib/modules/\$(shell uname -r)/build/include")
+    KERNEL_HEADERS=$withval, KERNEL_HEADERS="/usr/src/linux/include")
 
 dnl Checks for programs.
 AC_PROG_CC
_______________________________________________
Bridge mailing list
Bridge <at> lists.osdl.org
http://lists.osdl.org/mailman/listinfo/bridge
juan morales | 12 Nov 2004 20:57
Picon
Favicon

bridge + squid

Hi Srs
I have a linux like a bridge
 
LAN  - BRIGE -ROUTER
The bridge has a ip ( non public IP)
The bridge is working fine but y need to set up the Squid on the same machine where is installed the BRIDGE.
 
I was looking for the answers and say:
 

httpd_accel_host virtual

httpd_accel_port 80

httpd_accel_with_proxy on

httpd_accel_uses_host_header on

 

and put this rules with iptables

iptables −t nat −A PREROUTING −i eth0 −p tcp −−dport 80 −j REDIRECT  −−to−port 3128

eth0 go to Router

eth1 go to LAN

iptables −A INPUT −i

interface −p tcp −d your_bridge_ip −s local−network −−dport 3128 −m state

−−state NEW,ESTABLISHED −j ACCEPT

(replace interface by eth1 LAN)

But it don't work because i see the /var/log/squid/access.log and not see anything

Thank in advance for your help

juan

 

 

 

 

Do you Yahoo!?
Check out the new Yahoo! Front Page. www.yahoo.com
_______________________________________________
Bridge mailing list
Bridge <at> lists.osdl.org
http://lists.osdl.org/mailman/listinfo/bridge
Mark Cave-Ayland | 15 Nov 2004 11:29
Picon

Problem with bridge/8139too module under 2.4.27?

Hi there,

I'm currently experiencing a minor problem using the bridge module under
kernel 2.4.27 part of the Devil Linux distribution
(http://www.devil-linux.org). The problem I am having is that when the
bridge is unloaded during a reboot I receive the following errors in
/var/log/messages:

Nov 14 13:22:13 src <at> Devil kernel: unregister_netdevice: waiting for br0 to
become free. Usage count = 2

This message is repeatedly output to the console until I manually go and
power cycle it. I've traced this through the startup/shutdown scripts, and
have determine that the problem exists in the following sequence of
commands:

brctl addbr br0
brctl addif br0 eth0
brctl addif br0 eth1
ifconfig eth0 up
ifconfig eth1 up

ifconfig eth0 down
ifconfig eth1 down
brctl delif eth0
brctl delif eth1
brctl delbr br0   <------ This is where the problem occurs

The machine running the kernel is a brouter with 4 NICs all running under
the 8139too driver - eth0 and eth1 form a bridge while eth2 and eth3 are
connected to different internal networks. I'm guessing that this is either a
problem with the bridge or 8139too modules, and so any advice would be
gratefully received :)

Many thanks,

Mark.

------------------------
WebBased Ltd
South West Technology Centre
Tamar Science Park
Plymouth
PL6 8BT 

T: +44 (0)1752 791021
F: +44 (0)1752 791023
W: http://www.webbased.co.uk

_______________________________________________
Bridge mailing list
Bridge <at> lists.osdl.org
http://lists.osdl.org/mailman/listinfo/bridge
Javier Valencia | 15 Nov 2004 19:58

Bridge problem

I'm getting problems with my bridge (linux 2.6.9, eth0 = via-rhine, eth1 = 8139too).
The problem is that eth1 links up and down intermitently (between 1-2 minutes).

What can i do?

Thanks
_______________________________________________
Bridge mailing list
Bridge <at> lists.osdl.org
http://lists.osdl.org/mailman/listinfo/bridge
kingz | 22 Nov 2004 03:20

Very strange hotmail login error!

Hi All,

 

Very sorry for posting my question again, because I want to tell you more details on my issue, and it is very important for us!

Now I am having trouble in Ethernet bridge and 802.1Q VLAN, I have the following network:

   Internet

       |

  Gateway ( One UPNP device)

       |

       |    <---------  If insert one Ethernet bridge box in here , somethings changes

       |

     H u b    ( one normal hub or switch , no VLAN settings)

      |   \

      |     \

  D-Link  802.1Q VLAN Switches (their uplink port—port 1  connected to the upper hub are tagged, those ports connected with PCs are untagged).

Our client PCs connect to these VLAN Switches, they access Internet through that UPNP gateway, It works all OK; Every PC connects to one untagged port in a 802.1Q VLAN Switch , this untagged port and the tagged  uplink port (e.g. port 1) make up of one VLAN,  the tagged port 1 is a common uplink port , So from the gateway we can see these VLAN ID of PCs;  but when I insert one Ethernet bridge box ( one linux box, kernel 2.4.26, ebtables-brnf-6_vs_2.4.26 patch) between the gateway and the Hub, somethings changed:

I was not able to log  in hotmail, maybe also on certain websites.

For example, I access  www.hotmail.com, it loads OK. When I input my account, and hit Login, it goes to a error page(DNS error or server not found)  after a moment.

Except the above site, maybe also have others, but most sites work fine, very strange!

I am sure that this Linux Ethernet bridge is only  transparent bridge, no any Iptables filter and rule.

If I have no this Ethernet bridge, it works fine, no hotmail login error.

If I remove the tag for VLAN(just change the port 1 to untagged),  also with this Linux Ethernet bridge it works all OK, also have no hotmail login error. Very strange, it as if the issue is on VLAN , tag, or Linux Ethernet  bridge , I have no idea of it now!

I am stuck here now!

Any help, comments, hints would be greatly appreciated!

If you need more info on it, please let me know soon!

Thanks!

Note: The UPNP box can act as a universal gateway for these PCs under it, no matter what their IP are, maybe a dynamic IP, or any fixed IP.

Kingz

 

_______________________________________________
Bridge mailing list
Bridge <at> lists.osdl.org
http://lists.osdl.org/mailman/listinfo/bridge
Kafa | 17 Nov 2004 08:32

about cpu usage of linux bridge

Dear,

     I’m using the bridge + iptables to be level 4 switch ,but I want to know how about the cpu usage of linux bridge ?

     Thank you very much ^_^

 

 

Regards,

Kafa.

_______________________________________________
Bridge mailing list
Bridge <at> lists.osdl.org
http://lists.osdl.org/mailman/listinfo/bridge

Gmane