Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

On a Linux or Windows system, how would it be possible to tunnel all TCP/UDP packets through a thirdparty server? What would one use, does it work with SOCKS5, OpenVPN or SSH?

share|improve this question
    
hi guys! thanks for the answers. as a first step i installed vpn on a remote root server, and on my local windows 7 desktop. works all fine, connection over port udp/1194 is running, i can ping the other machine. but what i don't understand is now how do i setup my system to route all traffic through the vpn? thx in advance! –  Ian Aug 15 '11 at 10:29

3 Answers 3

up vote 2 down vote accepted

ssh will give you probably simplest way of tunneling tcp traffic to know destination/port.

if you would like to tunnel traffic to any destination [tcp/udp/icmp... all ip traffic in general] - openvpn will do the trick.

share|improve this answer
    
i finished setting it up, and it works but now i don't know how to configure windows 7 in order to put all traffic through the openvpn? can you help me? –  Ian Aug 15 '11 at 13:27
1  
@lan - check redirect-gateway option of openvpn and run openvpngui with elevated privileges/as admin, otherwise it's unable to manipulate routing table under vista/7. –  pQd Aug 15 '11 at 21:37
    
thx mate, I'll try that one! –  Ian Aug 22 '11 at 21:13

I use a socks 5 with proxifier I open a dynamic tunnel with putty and put everything through there with proxifier.

share|improve this answer

There are multiple options available as you have identified in your question itself. It comes down to possibly the following factors as to one over the other:

  • Availability of the technology across your target platforms (Windows, Linux, etc.)
  • Your technical security requirements (encryption strength, known weaknesses, etc.)
  • Your comfort level with the technology (easy vs. hard to install, come by, etc.)

Each one has some strengths and weaknesses when matched up against each other, but there are multiple choices to hopefully suit your needs.

share|improve this answer

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.