diff options
Diffstat (limited to 'extensions/libxt_mac.txlate')
-rw-r--r-- | extensions/libxt_mac.txlate | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/extensions/libxt_mac.txlate b/extensions/libxt_mac.txlate new file mode 100644 index 00000000..08696f3d --- /dev/null +++ b/extensions/libxt_mac.txlate @@ -0,0 +1,5 @@ +iptables-translate -A INPUT -m mac --mac-source 0a:12:3e:4f:b2:c6 -j DROP +nft add rule ip filter INPUT ether saddr 0a:12:3e:4f:b2:c6 counter drop + +iptables-translate -A INPUT -p tcp --dport 80 -m mac --mac-source 0a:12:3e:4f:b2:c6 -j ACCEPT +nft add rule ip filter INPUT tcp dport 80 ether saddr 0a:12:3e:4f:b2:c6 counter accept |