-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Protective gateway route is not always default #853
Comments
I'm afraid I don't understand the issue here (I don't have a strong background in networking). An example would help me understand. |
My guess would be you're after ipv4_protect_tunnel_route() or something like that. Look in |
Sure, I should have included a bit of an example. Also, I'm not too sure the protective route is installed only when necessary (better match exists within the vpn routes). |
I see your point. Actually, the protective route is not necessarily based on the default route. But there are two issues with the default route:
You might have better luck on the dual homed gateway with the --half-internet-routes option or with --no-routes an adding the needed routes manually or with an if-up script. We have a related discussion in #741 and the current issue adds a new aspect on this topic. |
In a scenario where the route toward the secure gateway was not the default route, I came to struggle with protective host-route toward the secure gateway installed toward the default gateway. I'd recommend running a best-match lookup and use this gateway for the protective route instead. I could propose a patch if someone points me toward the code that creates this protective host route.. (too busy to crawl code right now)
The text was updated successfully, but these errors were encountered: