1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

blocklanfw script is not yet migrated to nft, ignore it when nft is used

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-12-10 16:37:06 +01:00
parent bf18da86f6
commit e5046ae632

View file

@ -1,5 +1,7 @@
#!/bin/sh
[ -e /usr/sbin/nft ] && exit 0
if [ -e /usr/sbin/iptables-legacy ]; then
IPTABLES="/usr/sbin/iptables-legacy"
IP6TABLES="/usr/sbin/ip6tables-legacy"