in /etc/vtund.conf  for client..

ultramankosmos {
passwd makan2;
type tty;
proto tcp;
keepalive yes;
persist yes;
multi killold;
up {
ppp "noipdefault lcp-echo-interval 60 lcp-echo-failure 3 nodefaultroute ipparam IMTHEVPN";
route "del";


in /etc/ppp/ip-preup

logger NAMRAN::I got $5 $6
if [[ "$6" =~ IMTHEVPN ]]
logger NAMRAN::$6 going to route to...$5
/sbin/route add -host gw $5
logger NAMRAN:: doing nothing

verify .. use

netstat -rn

after it come up..

Related posts:

  1. Blocking access to certain website using route
  2. make it invisible to those ip..
  3. Routing tutorial
  4. How to add bridge interface to eth0 for KVM in CentOS 5
  5. Installing WICD for wireless connection User interface in CentOS 5.6