I'm trying to set up a vpn client connection from my router to a vpn service provider, everything seems to work except an error on the following command:
@lleachii Thank you for your response. This is more information about my router configuration:
As I saw the error I tried to execute the /sbin/route command manually and it throws no error and actually establishes the route, this is the output from openvpn daemon:
I don'r know if I'm wrong but the connection seems to happen but no Internet there...
And this is how I configured firewall zones:
Let me know if I need to provide more information. Thank you.
I say "I hope" because now Internet works (and I thank you so much for that), but a weird phenomenon happens: when checking public ip on the internet sometimes I get the public vpn ip, sometimes I get mine
Could it be because of "not-so-really-precise" routes?
ok, sorry, I just updated but no way it works if I don't specify gateways for 0.0.0.0/1 and 128.0.0.0/1 routes. If I do, and I also tried internal vpn subnet gateway it connects to the internet but it doesn't hide my real ip.
@lleachi thanks for the patience, I tried like this:
I hope it's correct this time... still. doesn't work!
so what I tried to do was deleting those 3 routes from "Static routes", restart router, reapply vpn and type: "route -n" to see what routes "spontaneously" came out and I got this:
Therefore I put those in "static route" but still... no luck
@leeandy thank you for your reply, followed your suggestion, changed subnet to 192.168.4.1, still no luck:
I noticed a very strange thing, whenever I change routes, if I try, in the next 4-5 seconds, to refresh the page at ipleak.net to see if internet works and I have public vpn ip, it works but then suddenly stops.
I see many wrong static routes. Pls setup from scratch. If you prioritize traffic through vpn, see the section " Routing all client traffic (including web-traffic) through the VPN" on link above.
I solved the problem! My router is a dga4132, Telecom Italia "blocked" it with a custom limited-feature firmware so I had to "root" it. The problem is when I installed "Luci" it came with a lot of "Traffic rules" under the firewall section which pratically inhibited the vpn. I followed this guide https://airvpn.org/topic/15405-using-airvpn-with-openwrt/ and everything now works like a charm! P.S. I didn't have to write a single Static Route rule. Thanks for the patience @lleachii and @leeandy