hi
here we have some internet filtering in my country so i have set some vpn on my router and its working. just wanted to pass country ip through default gateway and other countries through vpn, so assign mangle rule for not ip list of my country for routing mark and in routing table assign vpn gateway the same routing mark.
now i cant connect to foreign IPs!
ant help?
If you use IKEv2 like NordVPN the you can’t route that easy.
If you use OpenVPN or L2TP/IPSEC check if you disabled the default route in their settings.
its l2tp and default route is unchecked.
I`ve write two default route one with main routing mark and other with routing mark assigned in mangle for foreign IPs, and one route rule for server of vpn, to be go through default gateway
update
the problem solved by taking out my own IP from my country IP list! now what is the right way to solve the problem?
You set which route is to be used in Mangle and are using a destination address list. Your own external IP is not destination but a source address.
So if destination address is not on the county list then mark for VPN. That would indeed be correct.