LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-14-2013, 11:28 AM   #1
3wheels1life
LQ Newbie
 
Registered: May 2013
Posts: 19

Rep: Reputation: Disabled
Multiple VPNs and Proxies on Ubuntu 12.04


Hello,
How can the following be configured to run simultaneously:
Puxi.me proxy for BT (for Linux distros)
Two OpenVPN connections (two providers)
JonDos.de
Tor
I would like to have all traffic tunneled through both VPNs, then have web traffic (Firefox, chrome) through JonDos.de and Tor, and have downloads through Puxi.me
 
Old 11-15-2013, 09:49 PM   #2
padeen
Member
 
Registered: Sep 2009
Location: Perth, W.A.
Distribution: Slackware, Debian, Gentoo, FreeBSD, OpenBSD
Posts: 208

Rep: Reputation: 41
Can you clarify your question? It's not clear what the path is that you want your traffic to go. Is the traffic coming back to you each leg before being sent out again, or do you want the third-party providers to connect directly to each other?
 
Old 11-16-2013, 12:28 PM   #3
3wheels1life
LQ Newbie
 
Registered: May 2013
Posts: 19

Original Poster
Rep: Reputation: Disabled
Clarification

Sure. Thanks for responding to my thread.

BT client <-> VPN 1 <-> VPN 2 <-> Proxy <-> Peers
Browser <-> VPN 1 <-> VPN 2 <-> JonDoNym server 1<-> JonDoNym server 2 <-> JonDoNym server 3 <-> Tor (sometimes) <-> Internet

Does this help? Arrows (<->) represent the flow of traffic both ways (upstream & downstream).
If you have more questions, feel free to ask.
Thanks!
 
Old 11-16-2013, 08:56 PM   #4
padeen
Member
 
Registered: Sep 2009
Location: Perth, W.A.
Distribution: Slackware, Debian, Gentoo, FreeBSD, OpenBSD
Posts: 208

Rep: Reputation: 41
Traffic direct between third parties such as VPN1 <-> VPN2 depends on whether those third parties allow or have the capability to do such a thing. It is nothing to do with the operating system (Ubuntu).

You need to examine each third party provider to see if it can connect bi-directionally with another third party. I don't know of any that do, but I haven't looked at it in any detail.

An alternative would be to set up your own third party VPN clients and servers on remote VPSs somewhere. If you are trying to get the ultimate in anonymity, that probably won't work because every VPS provider I know of requires your credentials, for billing if nothing else.
 
Old 11-20-2013, 02:50 PM   #5
3wheels1life
LQ Newbie
 
Registered: May 2013
Posts: 19

Original Poster
Rep: Reputation: Disabled
Question

padeen,

I contacted several VPN providers, and they said they would be ok with it. But they did not know how to run multiple VPNs at once.
Do you know how to do what I explained in my previous post?
Thanks.

-3wheels1life
 
Old 11-21-2013, 05:50 AM   #6
munkz
Member
 
Registered: Aug 2013
Location: A couch
Distribution: linux
Posts: 69

Rep: Reputation: 2
I would read this. Once you have the tunnels, it would be a matter of SNAT and DNAT or whatever for the ports you wanted to send out via VPN2. I mean, this is an assumption on my part. I have never set anything like that complex up.

I think it would be like :


Browser(vpn-client) <->vpn1(client / server) <-> vpn2(client / server) <-> Proxy <-> Peers

At VPN2 you could do port based routing ( like vlan tags ). Thanks to your question I know it can be done now. Sweet. The how to is over at here. Looks like some one else has asked about using MARK as well over here

BT ( torrent yeah?) would be kinda tricky I would think. You could get the trackers, not sure how you would route the actual peer to peer part though. I dont know enough about it.

The first hop would be one client on like a desktop. VPN1 would be site-2-site with VPN2, so thats easy to route out. VPN2 would be where you did the port based routing.

I have never done it before. Makes me want to try though. Seems neat.

Last edited by munkz; 11-21-2013 at 05:54 AM. Reason: more stuff
 
Old 11-23-2013, 04:26 PM   #7
3wheels1life
LQ Newbie
 
Registered: May 2013
Posts: 19

Original Poster
Rep: Reputation: Disabled
Smile

Thank you munkz.

When I have a little more time to work on it I'll look into this setup and see how to do it.
Thanks for including those links.

By the way, does anyone else know how to do this?

-3wheels1life
 
  


Reply

Tags
proxy, ubuntu, vpn


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple squid proxies routing on different internet connections shahidbashir7861 Linux - Networking 9 03-28-2013 03:12 AM
Gnome Network manager- Multiple proxies? mike11 Linux - Networking 1 02-12-2010 07:48 AM
Optimizing Proxy servers by using multiple proxies and IPCop. depam Linux - Software 0 09-28-2006 11:45 PM
LXer: VPNs Illustrated: Tunnels, VPNS, and IPsec -- A Book Review LXer Syndicated Linux News 0 04-17-2006 08:54 PM
Multiple Proxies MagInnovision Linux - Networking 1 03-14-2003 12:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration