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

RFC1918 excluded from outbound macro but not inbound_outbound #820

Closed
shane-lawrence opened this issue Sep 6, 2019 · 6 comments
Closed

Comments

@shane-lawrence
Copy link
Contributor

A new list, which contains the private IPv4 ranges in RFC1918, was added and that list has been excluded from the outbound macro:

- macro: outbound
condition: >
(((evt.type = connect and evt.dir=<) or
(evt.type in (sendto,sendmsg) and evt.dir=< and
fd.l4proto != tcp and fd.connected=false and fd.name_changed=true)) and
(fd.typechar = 4 or fd.typechar = 6) and
(fd.ip != "0.0.0.0" and fd.net != "127.0.0.0/8" and not fd.snet in (rfc_1918_addresses)) and
(evt.rawres >= 0 or evt.res = EINPROGRESS))

The RFC1918 ranges have not been excluded from the inbound_outbound macro, so it is no longer a combination of the inbound and outbound macros:

# Very similar to inbound/outbound, but combines the tests together
# for efficiency.
- macro: inbound_outbound
condition: >
(((evt.type in (accept,listen,connect) and evt.dir=<)) or
(fd.typechar = 4 or fd.typechar = 6) and
(fd.ip != "0.0.0.0" and fd.net != "127.0.0.0/8") and
(evt.rawres >= 0 or evt.res = EINPROGRESS))

@shane-lawrence
Copy link
Contributor Author

/kind rule-update

@shane-lawrence
Copy link
Contributor Author

/area rules

@shane-lawrence
Copy link
Contributor Author

I was going to PR a fix to exclude just the private IP ranges, but it looks like this is not the only change to the inbound and outbound macros that didn't lead to a corresponding change to the inbound_outbound macro. #470 was also applied to only the separate rules. Should I incorporate the improvements from that PR into the inbound_outbound macro as well?

@fntlnz
Copy link
Contributor

fntlnz commented Sep 10, 2019

/assign @Kaizhe

@Kaizhe WDYT?

@Kaizhe
Copy link
Contributor

Kaizhe commented Sep 10, 2019

@shane-lawrence thanks for bringing it up. It's a good call. And please assign me as the reviewer :)

@stale
Copy link

stale bot commented Nov 9, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Nov 9, 2019
@stale stale bot closed this as completed Nov 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants