Author
Message
mosesofmason DD-WRT Novice Joined: 12 Aug 2017 Posts: 7
Posted: Wed Oct 06, 2021 13:20 Post subject: How to install iptables-mod-filter?
Hi,
I wanna install OpenWRT `iptables-mod-filter` package. I followed https://wiki.dd-wrt.com/wiki/index.php/Installing_Entware installed the `opkg` command. The installation is successful, but after running `opkg upgrade` command, it prompts there is no iptables-mod-filter.
How can I install this package on my router
Thanks in advance.
Back to top
Sponsor
egc DD-WRT Guru Joined: 18 Mar 2014 Posts: 12893 Location: Netherlands
Posted: Wed Oct 06, 2021 16:51 Post subject:
I do not know what the relation is with OpenWRT, but with Entware you can install a lot of additional packages (see: https://bin.entware.net/armv7sf-k3.2/ )
The forum guidelines have many helpful pointers about how and where to post:
https://forum.dd-wrt.com/phpBB2/viewforum.php?f=44
As far as I know there are not even Entware packages for PPC.
Maybe you are posting in the wrong forum but if so I cannot move your post as you do not state your router model and build number as requested by the forum guidelines to get optimal support
_________________ Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read): https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Back to top
mosesofmason DD-WRT Novice Joined: 12 Aug 2017 Posts: 7
Posted: Wed Oct 06, 2021 18:36 Post subject:
My router is Netgear R6400v1.
I checked the link you give (https://bin.entware.net/armv7sf-k3.2/ ). It seems Entware does not have iptables-mod-filter package...
egc wrote: I do not know what the relation is with OpenWRT, but with Entware you can install a lot of additional packages (see: https://bin.entware.net/armv7sf-k3.2/ )
The forum guidelines have many helpful pointers about how and where to post:
https://forum.dd-wrt.com/phpBB2/viewforum.php?f=44
As far as I know there are not even Entware packages for PPC.
Maybe you are posting in the wrong forum but if so I cannot move your post as you do not state your router model and build number as requested by the forum guidelines to get optimal support
Back to top
egc DD-WRT Guru Joined: 18 Mar 2014 Posts: 12893 Location: Netherlands
Posted: Wed Oct 06, 2021 19:02 Post subject:
Moved your post to the right Broadcom forum.
Perhaps tell us what your problem is you are trying to solve so that we can think of a solution.
Oh and tell us what build you are running, not all builds can be recommended.
_________________ Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read): https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Back to top
kernel-panic69 DD-WRT Guru Joined: 08 May 2018 Posts: 14225 Location: Texas, USA
Back to top
mosesofmason DD-WRT Novice Joined: 12 Aug 2017 Posts: 7
Posted: Wed Oct 06, 2021 19:40 Post subject:
I want to apply some iptables BPF bytecode rules, e.g.:
Code: iptables -A INPUT -p udp --dport 53 -m bpf --bytecode "xx xx xx xx xx xx" -j DROP
Firmware: DD-WRT v3.0-r44715 std
Kernel: Linux 4.4.241 #1322 SMP armv7l
Back to top
egc DD-WRT Guru Joined: 18 Mar 2014 Posts: 12893 Location: Netherlands
Posted: Thu Oct 07, 2021 8:46 Post subject:
Although not related, but your build is old and deprecated and has security issues, so consider upgrading.
See the forum guidelines with helpful pointers about what and where to download and many more helpful tips:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
About the subject, I think you need xt_bpf.ko maybe it is in the iptables or ip full Entware package
Otherwise you have to compile the module yourself, I can normally do that for you but I am currently on holiday.
_________________ Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read): https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Back to top
egc DD-WRT Guru Joined: 18 Mar 2014 Posts: 12893 Location: Netherlands
Back to top
mosesofmason DD-WRT Novice Joined: 12 Aug 2017 Posts: 7
Posted: Fri Oct 08, 2021 12:19 Post subject:
Thanks. Please forgive me for asking what might be a dumb question, but I'm slightly unclear how to use the file. Is there a detailed guide I can follow?
Best Regards.
Back to top
egc DD-WRT Guru Joined: 18 Mar 2014 Posts: 12893 Location: Netherlands
Posted: Fri Oct 08, 2021 12:28 Post subject:
My mistake I thought someone using this knows how to do that.
Copy to permanent storage on the router, you can copy it to /tmp but then it is gone on reboot.
Let say you copy it to jffs.
Then insmod the module with
Code: insmod /jffs/xt_bpf.ko
Of course unzip first
_________________ Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read): https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Back to top
egc DD-WRT Guru Joined: 18 Mar 2014 Posts: 12893 Location: Netherlands
Posted: Fri Oct 08, 2021 12:49 Post subject:
I am not sure what your exact usage is, but using ipset could be an alternative.
Ipset has been added recently.
Documentation is a sticky in the Advanced Networking forum, link in my signature.
_________________ Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read): https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Back to top