Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Turning a VPN into a proxy
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
haarp
Guru
Guru


Joined: 31 Oct 2007
Posts: 517

PostPosted: Sat Jul 20, 2013 7:26 am    Post subject: Turning a VPN into a proxy Reply with quote

Hey,

Even after searching for a while, I couldn't find anything useful, but I refuse to believe that it doesn't exist.

I'm looking for a way to connect to a VPN (L2TP or OpenVPN), and turn that into a (socks) proxy. So every application connecting to that proxy would get routed through the VPN, but the rest of the system would not be forced through it.

Does anyone know how to do that? Surely there must be something that facilitates this. Or do I seriously have to set up a virtual machine, connect the entire machine to the VPN and then set up a proxy in there instead?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13511

PostPosted: Sat Jul 20, 2013 3:58 pm    Post subject: Reply with quote

You may be able to do this with policy-based routing, by running the SOCKS proxy locally and setting a policy that traffic from the proxy has a default route through the VPN.
Back to top
View user's profile Send private message
haarp
Guru
Guru


Joined: 31 Oct 2007
Posts: 517

PostPosted: Sun Jul 21, 2013 5:15 pm    Post subject: Reply with quote

Hu wrote:
You may be able to do this with policy-based routing, by running the SOCKS proxy locally and setting a policy that traffic from the proxy has a default route through the VPN.


Phew, I think that's a bit beyond me. Routing is not my strong point...
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7051
Location: almost Mile High in the USA

PostPosted: Mon Jul 22, 2013 11:19 pm    Post subject: Reply with quote

I'm not sure why something like using an ssh tunnel to a local socks proxy on that server wouldn't work similarly?

I ended up just tunneling all my traffic to my openvpn. That way if I'm on an insecure wifi access point, I'd have encryption when browsing at that site...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
haarp
Guru
Guru


Joined: 31 Oct 2007
Posts: 517

PostPosted: Tue Jul 23, 2013 6:30 am    Post subject: Reply with quote

eccerr0r wrote:
I'm not sure why something like using an ssh tunnel to a local socks proxy on that server wouldn't work similarly?

I ended up just tunneling all my traffic to my openvpn. That way if I'm on an insecure wifi access point, I'd have encryption when browsing at that site...

My VPN service only offers VPNs, no shell access. So that's not an option :/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum