What package contains the MAC address kernel module ("ipt_mac")?

I'm moving a firewall script from dd-wrt to OpenWRT (forum.dd-wrt.com/phpBB2/viewtopic.php?t=328075&highlight=man+whitelist).
This firewall script requires this kernel module ("ipt_mac").

Most web searches for this kernel module give outdated results.
Example dated 2004: https://forum.archive.openwrt.org/viewtopic.php?id=439

The closest I've found so far is: Simple Firewall rule not working, why? - #3 by TheBigD
It states that "iptables-mod-ipopt" contains "libipt_mac", but not "ipt_mac".

So what OpenWRT package contains the MAC address kernel module ("ipt_mac")?

Any pointers appreciated.

Thank you.

It's built-in.


LGA1150, thank you for your response.

If you don't mind, I have another question.
I had searched both "System->Software" and https://openwrt.org/packages/index/kernel-modules
but failed to locate "ipt_mac".
In the future, how would I check if a specific kernel module was available and/or installed?

Thank you.

Via SSH, login to your router and issue the command: modinfo ipt_mac.

module:		/lib/modules/5.4.111/xt_mac.ko
alias:		ip6t_mac
alias:		ipt_mac
license:	GPL
depends:	x_tables
intree:		Y
name:		xt_mac
vermagic:	5.4.111 SMP mod_unload ARMv7 p2v8

In the above example if I did modprobe ipt_mac to try and load the module, xt_mac is what would actually be loaded (alias/name).

You can use lsmod | grep xt_mac to see if it's loaded or not. The /lib/modules/*/ directory is interesting if you want to find out what modules are available.

1 Like

LGA1150, thank you for the instructions.
I appreciate the education.
Again, thank you.