Skip to content

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

keshugupta1
Copy link
Collaborator

Initial XN rate limiting changes based on Metering.

Initial XN rate limiting changes based on Metering.
}
table m_filter {
key = {
#color 0:GREEN 1:YELLOW 2:RED
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link
Collaborator

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 /* */

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants