Firewall built with eBPF and Go.
-
Run
sudo apt-get install libbpf-dev
to get the necessary header files -
Build with
make
-
Run
./fw add --i <IP address>
to block ingress traffic from specified IP address -
Run
./fw add --e <IP address>
to block egress traffic to specified IP address -
Run
./fw remove --i <IP address>
to allow ingress traffic from specified IP address -
Run
./fw remove --e <IP address>
to allow egress traffic to specified IP address -
Run
make clean
to unload the eBPF program