Make sure wireguard firewall is always on (#1486)

This commit is contained in:
Tim Wilkinson 2024-09-10 15:56:25 -07:00 committed by GitHub
parent 358978440c
commit 94ef43cf69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 4 deletions

View File

@ -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