Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Avoid creating PPTP default routes' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Avoid creating PPTP default routes
Authored by: tfield1974 on Feb 06, '04 01:11:39PM

This is a great tip (especially iwth the ip-up/ip-down addition). However, for some reason I am unable to get my route add statement to be recognized, so I'm basically blocked out of my work network (10.128). As a result, I have to figure out what my remote IP is and manually add the route myself - which seems to not really be the point.

Here's my ip-up:

#!/bin/sh
# /etc/ppp/ip-up
route add -net 10.128 $IPREMOTE
cp /etc/resolv.conf /etc/resolv.conf.pppd.save
echo nameserver $DNS1 > /etc/resolv.conf
echo nameserver 192.168.2.1 >> /etc/resolv.conf
echo nameserver $DNS2 >> /etc/resolv.conf

Here's what I use to manually add the route statement:
sudo route add -net 10.128 my.remote.ip.address

Any suggestions?

Thanks!
Tony



[ Reply to This | # ]