#!/bin/sh

iface=$1
proto=$2
localip=$3
remoteip=$4
vpn_private_ip=10.0.0.2

ifconfig $iface $proto $localip $vpn_private_ip netmask 0xffffffff
ifconfig $iface mtu 1460
route flush
route add default -interface $iface

# If you need to re-configure DNS after the tunnel is up
# do it here. (Fill in your domain and DNS server IPs.)
#echo search example.com >/etc/resolv.conf
#echo nameserver x.x.x.x >>/etc/resolv.conf
#echo nameserver y.y.y.y >>/etc/resolv.conf

