Hi 
I wanted advice on how to make all external traffic
flow through the secound interface (ppp0) 

  I am trying to connect my PC to another network
using VPN  [OpenSWAN]. I am able to connect , but I am
not able to ping  or traceroute  outside world 
through the VPN interface.
I  doubt  this is due to routing problem . I  tried to
solve it using  “ip route” command

Folowing are  observation:-
Before connecting to the    VPN server 
my linux client route  is

 
[EMAIL PROTECTED] etc]# route 
Kernel IP routing table
Destination     Gateway         Genmask         Flags
Metric Ref    Use Iface
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
[EMAIL PROTECTED] etc]# 

Now after connecting to the VPN 

[EMAIL PROTECTED] etc]# 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:14097 errors:0 dropped:0
overruns:0 frame:0
          TX packets:4167 errors:0 dropped:0
overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1051161 (1.0 MiB)  TX bytes:531339
(518.8 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:8 errors:0 dropped:0 overruns:0
frame:0
          TX packets:8 errors:0 dropped:0 overruns:0
carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:462 (462.0 b)  TX bytes:468 (468.0
b)


[EMAIL PROTECTED] etc]# 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
[EMAIL PROTECTED] etc]# 


at this stage , when I do  “ping -I 192.168.168.100 
outsideIP “ , I do not get reply 
but I get reply for “ping -I 192.168.168.100  MyVPN
serverIP address.


In order to route the traffic through ppp0 , I did try
 

route add default gw 192.168.168.167 ppp0

which gives the route result as 
[EMAIL PROTECTED] etc]# 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         192.168.168.167 0.0.0.0         UG   
0      0        0 ppp0
default         10.0.0.1        0.0.0.0         UG   
0      0        0 eth0

After  this stage also , my traffic get routed through
 eth0 , not through ppp0 
My intention is to route all the traffic through ppp0
, once  the VPN connection established.

Note:- My Dual boot XP  gets connected and the traffic
are routed through ppp0 by default. 
                        Guidance requested 
                              Joseph John




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

Reply via email to