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

Rework packet direction detection based on dynamically learned addresses #4

Open
mlasch opened this issue Sep 12, 2021 · 0 comments
Open

Comments

@mlasch
Copy link
Owner

mlasch commented Sep 12, 2021

Local and remote address distinction is based on hard coded IP addresses. This should be implemented with netlink and rtnetlink in order to learn about addresses used in the system.

  • SRC addr is in local net of one of the interfaces and DST is not local ➡️ OUTBOUND
  • DST addr is local net of one of the interfaces and SRC is not local ➡️ INBOUND
  • DST and SRC are local ➡️ local traffic, ignore
  • DST and SRC are not local ➡️ should not happen on a SOHO router, ignore or log error
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

1 participant