deluge-vpn icon indicating copy to clipboard operation
deluge-vpn copied to clipboard

Need help please

Open berturion opened this issue 9 years ago • 2 comments

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.

berturion avatar Jan 27 '16 12:01 berturion

Yes, some documentation would be awesome. Which order are these scripts meant to be run in?

Night-Man avatar Feb 17 '16 02:02 Night-Man

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.

bendikro avatar Feb 17 '16 14:02 bendikro