[Openswan Users] VPN ;- Linux as VPN client , routing problem

John Joseph jjk_saji at yahoo.com
Sun Nov 26 05:37:34 EST 2006


Hi
  I am trying to connect two linux machine , one as
VPN server and other as VPN client , I am using PSK
mode of authentication.
 I am following the links
   
http://www.jacco2.dds.nl/networking/linux-l2tp.html  
for this purpose.

Our aim is to send all packets ,other than (10.*)
through the VPN tunnel.
 

>From the Linux client after running
echo "c L2TPserver" > /var/run/l2tp-control
I am able get the VPN connection


ifconfig shows
[root at localhost ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr
00:0C:29:B7:E8:16  
          inet addr:10.0.0.13   Bcast:10.255.255.255 
Mask:255.0.0.0
          inet6 addr: fe80::20c:29ff:feb7:e816/64
Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500 
Metric:1
          RX packets:167 errors:0 dropped:0 overruns:0
frame:0
          TX packets:107 errors:0 dropped:0 overruns:0
carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:13794 (13.4 KiB)  TX bytes:14400 (
14.0 KiB)
          Interrupt:10 Base address:0x1400

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0
frame:0
          TX packets:8 errors:0 dropped:0 overruns:0
carrier:0
          collisions:0 txqueuelen:0
          RX bytes:560 (560.0 b)  TX bytes:560 (560.0
b)

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:192.168.168.100  P-t-P:
192.168.168.167  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST 
MTU:1410  Metric:1
          RX packets:3 errors:0 dropped:0 overruns:0
frame:0
          TX packets:3 errors:0 dropped:0 overruns:0
carrier:0
          collisions:0 txqueuelen:3
          RX bytes:42 (42.0 b)  TX bytes:48 (48.0 b)

######################################

At this stage I am able to get "route" result as
[root at localhost ~]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags
Metric Ref    Use Iface
192.168.168.167 *               255.255.255.255 UH   
0      0        0 ppp0
169.254.0.0     *               255.255.0.0     U    
0      0        0 eth0
10.0.0.0        *               255.0.0.0       U    
0      0        0 eth0
default         10.0.0.1        0.0.0.0         UG   
0      0        0 eth0

#####################################
At this stage I am able to ping to my VPN server local
ip "192.168.168.167"
    

Now after modifying the route , using command

route add -net 0.0.0.0 dev ppp0

I get "route -n"
[root at localhost ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags
Metric Ref    Use Iface
192.168.168.167 0.0.0.0         255.255.255.255 UH   
0      0        0 ppp0
169.254.0.0      0.0.0.0         255.255.0.0     U    
0      0        0 eth0
10.0.0.0        0.0.0.0         255.0.0.0       U    
0      0        0 eth0
0.0.0.0         0.0.0.0         0.0.0.0         U    
0      0        0 ppp0
0.0.0.0         10.0.0.1        0.0.0.0         UG   
0      0        0 eth0


After this stage I am not able to ping or traceroute
to the VPN server or to any location
          
                    Guidance requested
               				 Thanks
                  			  Joseph John


Send instant messages to your online friends http://uk.messenger.yahoo.com 


More information about the Users mailing list