mirror of https://github.com/aredn/aredn.git
Make sure wireguard firewall is always on (#1486)
This commit is contained in:
parent
358978440c
commit
94ef43cf69
|
@ -9,7 +9,5 @@ fi
|
|||
vtundportend=$(($vtundport+128))
|
||||
|
||||
nft insert rule ip fw4 input_wan udp dport $vtundport-$vtundportend accept comment \"Wireguard\"
|
||||
if [ "$(/sbin/uci -q get aredn.@tunnel[0].wanonly)" != "0" ]; then
|
||||
nft insert rule ip fw4 output_wifi udp dport $vtundport-$vtundportend reject comment \"Wireguard\"
|
||||
nft insert rule ip fw4 output_dtdlink udp dport $vtundport-$vtundportend reject comment \"Wireguard\"
|
||||
fi
|
||||
nft insert rule ip fw4 output_wifi udp dport $vtundport-$vtundportend reject comment \"Wireguard\"
|
||||
nft insert rule ip fw4 output_dtdlink udp dport $vtundport-$vtundportend reject comment \"Wireguard\"
|
||||
|
|
Loading…
Reference in New Issue