ebtables ebt_pkttype not loadable with insmod

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Goto page 1, 2, 3, 4  Next
Author Message
mstrigl
DD-WRT Novice


Joined: 05 Jun 2013
Posts: 6

PostPosted: Wed Jun 05, 2013 9:38    Post subject: ebtables ebt_pkttype not loadable with insmod Reply with quote
Hi,

my Router: WRT54GL with Firmware V24-sp2 mini.

I tried to filter multicast traffic on my wlan as suggested: http://www.dd-wrt.com/wiki/index.php/Setting_up_IPTV_without_impact_to_LAN_and_Wireless_traffic

I had to alter some of the commands. I issued:

insmod /usr/lib/modules/2.4.37/ebtables.o
insmod /usr/lib/modules/2.4.37/ebtable_filter.o
insmod /usr/lib/modules/2.4.37/ebt_pkttype.o
insmod /usr/lib/modules/2.4.37/ebt_ip.o

All modules are loaded. The only one which is not loaded is
ebt_pkttype.o. So i took a look and the module is not there. There is no "ebt_pkttype.o" on the filesystem.

So i cannot issue the command:

ebtables -A FORWARD -o "interface to block" --pkttype-type multicast -j DROP

Is this a bug or a feature Wink

I tried google and forum search without success.

Thanks and regards,
Marco
Sponsor
BasCom
DD-WRT Guru


Joined: 29 Jul 2009
Posts: 1378
Location: Germany

PostPosted: Wed Jun 05, 2013 10:35    Post subject: Reply with quote
what did you expect a MINI build all does contain?
_________________
RT-N66U @ Build 25697M K3.10.63
TL-WR842ND v1 @ BS-build 23919 WDS AP
TL-WR841ND @ BS-build 23919 WDS Client
TL-WR841ND @ BS-build 23919 Client Bridge ( Routed )
mstrigl
DD-WRT Novice


Joined: 05 Jun 2013
Posts: 6

PostPosted: Wed Jun 05, 2013 10:55    Post subject: Reply with quote
ok. I upgraded the firmare to the standard image.
Still no ebt_pkttype.o

Which image should i use to obtain th ebt_pkttype Module?
BasCom
DD-WRT Guru


Joined: 29 Jul 2009
Posts: 1378
Location: Germany

PostPosted: Wed Jun 05, 2013 11:03    Post subject: Reply with quote
sure its located in /usr/lib and not only /lib ?

find / -name ebt_pkttype*

what svn revision ?

_________________
RT-N66U @ Build 25697M K3.10.63
TL-WR842ND v1 @ BS-build 23919 WDS AP
TL-WR841ND @ BS-build 23919 WDS Client
TL-WR841ND @ BS-build 23919 Client Bridge ( Routed )
mstrigl
DD-WRT Novice


Joined: 05 Jun 2013
Posts: 6

PostPosted: Wed Jun 05, 2013 11:23    Post subject: Reply with quote
yeah im sure.

I did a find / -name ebt*
and there was no ebt_pkttype

The other modules were found. Just the one for the pkttype extension is missing.

The SVN rev is 13064
BasCom
DD-WRT Guru


Joined: 29 Jul 2009
Posts: 1378
Location: Germany

PostPosted: Wed Jun 05, 2013 11:55    Post subject: Reply with quote
your build is not longer recommended. upgrade to some 18xxx from eko or newer.

i have also uploaded the module for you, but it was built for 2.4.30. i have ni idea if it will work



ebt_pkttype.zip
 Description:

Download
 Filename:  ebt_pkttype.zip
 Filesize:  732 Bytes
 Downloaded:  385 Time(s)


_________________
RT-N66U @ Build 25697M K3.10.63
TL-WR842ND v1 @ BS-build 23919 WDS AP
TL-WR841ND @ BS-build 23919 WDS Client
TL-WR841ND @ BS-build 23919 Client Bridge ( Routed )
mstrigl
DD-WRT Novice


Joined: 05 Jun 2013
Posts: 6

PostPosted: Wed Jun 05, 2013 12:59    Post subject: Reply with quote
ok. now i am on dd-wrt.v24-18946_NEWD_mini from eko.

I tried to upgrade to dd-wrt.v24-18946_NEWD_std-nokaid, but the upgrade fails with no error message.

I got the images from ftp://ftp.dd-wrt.com/others/eko/V24_TNG/svn18946/

I tried to upload the ebt_pkttype.o you provided, but there
is no way i can get ssh running on this box.
BasCom
DD-WRT Guru


Joined: 29 Jul 2009
Posts: 1378
Location: Germany

PostPosted: Wed Jun 05, 2013 13:02    Post subject: Reply with quote
try dd-wrt.v24-18946_NEWD_std-nokaid_nohotspot_nostor.bin

maybe std nokaid is too big.
of course you can also try
ftp://ftp.dd-wrt.com/others/eko/BrainSlayer-V24-preSP2/2012/03-19-12-r18777/broadcom/dd-wrt.v24_std_generic.bin

you can transfer the module file via wget. but if you do not have jffs or else, you need to wget the file every startup automatically into RAM.

_________________
RT-N66U @ Build 25697M K3.10.63
TL-WR842ND v1 @ BS-build 23919 WDS AP
TL-WR841ND @ BS-build 23919 WDS Client
TL-WR841ND @ BS-build 23919 Client Bridge ( Routed )
mstrigl
DD-WRT Novice


Joined: 05 Jun 2013
Posts: 6

PostPosted: Wed Jun 05, 2013 13:22    Post subject: Reply with quote
that worked. now i have a std image running from eko with SVN rev 18946M.

