Skip to content
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

Allow configuration of addresses without a mask/prefix #8

Closed
wants to merge 1 commit into from

Conversation

jlduran
Copy link

@jlduran jlduran commented Nov 16, 2022

It will assume an implicit host address (32-bit/128-bit mask/prefix).

Prior to this change, it was necessary to explicitly pass a mask:

addr/mask:port

This has caused confusion among some users 12, who assume no mask would imply a /32.

This patch allows the configuration of host addresses (with no mask explicitly declared):

# adr/mask:port	type	proto	owner		name	nfail	disable
[remote]
192.0.2.1:ssh	*	*	*		=	*	*

Is now equivalent to:

# adr/mask:port		type	proto	owner		name	nfail	disable
[remote]
192.0.2.1/32:ssh	*	*	*		=	*	*

Obtained from: 1

Footnotes

  1. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243164 2

  2. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=247309

It will assume an implicit host address (32-bit/128-bit mask/prefix).

Prior to this change, it was necessary to explicitly pass a mask:
    addr/mask:port

This has caused confusion among some users [1, 2], who assume no mask
would imply a /32.

This patch allows the configuration of host addresses (with no mask
explicitly declared):

    # adr/mask:port	type	proto	owner		name	nfail	disable
    [remote]
    192.0.2.1:ssh	*	*	*		=	*	*

Is now equivalent to:

    # adr/mask:port	type	proto	owner		name	nfail	disable
    [remote]
    192.0.2.1/32:ssh	*	*	*		=	*	*

Obtained from:	[1]

[1]: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243164
[2]: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=247309
@jlduran
Copy link
Author

jlduran commented Nov 16, 2022

Not necessarily a pull request, as this patch is not on FreeBSD. It is proposed here for your consideration.

@zoulasc
Copy link
Owner

zoulasc commented Nov 18, 2022

committed, thanks!

@zoulasc zoulasc closed this Nov 18, 2022
@jlduran jlduran deleted the fix-addr-no-mask branch November 18, 2022 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants