IPF=/sbin/ipf IFCONFIG=/sbin/ifconfig IPNAT=/usr/sbin/ipnat SYSCTL=/sbin/sysctl ROUTE=/sbin/route if="$1" ip="$4" $IPF -l block # This enables our pppoe0 aliases # $IFCONFIG $1 alias $IFCONFIG $1 alias $IFCONFIG $1 alias $IFCONFIG $1 alias # Enable forwarding # $SYSCTL -w net.inet.ip.forwarding=1 # Now restart named. We do this because it is possible that named was started # at a time we couldn't bind to wanted addresses (not connected to the # internet yet at bind(8) launching time, for instance). # /etc/rc.d/named restart # Add the new default route $ROUTE add default $5