When accessing Network -> Firewall, the screen remains blank and a red banner prints the error:
TypeError
_(...).format is not a function
How can I add a rule to allow ipv6 traffic from the internet to a certain host/port of a LAN machine?
When accessing Network -> Firewall, the screen remains blank and a red banner prints the error:
TypeError
_(...).format is not a function
How can I add a rule to allow ipv6 traffic from the internet to a certain host/port of a LAN machine?
The firewall conf is @ /etc/config/firewall. I'd check to make sure the file contains no errors as that msg shouldn't be showing in LuCI.
Untested but this should do it. Edit to taste:
uci -q batch <<- __EOF
add firewall rule
rename firewall.@rule[-1]='ipv6_client'
set firewall.ipv6_client.name='Incoming IPv6 for Client'
set firewall.ipv6_client.src='wan6'
set firewall.ipv6_client.family='ipv6'
set firewall.ipv6_client.src_port='65536'
set firewall.ipv6_client.dest='lan'
uci add_list firewall.ipv6_client.dest_ip='::1'
set firewall.ipv6_client.dest_port='65536'
set firewall.ipv6_client.target='ACCEPT'
set firewall.ipv6_client.enabled='1'
reorder firewall.ipv6_client='1'
__EOF
uci commit firewall
/etc/init.d/firewall restart
Make sure IPv6 is already enabled in the GL GUI -> Network. Reboot after enabling it.
SOLVED: The javascript problem doesn't happen on Edge/Windows, but happened on Brave/Chrome on Macos
Feel free to mark it as the 'Solution.'