Project

General

Profile

Actions

Bug #8559

closed

Dynamic Gateway (from e.g. OVPN) only able to disable after edit

Added by Jens Groh almost 6 years ago. Updated almost 6 years ago.

Status:
Not a Bug
Priority:
Normal
Assignee:
-
Category:
Gateways
Target version:
-
Start date:
06/08/2018
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.4.3_1
Affected Architecture:
amd64

Description

Steps to reproduce:

1) create openvpn server
2) assign OPT interface to ovpns1
3) edit ovpns1 and make it active
(typical steps needed for policy based routing etc. over OVPN)
4) head to System > Routing > Gateways
5) note the newly created dynamic OVPN Gateway(s) [depending on new OVPN GW setting] - one cannot disable or delete it
6) edit it - save without making changes
7) note the disable and delete buttons popping up behind OVPN GW entry/entries

at this point, the delete button does next to nothing but resets the GW in the state after 3) with missing disable/delete buttons and deletes the "dynamic" text that pops up as gateway information after editing. Only disable is doing its actual job and disabling the entry. GW gets correctly deleted after "disabling" the interface it is bound to.

Perhaps delete shouldn't popup ever and disable should be there always - I don't know what the actual intention is but that little tidbit got me and a customer a bit of track after stumbling over it. I assume that it is a "new" behavior that came with the OVPN GW IP family select possibility as we had to disable the v6 GW that always popped up manually and so were used to always go to routing after creating a new OVPNs interface. :)

Greets,
Jens

Actions #1

Updated by Jim Pingle almost 6 years ago

  • Status changed from New to Not a Bug

That's how dynamic gateways work. You also can't delete DHCP gateways or PPPoE gateways. "Deleting" them reverts them to their default state, removing custom settings. That is still a valid action, since purely dynamic gateways do not exist in config.xml, but once you edit and save, they have settings there which a user may need to delete.

If you want to completely remove/disable an OpenVPN gateway, we have an option on the OpenVPN instances to control which gateways are made. Edit an OpenVPN server or client and in the Advanced Configuration section, set Gateway creation to match what you want.

Actions #2

Updated by Jens Groh almost 6 years ago

That makes it clear, why the delete button only appears after editing. Thanks. But what about the disable button? Shouldn't it always be there? Or why is it only available after editing?

Thanks,
Jens

Actions

Also available in: Atom PDF