Note that only
rtorrent traffic will be routed through the tunnel, everything else goes the normal way.
Make sure that you have configured a routing table
piatunnel on your system:
echo 200 piatunnel >> /etc/iproute2/rt_tables
Get the PIA openvpn.zip, extract it and make sure that the certs etc. are in the same directory as ; same goes for
vpn-up/down.sh. Note that is derived from the sweden config file provided in that zip from pia.
establish the vpn
sudo openvpn pia_swe.ovpn
rtorrent with the bind option
Based on the configured tunnel, in example
tun1, get the local IP for the established VPN and start
rtorrent with the
-b (bind) parameter to bind to the local VPN IP.
- The openvpn resets itself every now and then, in this case the IP which rtorrent has been bind to is not valid anymore. Either re-execute or implement a script that tells rtorrent to bind to another IP
- update to figure out the openvpn tunnel itself
- enable PIA port-forwarding and configure rtorrent use the fwd'd-port