View Single Post
Posts: 53 | Thanked: 9 times | Joined on Nov 2005
#52
@luketoh:
i checked www.metafilter.com. runs fine on my device. i think it could be something specific with your pptp server.

the names of the scripts in /etc/ppp/ip-up.d/ are irrelevant. they just must be executable. i run
Code:
chmod +x filename
and everything runs fine. btw, the log doesn't show that the script has been run.

if you want to connect to different pptp server you must differentiate between them. eg:
Code:
CONNECTION=$6
if [ "${CONNECTION}" = "" ]; then CONNECTION=${PPP_IPPARAM}; fi

if [ "${CONNECTION}" = "uni1" ] ; then
	route del -host 192.168.23.1
	route add -host 132.252.57.235 gw 192.168.7.1 dev wlan0
	route del default
	route add default dev ppp0
fi

if [ "${CONNECTION}" = "uni2" ] ; then
	route del -host 192.168.19.1
	route add -host 34.3.43.112gw 192.168.45.1 dev wlan0
	route del default
	route add default dev ppp0
fi
@framerate:
thx for the nice words. feedback always feels good.
btw, there is a paypal donate link on my site

greetz

Last edited by loki; 2007-04-25 at 14:37.