Skip to content

Rework packet direction detection based on dynamically learned addresses #4

@mlasch

Description

@mlasch

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions