-
Notifications
You must be signed in to change notification settings - Fork 9
WIP: ICMP code/type firewall filters #759
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
Draft
FelixMcFelix
wants to merge
13
commits into
optehdl-cleanup
Choose a base branch
from
icmp-code-type-fw
base: optehdl-cleanup
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is encoded using the same `Match` type as before, which captures ranges a bit more succintly. Also applies the same range matches to normal ports, which should greatly simplify huge ranges added in the control plane...
One of the side effects of wanting to filter on ICMP type is that flow IDs need to match that level of specificity. With the old FlowId design, we get *ICMP* and that's it, with the inner ID of an echo paylad added in occasionally. This can lead to fun cases like an allowed ICMP DU opening the door for *all* ICMP packets from that remote host. What we're doing now is providing access to the same two `u16`s in different contexts via `l4_info`/`_mut`, which lets us store the type/code in the source port field (cast as two `u8`s). This does need us to formalise some things we'd taken for granted, e.g., the `mirror` flow for an ICMP echo/request reply needs to also change out the expected type.
a2e5800
to
1e5c952
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Still working out the right shape, types, etc.
Closes #730.