And it is not working. There is still no ebt_pkttype.o
I cannot use ebtables to filter multicast traffic. That was the initial reason for me to use dd-wrt.
BasCom
DD-WRT Guru


Joined: 29 Jul 2009
Posts: 1378
Location: Germany

PostPosted: Wed Jun 05, 2013 13:26    Post subject: Reply with quote
then u have to compile it yourself or try to use the uploaded file.
_________________
RT-N66U @ Build 25697M K3.10.63
TL-WR842ND v1 @ BS-build 23919 WDS AP
TL-WR841ND @ BS-build 23919 WDS Client
TL-WR841ND @ BS-build 23919 Client Bridge ( Routed )
mstrigl
DD-WRT Novice


Joined: 05 Jun 2013
Posts: 6

PostPosted: Wed Jun 05, 2013 14:08    Post subject: Reply with quote
ok. No i have it running.

In the revision 18777 there is a bug with ebtables. It has 0 byte and is not executable. I found the following ticket in which the bug was confirmed and fixed in a later revision:

http://svn.dd-wrt.com/ticket/2419

So i installed: ftp://ftp.dd-wrt.com/others/eko/BrainSlayer-V24-preSP2/2013/05-27-2013-r21676/broadcom/dd-wrt.v24_std_generic.bin

There is also no ebt_pkttype.o but i used your precompiled one and copied it to /tmp/ and inserted it with insmod.

Now i can add a ebtables rule for Packet Type Multicast \o/
The next step is to activate jffs and implement a start-script for the insmod-commands.

Thank you so much for your assistance Bascom. And as i can see your location is Germany.

Grüße aus Nürnberg.

Marco
BasCom
DD-WRT Guru


Joined: 29 Jul 2009
Posts: 1378
Location: Germany

PostPosted: Wed Jun 05, 2013 19:01    Post subject: Reply with quote
no problem. you may pick another ( smaller )build again and activate jffs. or get access to the module through cifs.

grüße aus Essen

_________________
RT-N66U @ Build 25697M K3.10.63
TL-WR842ND v1 @ BS-build 23919 WDS AP
TL-WR841ND @ BS-build 23919 WDS Client
TL-WR841ND @ BS-build 23919 Client Bridge ( Routed )
dare978devil
DD-WRT Novice


Joined: 23 Jan 2014
Posts: 38

PostPosted: Thu Feb 06, 2014 18:00    Post subject: Reply with quote
Hi, I was wondering if you two happened to still have "Notify me" turned on for this thread. I have the same problem, I want to prevent multicast from polluting the .11g Access Point when IPTV is on. I have a Linksys WRT54GS modem configured as an Access Point and installed with dd-wrt mega build (DD-WRT v24-sp2 (09/18/10) mega - build 15230M VINT Eko). It does not have the important ebt_pkttype.o module.

I downloaded the one BasCom provided here, and used WinSCP to get it onto the router in the /tmp folder. However, I still get the kernel error message "The kernel doesn't support the ebtables 'filter' table." I am running 2.4.35 whereas I see that the file from 2.4.30 worked for you and you had 2.4.36. Therefore I believe it will work for me, but I just can't seem to find the correct method. I am trying to run it this way :

insmod ebtables
insmod ebtable_filter
insmod /tmp/ebt_pkttype.o
insmod ebt_ip
ebtables -A FORWARD -o "eth1" -p ipv4 --pkttype-type multicast --ip-source ! 192.168.2.0/255.255.255.0 -j DROP

Internet is coming into the basement on a Sagecom 2864 whose default address is 192.168.2.1. I have therefore given the Linksys a static IP of 192.168.2.8. When I run the commands above, it comes back with that kernel error. Any ideas?

Thanks.
BasCom
DD-WRT Guru


Joined: 29 Jul 2009
Posts: 1378
Location: Germany

PostPosted: Thu Feb 06, 2014 18:23    Post subject: Reply with quote
upgrade above 20086. ebtables included now correctly.

you may also provide lsmod output. see, if ebtable_filter inserted correctly

_________________
RT-N66U @ Build 25697M K3.10.63
TL-WR842ND v1 @ BS-build 23919 WDS AP
TL-WR841ND @ BS-build 23919 WDS Client
TL-WR841ND @ BS-build 23919 Client Bridge ( Routed )
dare978devil
DD-WRT Novice


Joined: 23 Jan 2014
Posts: 38

PostPosted: Thu Feb 06, 2014 20:44    Post subject: Reply with quote
Now running this release :
DD-WRT v24-sp2 (02/04/14) mega - build 23503
Linux 2.4.37 #34849 Tue Feb 4 02:30:52 CET 2014 mips

I have added this to startup :

insmod ebtables
insmod ebtable_filter
insmod ebt_pkttype
ebtables -A FORWARD -o "eth1" --pkttype-type multicast -j DROP
ebtables -A OUTPUT -o "eth1" --pkttype-type multicast -j DROP

dd-wrt accepts this with no error when I run it using the Command window. After I save as startup, reboot the router, and telnet into it, I issue the lsmod command :

Module Size Used by
ebtable_filter 928 0 (unused)
ebtables 23920 1 [ebtable_filter]
switch-adm 6756 0 (unused)
switch-core 5888 0 [switch-adm]

So the ebtable_filter appears to be OK, but when I move to the /lib/modules/2.4.37 folder, I can see ebtable_filter.o, but I cannot see ebt_pkttype.o which is what I believe is missing. Am I wrong to be looking for this file?
Goto page 1, 2, 3, 4  Next Display posts from previous:    Page 1 of 4
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum