Need help please
berturion opened this issue · comments
berturion commented
Could you add some documentation to explain what it does and how to use it please ?
I saw a "vpnuser" what to do with this ? I must create it ? Can I change this ?
Those scripts have to be launched before or after deluged ?
Is it possible to make deluged run only if the vpn interface is up ? How to include those script in the chain ?
... that kind of things.
Thanks.
Night-Man commented
Yes, some documentation would be awesome. Which order are these scripts meant to be run in?
Bendik commented
Ok guys. Updated README with description on how to use with OpenVPN. The new script link_up_user_filter.sh can be also be run manually from the command line.
To answer berturion's questions:
- The
vpnuser
is the user you want to apply the routing rules to. You need to create this user and edit
VPNUSER
variable in user_filter/vpn_base.sh to the corresponding username. This is the user that must run (or more specifically own) the deluged process. - The scripts should be executed before deluged is started. When used with OpenVPN as described in the README, they will be run automatically when the vpn interface is created.
- Preventing deluged from running when vpn interface does not exist requires some extra scripts which I would keep separated from setting up the vpn interface and routing configuration.