Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
Improvement of CARP VIP creation GUI
« previous
next »
Print
Pages: [
1
]
Author
Topic: Improvement of CARP VIP creation GUI (Read 2201 times)
klosz007
Newbie
Posts: 36
Karma: 1
Improvement of CARP VIP creation GUI
«
on:
November 17, 2023, 12:14:09 am »
Hi,
I have just spent entire evening troubleshooting very weird issue which eventually turned out to be caused by improper CARP interface creation.
It could be easily avoided by improving GUI for CARP IP creation.
GUI asks for IP address but it must be provided together with netmask (e.g. 192.168.100/24) which should be same as (correction) underlying's interface netmask.
Problem is that if one provides just IP, CARP VIP gets created with single host /32 netmask. And that leads to weird issues - e.g. DHCP no longer works properly. And it is hard to notice that no netmask was provided.
I think there should be separate dropbox to pick up netmask length so that one cannot enter IP without a netmask.
Ideally if it self-suggested correct netmask for CARP or warned if selected netmask is different from the underlying interface.
Thanks !
«
Last Edit: November 21, 2023, 11:11:01 pm by klosz007
»
Logged
franco
Administrator
Hero Member
Posts: 17672
Karma: 1612
Re: Improvement of CARP VIP creation GUI
«
Reply #1 on:
November 20, 2023, 03:13:36 pm »
Hi,
We discussed this today and decided to make the specification of the netmask required instead of auto-adding it.
The complain on the legacy page was the same: 32 bit was not what the user wanted so forcing everyone to type is better than having an auto-selected value as dropdown or not.
Cheers,
Franco
Logged
klosz007
Newbie
Posts: 36
Karma: 1
Re: Improvement of CARP VIP creation GUI
«
Reply #2 on:
November 21, 2023, 11:05:39 pm »
Thanks a lot for taking my suggestion into consideration ! Everything will be better than silently adding /32 netmask when no netmask was provided. Dropbox with netmask length, checking if netmask was provided etc etc.
«
Last Edit: November 21, 2023, 11:07:48 pm by klosz007
»
Logged
franco
Administrator
Hero Member
Posts: 17672
Karma: 1612
Re: Improvement of CARP VIP creation GUI
«
Reply #3 on:
November 22, 2023, 08:15:44 am »
Believe it or not the same complaint about "32" was made with the dropdown available... users said it was not what they wanted/expected. Making them actually type it is probably the best psychological approach.
Cheers,
Franco
Logged
franco
Administrator
Hero Member
Posts: 17672
Karma: 1612
Re: Improvement of CARP VIP creation GUI
«
Reply #4 on:
November 22, 2023, 08:17:51 am »
PS: the backport for 23.7.x is
https://github.com/opnsense/core/commit/1bfb673f09
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
Improvement of CARP VIP creation GUI