Comment on Need help for setting up a VPN project

<- View Parent
MysteriousSophon21@lemmy.world ⁨1⁩ ⁨week⁩ ago

This is almost right, but you’ll need more specific iptables rules for the split tunneling - try something like ip route add YOUR.HOME.SUBNET.0/24 via 10.0.0.2 on the VPS and then on the homelab add iptables -t nat -A POSTROUTING -d YOUR.HOME.SUBNET.0/24 -j ACCEPT followed by iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE to route evreything else through the VPS connection.

source
Sort:hotnewtop