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..

Get Free Email Updates!

Signup now and receive an email once I publish new content.

I will never give away, trade or sell your email address. You can unsubscribe at any time.

Like

Related Post

3 Responses

  1. azwan says:

    For the rest of us, I recommend easy thumbnails – http://www.fookes.com/ezthumbs/

    Reply
  2. leychay says:

    for the rest of us, he mean, WINDOWS user.
    hehehe~ 😉

    Reply
    • HawkEYE says:

      yalah.. forgot to mention that was meant for linux user..
      you can try download live cd for ubuntu and burn into cd and reboot once.. 😎

      i think now ubuntu can also be installed directly on top of windows XP..
      and just behaving like another game.. hehe.. so easy to try ..

      Reply

Anything to add?

X