How to add route to VTUN that use PPP interface.

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";
};
down{
route "del 192.168.171.1";
};
}

then.

in /etc/ppp/ip-preup

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

verify .. use

netstat -rn

after it come up..

Related Post

3 Responses

  1. casiemec says:

    This rather good idea is necessary just by the way

    Reply
  2. TheN2S says:

    I was wondering if I can use this for my wordpress 2.9.2 site. I simply want to mirror/sync/backup all my newly UPLOADED files to a new BACKUP website. (I don’t want to wait for the cron job to kick in)

    Reply
  3. Madelyn Monoz says:

    I love what you guys are up too. Such clever work and exposure! Keep up the good works guys I’ve added you guys to blogroll.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *