Skip to content
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

package drops despite egress rule #163

Closed
JoergReinhold opened this issue Aug 28, 2023 · 5 comments
Closed

package drops despite egress rule #163

JoergReinhold opened this issue Aug 28, 2023 · 5 comments

Comments

@JoergReinhold
Copy link

we have an egress rule:

spec:
  egress:
  - ports:
    - port: 32023
      protocol: TCP
  - to:
    - cidr: 100.127.129.202/32
status: {}

it worked fine for month, but since some time we get drops:

2023-08-28 05:14:39 +0000 UTC {"ACTION":"drop","DF":"","DPT":"32023","DST":"100.127.129.202","ID":"53164","IN":"vrf1226","LEN":"60","MAC":"12:7c:16:1e:ba:eb:f8:8e:a1:f2:20:53:08:00","OUT":"vlan104010","PREC":"0x00","PROTO":"TCP","RES":"0x00","SPT":"36921","SRC":"10.79.132.4","SYN":"","TOS":"0x00","TTL":"61","URGP":"0","WINDOW":"65535","timestamp":"2023-08-28 05:14:39 +0000 UTC"}
2023-08-28 05:14:55 +0000 UTC {"ACTION":"drop","DF":"","DPT":"32023","DST":"100.127.129.202","ID":"53165","IN":"vrf1226","LEN":"60","MAC":"12:7c:16:1e:ba:eb:f8:8e:a1:f2:20:53:08:00","OUT":"vlan104010","PREC":"0x00","PROTO":"TCP","RES":"0x00","SPT":"36921","SRC":"10.79.132.4","SYN":"","TOS":"0x00","TTL":"61","URGP":"0","WINDOW":"65535","timestamp":"2023-08-28 05:14:55 +0000 UTC"}
2023-08-28 05:15:30 +0000 UTC {"ACTION":"drop","DF":"","DPT":"32023","DST":"100.127.129.202","ID":"53166","IN":"vrf1226","LEN":"60","MAC":"12:7c:16:1e:ba:eb:f8:8e:a1:f2:20:53:08:00","OUT":"vlan104010","PREC":"0x00","PROTO":"TCP","RES":"0x00","SPT":"36921","SRC":"10.79.132.4","SYN":"","TOS":"0x00","TTL":"61","URGP":"0","WINDOW":"65535","timestamp":"2023-08-28 05:15:30 +0000 UTC"}
@majst01
Copy link
Contributor

majst01 commented Aug 28, 2023

Looking at the output of nft list ruleset there is indeed no rule for this ip/port combination present.

@mwennrich
Copy link
Contributor

should be:

spec:
  egress:
  - ports:
    - port: 32023
      protocol: TCP
    to:
    - cidr: 100.127.129.202/32

@majst01
Copy link
Contributor

majst01 commented Aug 28, 2023

We must add some additional validation which is more strict to prevent such hard to find issues.

see #150

@mwennrich
Copy link
Contributor

relates to: #151

@JoergReinhold
Copy link
Author

it was my fault, the syntax was not correct (but accepted by the API); this is correct:

spec:
  egress:
  - ports:
    - port: 32023
      protocol: TCP
    to:
    - cidr: 100.127.129.202/32

and know everything works fine - thank you

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

No branches or pull requests

3 participants