-
Notifications
You must be signed in to change notification settings - Fork 9
Static NAT + Masquerading / Static NAT + Port Forwarding #1548
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
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
d920d19
refactor(nat): Move static NAT network function to dedicated file
qmonnet 180e9fc
refactor(nat): Move unicast check closer to source IP mapping lookup
qmonnet 48e13b3
refactor(nat): Handle zero-port check at port mapping lookup
qmonnet 3ca3481
feat(net): Add wrappers for transport with types (TCP/UDP)
qmonnet 6471cdd
refactor(nat): Use TcpUdp view in static NAT to simplify port update
qmonnet eaac55a
refactor(net): Simplify metadata flag toggling
qmonnet d4e5c20
chore(flow-filter): Split requires_stateless_nat() into source/dest
qmonnet 8deb16a
feat(flow-filter): Tag packets for src/dst static NAT
qmonnet 44396ea
feat(nat): Mark packets as NAT-ed for source or destination
qmonnet 8ec430d
feat(nat): For static NAT, only apply NAT for relevant direction(s)
qmonnet 4e58d78
feat(dataplane): Move static NAT stage before port forwarding
qmonnet d723f41
feat(flow-filter,nat): Store static NAT requirements in flow info
qmonnet 06a97cf
feat(net): Embed flow key in packet metadata
qmonnet 20bd0e3
feat(nat): Use initial IP addresses for forward flow table entry
qmonnet 0c4339c
fix(nat): Remove NoMappingFound error
qmonnet 48361d8
refactor(nat): Move NAT tables reader entering to process_packet()
qmonnet ac612e0
feat(nat): Go through static NAT step after ICMP Error handler
qmonnet 1e38b45
feat(config): Allow static + stateful NAT, on opposite ends
qmonnet 4813fb0
test(nat): Add tests for static NAT + {masquerade, port forwarding}
qmonnet f42b3ba
refactor(nat): Clean a little the error translation code in NAT
qmonnet 30bb017
refactor(net): Drop FlowKey's Unidirectional enum variant
qmonnet e025e05
refactor(net): Merge FlowKey and FlowKeyData
qmonnet f562d77
refactor(net): Rename FlowKey::uni() to FlowKey::new()
qmonnet 1dd7e31
refactor(net): Drop the Uni<T> wrapper around packets
qmonnet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 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 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 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 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 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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.