Expand description
This crate provides a Firewall emulator server for e2etest tests. It provides an actor with
handler using tokio::sync::mpsc::Sender over enum Firewall message. It provides also a
trait FirewallExt with helper methods to send messages to the actor. Currently, the Firewall
actor adds and removes blackhole routes to block traffic to specified IP addresses. It uses
neli crate to interact with the Linux kernel’s netlink interface to manage routing rules.
Enums§
- Firewall
- Messages for the Firewall actor.
Traits§
- Firewall
Ext - Extension trait for
mpsc::Sender<Firewall>to provide helper methods to send messages to the Firewall actor.
Functions§
- new
- Creates a new Firewall actor and returns a sender to send messages to it.