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

Update TTL settings to nftables

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-10-29 09:34:53 +01:00
parent ebce49935a
commit d11f409225
2 changed files with 9 additions and 3 deletions

View file

@ -155,13 +155,15 @@ if [ "$(uci -q get firewall.ttl)" = "" ]; then
uci -q batch <<-EOF >/dev/null
set firewall.ttl=include
set firewall.ttl.path=/etc/firewall.ttl
set firewall.ttl.type='script'
set firewall.ttl.fw4_compatible='1'
commit firewall
EOF
fi
if [ "$(uci -q get firewall.upnp)" = "" ]; then
uci -q batch <<-EOF >/dev/null
set firewall.upnp=include
set firewall.upnp.path='/etc/firewall.ttl'
set firewall.upnp.path='/etc/firewall.upnp'
set firewall.upnp.type='script'
set firewall.upnp.fw4_compatible='1'
commit firewall