View Single Post
Posts: 372 | Thanked: 9 times | Joined on Mar 2007
#41
An update...

I replaced the ip-up with the following

#!/bin/sh
PRIMARY=wlan0
SERVER=130.95.11.2
CONNECTION=$6
if [ "${CONNECTION}" = "" ]; then CONNECTION=${PPP_IPPARAM}; fi
TUNNEL=$1
if [ "${TUNNEL}" = "" ]; then TUNNEL=${PPP_IFACE}; fi
if [ "${CONNECTION}" = "tunnel" ] ; then
route add -host ${SERVER} dev ${PRIMARY}
route del default ${PRIMARY}
route add default dev ${TUNNEL}

fi
Is this correct? is PRIMARY supposed to be wlan0 or eth0 or something else? I changed it to wlan0 and SERVER to the IP of the VPN server. Anything else I'm missing?