summaryrefslogtreecommitdiffstats
path: root/package/network/config/firewall3/files/ipv6-ula-border.sh
blob: ebd23a9851221528dcc9d7c444b1cb781b75a308 (plain)
1
2
3
4
5
6
#!/bin/sh
ULA_PREFIX=$(uci -q get network.globals.ula_prefix)
[ -n "$ULA_PREFIX" ] || exit 0

ip6tables -I delegate_forward -s $ULA_PREFIX -m comment --comment "Enforce ULA-Border" -j zone_wan_dest_REJECT
ip6tables -I delegate_forward -d $ULA_PREFIX -m comment --comment "Enforce ULA-Border" -j zone_wan_dest_REJECT