#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2007
    Posts
    313
    Rep Power
    30

    VPN Route Command


    I'm trying to route some traffic but cannot figure out the route commands necessary. I'm setting up a VPN tunnel but no matter what I try I cannot seem to get all traffic routed through the tunnel...here are some numbers that may help...

    Code:
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    192.168.35.117  *               255.255.255.255 UH    0      0        0 ppp0
    192.168.6.0     *               255.255.255.0   U     0      0        0 wlan0
    default         192.168.6.1     0.0.0.0         UG    0      0        0 wlan0
    default         192.168.6.1     0.0.0.0         UG    100    0        0 wlan0
    
    ppp0      Link encap:Point-to-Point Protocol  
              inet addr:206.222.178.239  P-t-P:192.168.35.117  Mask:255.255.255.255
              UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1400  
    
    wlan0     
              Link encap: Ethernet inet addr:192.168.6.104  Bcast:192.168.6.255  Mask:255.255.255.0
    These are how everything is configured once I *think* the tunnel is up and ready, but routing hasn't been adjusted. I can ping 206.222.178.239, and traceroute shows it as 1 hop away. I cannot ping 192.168.35.117. I can connect to external sites, but it's not going through the tunnel.

    I've tried a handful of stuff seen across the net while trying to get it to work. The majority of `route add` commands I enter result in a no such process error. A few are actually successful, but either cause me to lose connection altogether, or kills the tunnel.

    I thought maybe

    route add default gw 206.222.178.139

    would work, but that causes the tunnel to hang up altogether.

    Can anyone help out here?
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2011
    Posts
    15
    Rep Power
    0
    Hi,

    Your default route is set to 192.168.6.1 you probably want to remove that and try again,

    route del default gw 192.168.6.1
    See if that helps.

    Eddie

IMN logo majestic logo threadwatch logo seochat tools logo