-
Notifications
You must be signed in to change notification settings - Fork 24
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
CGNAT Exit and integration test #1104
Conversation
right now this is manually adding all possible external ips on the exit subnet, which we're hoping to avoid since that gets clunky real fast.
beba305
to
9569820
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good. I only have some very minor comment nits, overall using the build in cgnat is a big improvement in code simplicity!
@@ -368,6 +368,51 @@ pub fn teardown_snat( | |||
Ok(()) | |||
} | |||
|
|||
/// Sets up the CGNAT rules for the exit server run on startup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice if this comment explicitly noted that we're handing the cgnat tasks off to the kernel to allocate connections between the internal and external subnets.
rita_exit/src/rita_loop/mod.rs
Outdated
} | ||
} | ||
} | ||
|
||
// gets the range of possible ips for a given subnet. by convention the static assignments in cgnat mode should be | ||
// on the ends of the assignable range to make random assignment less complex. TODO: endpoint to set static ips should |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this todo is completed and can be cleaned up
looks like the multi exit test needs a fix. |
Removing some extra cruft now that CGNAT mode does not explicitly assign or keep track of clients <-> external ips
9569820
to
3eb4503
Compare
right now this is manually adding all possible external ips on the exit subnet, which we're hoping to avoid since that gets clunky real fast.