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";
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 Post

3 Responses

  1. casiemec says:

    This rather good idea is necessary just by the way

  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)

  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.


Leave a Reply

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