I think the issue is the routing table. Check the routing table when the VPN is active, specifically the default route
. I suspect it is changing the default route to the exit node of the VPN on the tun0
interface, which is why your web server will not respond to queries.
The way to address this is to set a static route between your seedbox and your home IP address, i.e:
Code: Select all
sudo route add <your.home.ip.address> gateway eth0
I'm not sure how to add this permanently to a Debian install, so you'll have to look it up.
Once the route is set and working correctly, you'll probably want to set up the firewall to avoid DNS leaks and improve the security.
Which OS is running on your home machine?