Skip to content

Add a REJECT action #565

Description

@qdeslandes

Rules can only accept or drop a packet, but sometimes we would like to drop the packet and notify the sender (TCP RST, ICMP host unreachable, ...). This is the purpose of iptables's REJECT verdict.

bpfilter should support a similar verdict to notify the sender and block the traffic. A packet would have to be crafted and returned (maybe through an elfstub?). The initial implementation could be limited to ICMP's host unreachable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: cliCommand line interface(s)area: codegenBPF bytecode generation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions