openwrtv3/package/network/config/firewall3/files/ipv6-ula-border.sh
Steven Barth 2c78c1457b firewall3: Make IPv6 ULA-Border generation dynamic
This fixes working behind another router which gives out ULAs.

SVN-Revision: 36416
2013-04-24 14:17:24 +00:00

6 lines
316 B
Bash

#!/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