Linux Selective, Concurrent VPN Client Connections

In tomato, which is linux based, there is the option of only using the VPN if you visit a certain site or are accessing the internet from a certain internal IP. This works beautifully for me, sort of. For PC's that need to have USA VPN or need to access certain sites using the USA VPN, it works flawlessly, provided no other VPN connection is active. If I try to run two VPN connections concurrently, one based in CANADA and the other in USA, (although it doesn't really matter where in the world they are) all traffic will flow thru the CANADA VPN even though it is explicitly stated that certain traffic should go through the USA VPN. If trying to browse to netflix.com, the connection will hang for a bit and then ultimately go through the VPN connection that I don't want it to go through (CANADA). Can this even be done in Linux? I would think and hope so.
zarpanzurAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dan CraciunIT ConsultantCommented:
>>it is explicitly stated that certain traffic should go through the USA VPN

How? The only way I know is by using routes. How are your static routes defined?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
zarpanzurAuthor Commented:
Tomato has a graphical user interface which lets me select which LAN IP will use which VPN. Not sure how it is done but it works. I can assign each host a VPN to use but that would mean each host uses only 1 VPN connection. I want hosts to be connected to one VPN and then switch to another based on which website they visit.

Here are my routes: (edited for privacy of course)

10.17.0.141      *      255.255.255.255      0      ppp0 (WAN)
10.155.1.7      *      255.255.255.255      0      tun11
192.168.79.0      *      255.255.255.0      0      br1 (LAN1)
192.168.25.0      *      255.255.255.0      0      br0 (LAN)
127.0.0.0      *      255.0.0.0              0      lo
default      10.17.0.141      0.0.0.0              0      ppp0 (WAN)

At the moment, I am just using one VPN connection, tun11, until I figure out how to do what I'd  like to do. As far as I can tell, it's not using pure routes to direct traffic to a certain VPN connection. Maybe I'll need to research a bit more about tomato and what's going on under that flashy gui.
0
Duncan RoeSoftware DeveloperCommented:
Please give an example of a connection that goes the wrong way
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.