MichaIng / DietPi

Lightweight justice for your single-board computer!
https://dietpi.com/
GNU General Public License v2.0
4.8k stars 494 forks source link

DietPi-VPN | Add split tunnel feature #3285

Closed bbsixzz closed 3 years ago

bbsixzz commented 4 years ago

I've read rumblings about an upcoming dietpi-vpn tool to simplify the setup.

Would you please consider including a config that only tunnels rTorrent traffic?

SSH/SFTP access is limited to LAN when wireguard is active right now.

Here's the current convoluted procedure with openvpn.

Cheers

MichaIng commented 4 years ago

@bbsixzz Many thanks for your request.

Jep including and excluding certain services from a VPN tunnel (when DietPi is the client) is a planned feature. However it might take a while until I find time to create this script.

bbsixzz commented 4 years ago

Would a bitcoin donation speed this up? I could earmark it. It sucks not being able to do remote support.

MichaIng commented 4 years ago

I'm currently working on a broader network setup rework which should be a good basement for this, but honestly not sure when I can pick it up. Probably we should setup some bounty system to motivate others picking up specific feature requests 😉.

For now I suggest you check out some guides on the web, e.g. this one which implements it based on a certain UNIX user name which are then forced to use the VPN: https://www.htpcguides.com/force-torrent-traffic-vpn-split-tunnel-debian-8-ubuntu-16-04/ This is for PIA but can be done for any other VPN as well which is based on OpenVPN. It is quite complete with additional hardening (kill-switch, certain leak prevention) and some interesting thing I did not know about: Reverse Path Filtering

bbsixzz commented 4 years ago

Ok, that's too rich for my blood. I would gladly contribute if this could be accelerated, WireGuard is allegedly perfect for this.

MichaIng commented 3 years ago

Marking as closed in favour of the earlier request that has some idea collected already: #2758