Results 1 to 2 of 2

Thread: NetworkManager redirecting all traffic over OpenVPN...

  1. #1
    Join Date
    Jul 2007
    Location
    Toronto, Ontario, Canada
    Beans
    265

    NetworkManager redirecting all traffic over OpenVPN...

    So I finally got OpenVPN working - and so far, everything works as I would like.

    I got it set up in the NetworkManager applet (imported the client.ovpn), but when I connect it sends ALL my traffic through the VPN. I would prefer all accesses to the internet go over my normal default gateway, rather then all the way through to the VPN's default gateway.

    When I connect through the command line:

    Code:
    openvpn --config client.ovpn
    I don't have this problem, and accesses to the internet still go over my default gateway on the client side.

    Is there a way to make NetworkManager stop forcing absolutely everything over the VPN tunnel? I would prefer to keep using it for this if possible... it keeps the whole process very clean.

    Thanks!

    EDIT:

    Here is my routing table before connecting:

    Code:
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    3.3.3.0         0.0.0.0         255.255.255.0   U     1      0        0 eth0
    0.0.0.0         3.3.3.1         0.0.0.0         UG    0      0        0 eth0
    Here is my routing table after connecting:

    Code:
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    10.8.0.5        0.0.0.0         255.255.255.255 UH    0      0        0 tun0
    76.10.136.84    3.3.3.1         255.255.255.255 UGH   0      0        0 eth0
    10.0.1.0        10.8.0.5        255.255.255.0   UG    0      0        0 tun0
    10.8.0.0        10.8.0.5        255.255.255.0   UG    0      0        0 tun0
    3.3.3.0         0.0.0.0         255.255.255.0   U     1      0        0 eth0
    0.0.0.0         10.8.0.5        0.0.0.0         UG    0      0        0 tun0
    Last edited by ownaginatious; January 16th, 2011 at 05:53 AM.

  2. #2
    Join Date
    Jul 2007
    Location
    Toronto, Ontario, Canada
    Beans
    265

    Re: NetworkManager redirecting all traffic over OpenVPN...

    Ah, figured it out. It turns out it's a 'feature' of NetworkManager.

    For anyone reading this in the future, the way to fix it is:

    Click NetworkManager applet icon > VPN Connections > Configure VPN... > select VPN network > Edit > IPv4 Settings > Routes... > Check 'Use this connection only for resources on its network'

    That will prevent the computer from throwing everything over the VPN line and only connections that must use it.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •