Openvpn – Tunnel only one program (UDP & TCP) through another server

openvpnsockstunneludp

I have a windows machine at home and a server with debian installed.
I want to tunnel the UDP traffic from one (any only this) program on my windows machine through my server.

For tcp traffic this was easy using putty as a socks5 proxy and then connecting via ssh to my server – but this does not seem to work for UDP.
Then I setup dante as a socks5 proxy but it seems to create a new instance/thread per connection which leads to a huge ram usage for my server, so this was no option either.

So most people recommend openvpn, so my question: Can I use openvpn to just tunnel this one program through my server? Is there a way to maybe create a local socks5 proxy on my windows machine and set it as a proxy in my program and only this proxy then will use openvpn?

Thank you for your ideas

Best Answer

Socks5 will not work for UDP packets. So you can setup an openvpn and just put everything through there. If you want something for just one program, you could try ctunnel.

Related Topic