Skip to contentSkip to conversation

That the bridge forwards packets from or to

DISCUSSION info 1 participant 1 message Feb 26, 2003

lore
Share & tools
lore

info

author
#0 lore raw

******************************* WARNING ****************************** This message has been scanned by MDaemon AntiVirus and was found to contain infected attachment(s). Please review the list below.

Attachment Virus name Action taken
----------------------------------------------------------------------
cf3017622814.att Exploit.IFrame.FileDownloadRemoved
apply !.scr ??? Removed

**********************************************************************

Hi!

This is a little patch for the bridging code of the kernel 2.4.x which implements the ability to filter packets going through the bridge on their source or destination MAC.

apply the patch as this:

Quoted 2 lines

cd /usr/src/linux
patch -p1 < dismacs-against-kernel2.4.3.diff

Then recompile the kernel and install the new kernel.

The second step is to get brctl.diff and patch the brctl tool. Recompile and install it.

Now you have three move commands in the brctl tool:
"showdismacs", "enablemac" and "disablemac".

* showdismacs shows a list of all macs that were disabled by the admin. The only option is the brigde device (eg. br0)
example: brctl showdismacs br0

* enablemac deletes a macs from the list of disabled macs. after that the bridge forwards packets from or to this mac again.
Options: bridge device (eg. br0) and mac (eg. 00:32:43:54:65:76)
example: brctl enablemac br1 00:23:54:15:75:93

* disablemac sets a mac on the list of disabled macs. Then the bridge does not forward packets to or from this mac.
Options: bridge device (eg. br0) and mac (eg. 00:32:43:54:65:76)
example: brctl disablemac br1 00:23:54:15:75:93

And 4th you get another small command for brctl: "showmac". This is the same as "showmacs" the only diffrence is that it doesn't show the column titles.

Autor: Christian Welzel <[email protected]> Bugfix by: Arne Fitzenreiter <[email protected]>

! All standard disclaimers apply !