All pastes #797485 Raw Edit

Mine

public text v1 · immutable
#797485 ·published 2007-11-26 01:05 UTC
rendered paste body
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 <anotheripaddressihave>
$IFCONFIG $1 alias <anotheripaddressihave>
$IFCONFIG $1 alias <anotheripaddressihave>
$IFCONFIG $1 alias <anotheripaddressihave>

# 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