Single application through OpenVPN tunnel (Debian Lenny)

Posted by mikael on Super User See other posts from Super User or by mikael
Published on 2010-01-25T23:43:34Z Indexed on 2010/04/01 13:03 UTC
Read the original article Hit count: 408

Filed under:
|
|
|

I'm using Debian Lenny and I want to tunnel rtorrent only through a OpenVPN tunnel.

I have a tunnel running, the config file looks like this:

client
dev tun
proto udp
remote openvpn.xxx.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca /etc/openvpn/xxx/keys/ca.crt
cert /etc/openvpn/xxx/keys/client.crt
key /etc/openvpn/xxx/keys/client.key
tls-auth /etc/openvpn/xxx/keys/tls.key 1
ns-cert-type server
comp-lzo
verb 3
auth-user-pass
script-security 3
reneg-sec 0

My idea is that I could run a sockd proxy internally that redirects traffic to the openvpn tunnel. I could use the *nix "proxifier" application "tsocks" to make it possible for rtorrent to connect through that proxy (as rtorrent doesn't support proxies).

I have trouble configuring sockd as my IP inside the VPN changes every time I connect. This is a config file someone said would help: http://ircpimps.org/sockd.conf As my IP changes at each connect I don't know what to put in that config file. I have no control over the host side config file.

Any help wanted. Any other method is very welcome.

© Super User or respective owner

Related posts about openvpn

Related posts about debian