system_gateways_edit.php rejects correct configurations with dynamic or vpn interfaces
|Assignee:||Seth Mos||% Done:||
|Affected version:||2.1||Affected Architecture:|
eg. Gateway of dynamic makes the "Monitor IP" setting reject everything as having a "different Address Family"
Additionally, not sure if this is related but, checking the "Disable Gateway Monitoring" box on a openvpn client default route has no effect (despite being saved in the configuration file), causing OpenVPN clients to never work as nothing ever gets routed through the interface.
Finally give in and sprout a Internet Protocol drop down on the gateways edit screen.
With added validation and multiple detection parts to work when the value is not set yet.
Redmine ticket #2463
Actually save the IPprotocol variable into the config, otherwise it stil won't work.
People will likely need to edit and save their gateways now if they have double entries.
e.g. both manual and automatically added entries, these will dissapear as soon as you save.
If we know if the gateway or monitor is ipv4 or ipv6 we can autodetect which prevents this.
Because we don't know what address family the gateway on a dual stack interface belongs to we better not guess, and let the user figure it out. Often, a edit and save is the fastest.
For upgrading from 2.0 we could mark all gateways as being ipv4 which prevents half of the issues.
Redmine ticket #2463
- Status changed from New to Feedback
Code checked in, I finally gave in and added a drop down for the internet protocol. There is just too much that could otherwise go wrong.
I found another few glaring errors that would have otherwise caused issues, when all gateways are dynamic on a dual stack system the v4 gateway dissapeared when adding a manual monitor IP override on the v6 entry.
I just checked in more code, and the fix that allows you to actually save the ipprotocol value.
So edit and save the gateway and it should resolve itself. The Double entries that is.
#5 Updated by Thomas Gruber about 1 month ago
- File edit-gw.png added
- File edit-save-route.png added
- File config-kerberos.farriah.tuxpower.org-20130415093334.xml added
The issue still happens to me on:
built on Fri Apr 12 16:46:36 EDT 2013
I already removed and readded the dynamic GW and the route (therefore the GW appears twice in the config). This did not fix it in my case.
Maybe a bit of confusion will arise when reading the config so to explain just briefly:
Please note that i am doing Point-to-Point Routing. This means i am using /32 Netmasks on interface IPs and Routes.