No description, website, or topics provided.
Shell
Switch branches/tags
Nothing to show
Clone or download
bendikro Merge pull request #8 from m1lkman/patch-1
Correct DNS iptables rules
Latest commit 518f5f8 Apr 26, 2017

README.md

VPN for torrent traffic

This repo contains a collection of bash scripts for setting up routing torrent traffic through a VPN interface.

user_filter contains scripts that setup a routing table and configure iptables to route all traffic from a specific user over the VPN interface.

OpenVPN

To use these scripts with OpenVPN:

  1. Make a clone of the repo and set the correct values for the interfaces and user in vpn_base.sh.

  2. Edit the openvpn client config and add this line:

up "/path/to/repo/link_up_user_filter.sh" with the correct path to the cloned repo.

To allow executing external scripts automatically when starting the openvpn client, run openvpn with the argument

--script-security 2 or add this line to the client config: script-security 2

  1. Run openvpn