IPSEC GUI issue?
-
Steps to reproduce:
Enable IPSEC, Apply Changes.
Firewall->Rules
ipsec category available.Disable IPSEC, DON'T APPLY CHANGES
Firewall->Rules
ipsec category is missing.Bug or by design?
-
All that sort of thing is a consequence of the workflow-design of save followed by apply.
Save writes the changes to the config stored on permanent media (disk SSD…).
At that point the stored config and the running system are 2 different things.
Subsequent viewing and editing of configuration is based on the current config (not on the running system), so something like Firewall Rules will see that IPsec is disabled (in the config) and do its logic accordingly.
There is nothing in the GUI code that tries to reverse-engineer whatever happens to be the config of the running system and let you edit that - all you can do with the running system is view its state via the various options in the Status menu.After pressing apply, the running system "catches up" with the saved config.
-
There is nothing in the GUI code that tries to reverse-engineer whatever happens to be the config of the running system and let you edit that
I don't think reverse-engineering is necessary here. If the GUI is aware that the user hasn't clicked "Apply" when disabling IPSEC, then a check of this flag should be possible when deciding if the GUI should display the firewall ipsec rule tab.