I use LTE connexion with LHGLTE6 in passtrough with hapac2 and i want to use my vpn on hapac2 just for incoming connexion from outside and all other connexion from LAN have to go trough wan ( lte provider) connexion.
if my distance route vpn is the first (distance =1) all works but of course all trafic from lan go trough VPN
if i put my distance route vpn to 2 and distance route to lte provider to 1 : then all trafic go trough lte provider but i can’t incoming with my vpn ip..
It’s basically like dual-WAN config. VPN is secondary, but default route uses LTE, so if new connection comes in via VPN, response is send out via LTE and it doesn’t work. To fix it, router need a little help. Add new default route that uses VPN interface and put it in separate routing table (parameter routing-mark). Then mark new incoming connections from VPN. And finally mark routing for responses that have previously assigned connection mark, to use the new routing table.