#!/bin/sh #---------------------------------------------------------------------------- # /etc/ppp/ipv6-up020.fwsetup - setup dynamic rules in the IPv6 firewall # # Last Update: $Id$ #---------------------------------------------------------------------------- net_config_dir="/var/run/ipv6.nets" echo 'setting up dynamic IPv6 firewall rules ...' if [ "$is_default_route" = "yes" ] then > /var/run/dynamic.ipv6 if [ -f /var/run/ipv6.tunnel.current ] then newprefix=$prefix . /var/run/ipv6.tunnel.current prefix=$newprefix for netfile in "$net_config_dir"/*.conf do [ -f "$netfile" ] || continue ( . "$netfile" if [ "$tunnel" = "$index" ] then echo "$ifnet" | cut -d / -f 1 >> /var/run/dynamic.ipv6 fi ) done fi fi setup-dynamic-ip6tables.sh