[Openswan Users] VPN ; - Linux as VPN client , routing problem[SOLVED]
John Joseph
jjk_saji at yahoo.com
Wed Dec 6 22:14:45 EST 2006
Thanks for the mail
my ppp informations are given below , I did try
giving defaultroute ppp0 , which was not working for
me
[root at centos ~]# cat /etc/ppp/options.l2tpd.client
ipcp-accept-local
ipcp-accept-remote
refuse-eap
noccp
noauth
crtscts
idle 1800
mtu 1410
mru 1410
#defaultroute ppp0
nodefaultroute
debug
lock
#proxyarp
connect-delay 5000
######################################
Now I did some changes in the script which I run soon
after I get VPN connection is
####################################
route add default gw 192.168.168.167 ppp0
route add -host 2xx.1xx.1xx.1xx gw 10.0.0.1 dev eth0
route add -host 10.0.0.1 dev eth0
route del default gw 10.0.0.1 dev eth0
##################################
Thanks
Joseph John
--- Paul Wouters <paul at xelerance.com> wrote:
> On Wed, 6 Dec 2006, John Joseph wrote:
>
> > Thanks , I am able to connect to the VPN , and
> > route all the traffic through ppp0.This is what I
> had
> > done , after the connection was established.
> >
> >
> >
>
#####################################################
> >
> > route del -net 169.254.0.0 netmask 255.255.0.0
> > route add default gw 192.168.168.167 ppp0
> > route add -host AAA.BB.CC.DD dev eth0
> > route add -host AAA.BB.CC.DD gw 10.0.0.1 dev eth0
> > route add -host 10.0.0.1 dev eth0
> > route del default gw 10.0.0.1 dev eth0
> >
> > ##
> > AAA.BB.CC.DD ==> Public IP address of VPN server
> > ##################################
>
> did you specify "defaultroute" in the ppp options?
>
> > This I had tried using CentOS .
> > I do have plan to try FreeSwan on LinkSys
> router
> > with OpenWrt installed
>
> openwrt comes with openswan now. just run ipkg
> update and
> ipkg install openswan.
>
> Paul
>
Send instant messages to your online friends http://uk.messenger.yahoo.com
More information about the Users
mailing list