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

2 Responses

  1. namran says:

    this would then make this app as ..

    the best yahoo messenger for centos

    .. after pidgin.. hehehe 😎

    as it had supersede the pidgin capabilities to perform
    some additional task which is not available in pidgin..

    may be you had been using other messenger..
    kindly post your comment in the form below ..

    p/s : don’t shoot the messenger..

    Reply
  2. arlie_bcx says:

    I did the steps above but got this message while installing:

    warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 217521f6

    GPG key retrieval failed: [Errno 5] OSError: [Errno 2] No such file or directory: ‘/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL’

    I’m using CentOS 5.6

    Reply

Leave a Reply

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