-
Notifications
You must be signed in to change notification settings - Fork 98
Connection rate limiting using meter #111
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
base: main
Are you sure you want to change the base?
Conversation
Initial XN rate limiting changes based on Metering.
} | ||
table m_filter { | ||
key = { | ||
#color 0:GREEN 1:YELLOW 2:RED |
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.
#
isn't a valid comment delimiter, use //
or /* */
default_action = drop; | ||
} | ||
|
||
#Direct meter |
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.
#
isn't a valid comment delimiter, use //
or /* */
@@ -52,6 +92,8 @@ control ConntrackIn(inout headers_t hdr, | |||
if (hdr.tcp.flags == 0x2 /* SYN */) { | |||
if (meta.direction == direction_t.OUTBOUND) { | |||
add_entry("conntrackIn_allow"); // New PNA Extern | |||
#TODO Apply XN Rate-limiting only when entry addition is successful |
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.
#
isn't a valid comment delimiter, use //
or /* */
@@ -103,6 +145,8 @@ control ConntrackOut(inout headers_t hdr, | |||
if (hdr.tcp.flags == 0x2 /* SYN */) { | |||
if (meta.direction == direction_t.INBOUND) { | |||
add_entry("ConntrackOut_allow"); // New PNA Extern | |||
#TODO Apply XN Rate-limiting only when entry addition is successful |
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.
#
isn't a valid comment delimiter, use //
or /* */
Initial XN rate limiting changes based on Metering.