Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a working OpenVPN server that forwards all traffic to/fro the internets. How can I configure another VPN user/client that will forward all traffic through Tor? I have Tor running.

Must I change something in server.conf?

Edit: This is useful: https://airvpn.org/topic/1738-tor-over-vpn-or-vpn-over-tor/ Basically, what I'm asking is apparently just a proxy over OpenVPN, which will configure itself automatically if I use Tor on client and VPN to route ALL connections.

Follow-up question: Does this setup mean that Tor will encrypt everything client side before sending through VPN - thus the VPN will never see anything but encrypted traffic? (It's my own VPN on my own VPS, but you know.. ;)

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Answer to your initial question:
If your client has internet access through the VPN, this should be sufficient to initiate a Tor handshake. Your VPN server should be smart enough to forward your client its own traffic.

Answer to your follow-up question:
Yes, any traffic viewable on your VPN would be encrypted.

Tor uses a process of encryption called "Onion Routing" where your computer encrypts the message multiple times based on how many relay stations it will hit on the way to its destination. Packets sent FROM your client will be encrypted multiple times and then be decrypted one layer at a time on the way to each relay station. At the final relay node, it decrypts the message entirely and sends it to the intended recipient.

On the return journey, the last Tor node in the chain re-encrypts the message and sends it back all the way through in a similar process. Each node encrypts it further until finally the host receives the message encrypted x number of times. It decrypts the message with all of the shared keys and can finally view the message.

share|improve this answer
    
Thanks for great answer. So, just to get it in sideways, the client packets would first be encrypted by Tor, then sent thru VPN, then out onto the Tor-network? Does that mean I get the VPN's serverside speed/bandwidth on the Tor-network, and not client-side? Or could that be configured? (Massive difference obviously.) Thanks again WB! –  knutole May 24 '13 at 14:07
1  
You got it. Once everything is established, Packets are encrypted by Tor and sent through the VPN to your server. Once at your server, it will route the traffic to the first node. Tor takes over from there. You speed and bandwidth are dictated by a bunch of different connections. Between you and your server, your server and node 1, node 1 & node 2, etc, etc, node x & destination. Then going back it's the same. So think of it broken down into a lot of different steps. You only have control over one. Since Tor is hosted by volunteers it's totally random what you end up with. –  Will.Beninger May 24 '13 at 14:12
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.