#!/bin/sh # # Set up slip interface after successful login # # $Id: slip.login,v 1.1 2006/05/28 21:08:34 hauke Exp $ # echo "slip.login called with: $@" | logger -s # Copy parameters interface=sl${1} ifspeed=${2} login=${3} this_host=${4} other_host=${5} netmask=${6} opt_arg1=${7} opt_arg2=${8} # Enable IP forwarding /sbin/sysctl -w net.inet.ip.forwarding=1 echo "ifconfig ${interface} inet ${this_host} ${other_host} netmask ${netmask} ${opt_arg1} ${opt_arg2} mtu 1024 debug up" | logger -s /sbin/ifconfig ${interface} inet ${this_host} ${other_host} \ netmask ${netmask} mtu 1024 ${opt_arg1} ${opt_arg2} debug up # Set up proxy arp for our guest /usr/sbin/arp -s ${other_host} 08:00:07:8c:7d:2d pub exit 0