-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
Unintuitive CIDR + Port rule inout #729
Comments
Apparently, the current behaviour is in line with how popular apps (incl browsers) interpret string representations of IP addresses. Closing... |
Just ran into this (although I wasn't trying to include a port number). In the context of single IPv4 addresses, the current behavior (putting the zeros in the middle - or more accurately, treating the last number as several bytes stuck together) is 'correct', though I gather it's basically "something that BSD's For a range of IPv4 addresses in CIDR notation, though… I'm not sure. RFC 4632, which seems to contain the official definition for that syntax, says nothing about being able to leave numbers out of the 'address' part. Common usage seems to be that if there are fewer than four numbers in the address part, you add zeros on the right until there are enough (so |
Yeah, I guess you've a point... but the library we use, follows the BSD model. Also, I believe there's an rfc for string representation of IP addresses. I can't find it now, but I (probably incorrectly) recall it preferred the BSD style. btw, BSD also did ruin multipath TCP (ref)... so they've a lot of blood on their hands ;) |
Doesn't work:
192.168.0.0/16:443
Incorrect:
192.168/16
=>192.0.0.168/16
(should be,192.168.0.0/16
)The text was updated successfully, but these errors were encountered: