Results 1 to 9 of 9

Thread: Can I connect to 2 VPNs at the same time?

  1. #1
    Join Date
    Jan 2008
    Location
    Cambridge MA
    Beans
    1,163
    Distro
    Ubuntu 10.04 Lucid Lynx

    Arrow Can I connect to 2 VPNs at the same time?

    I have two different VPN's I need to connect to. One is so that I can authenticate MATLAB from my university's matlab license manager. The other is for my lab's VPN so I can access my data.

    Is it possible to connect to 2 vpn's at the same time, and if so how can I do it?
    Allons-y Alonzo! - The Dr.
    Is that what Time Lords do? Lop a bit off, and grow another one. You're like worms! - Donna Noble
    The world is a mess... and I just need to... Rule it. - Dr. Horrible

  2. #2
    Join Date
    Sep 2007
    Location
    Masschusetts
    Beans
    1,510
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Can I connect to 2 VPNs at the same time?

    Quote Originally Posted by neurostu View Post
    I have two different VPN's I need to connect to. One is so that I can authenticate MATLAB from my university's matlab license manager. The other is for my lab's VPN so I can access my data.

    Is it possible to connect to 2 vpn's at the same time, and if so how can I do it?
    As long as the network addresses don't conflict.
    What client do you use?
    Registered Linux User: 482377
    MacBook (1,1) - OS X Leopard
    ASUS P5LD2 - Core 2 Duo 3.0GHz - 2GB Corsair RAM - Nvidia 8800GT - Ubuntu 9.04 / Windows 7 Professional

  3. #3
    Join Date
    Jan 2008
    Location
    Cambridge MA
    Beans
    1,163
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Can I connect to 2 VPNs at the same time?

    I use the client that is installed when I run:
    sudo apt-get install network-manager-vpnc


    How do I setup the connections so I don't have conflicting addresses?
    Allons-y Alonzo! - The Dr.
    Is that what Time Lords do? Lop a bit off, and grow another one. You're like worms! - Donna Noble
    The world is a mess... and I just need to... Rule it. - Dr. Horrible

  4. #4
    Join Date
    Sep 2007
    Location
    Masschusetts
    Beans
    1,510
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Can I connect to 2 VPNs at the same time?

    Quote Originally Posted by neurostu View Post
    I use the client that is installed when I run:
    sudo apt-get install network-manager-vpnc
    I'm not familiar with that client. I assume you can just add a new connection in network manager.

    How do I setup the connections so I don't have conflicting addresses?
    You can't really. It depends on IP address the VPN Administrators have chosen for each VPN, as well as the address on the other side of the VPN, and the addresses on your local subnet. Obviously the last one, you may have some control over, but that's all.
    Registered Linux User: 482377
    MacBook (1,1) - OS X Leopard
    ASUS P5LD2 - Core 2 Duo 3.0GHz - 2GB Corsair RAM - Nvidia 8800GT - Ubuntu 9.04 / Windows 7 Professional

  5. #5
    Join Date
    Aug 2006
    Location
    Santa Fe, NM
    Beans
    892
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Can I connect to 2 VPNs at the same time?

    I wouldn't think this would be possible. I mean, the VPN is basically a tunnel that your traffic goes through, how would your connections determine which traffic should go over which tunnel?

  6. #6
    Join Date
    Sep 2007
    Location
    Masschusetts
    Beans
    1,510
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Can I connect to 2 VPNs at the same time?

    Quote Originally Posted by Dougie187 View Post
    I wouldn't think this would be possible. I mean, the VPN is basically a tunnel that your traffic goes through, how would your connections determine which traffic should go over which tunnel?
    kernel routing table

    as long as there are no IP conflicts.
    Registered Linux User: 482377
    MacBook (1,1) - OS X Leopard
    ASUS P5LD2 - Core 2 Duo 3.0GHz - 2GB Corsair RAM - Nvidia 8800GT - Ubuntu 9.04 / Windows 7 Professional

  7. #7
    Join Date
    Mar 2007
    Location
    Portsmouth, UK
    Beans
    Hidden!
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Can I connect to 2 VPNs at the same time?

    Yes it will work, but as previously stated, you cant have a conflicting range; example:

    Will work:
    Code:
    192.168.10.0/24
    192.168.100.0/24
    Won't work:
    Code:
    192.168.1.0/24
    192.168.1.0/24

  8. #8
    Join Date
    Jan 2008
    Location
    Cambridge MA
    Beans
    1,163
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Can I connect to 2 VPNs at the same time?

    so if one vpn is putting me on 10.43.121.0/24
    and the other is putting me on 18.something I shouldn't have a problem?
    Allons-y Alonzo! - The Dr.
    Is that what Time Lords do? Lop a bit off, and grow another one. You're like worms! - Donna Noble
    The world is a mess... and I just need to... Rule it. - Dr. Horrible

  9. #9
    Join Date
    Sep 2007
    Location
    Masschusetts
    Beans
    1,510
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Can I connect to 2 VPNs at the same time?

    Quote Originally Posted by neurostu View Post
    so if one vpn is putting me on 10.43.121.0/24
    and the other is putting me on 18.something I shouldn't have a problem?
    Remote -------- VPN Tunnel --- Local
    192.168.0.0 --- 10.43.121.0 -- 192.168.1.0
    192.168.2.0 --- 10.18.0.0 --------^


    If any of those conflict, you'll have issues.
    It's not just the IPs, you have to account for the subnets as well.

    If your local is 192.168.1.0 255.255.255.0
    and the remote is 192.168.2.0 255.255.0.0
    You'll have issues.

    There are endless combination's. You just have to try and see I suppose. If you can post all the info (if you have access to it) we can predict if you'll have conflicts.
    Registered Linux User: 482377
    MacBook (1,1) - OS X Leopard
    ASUS P5LD2 - Core 2 Duo 3.0GHz - 2GB Corsair RAM - Nvidia 8800GT - Ubuntu 9.04 / Windows 7 Professional

Tags for this Thread

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
  •