C++ library for listing, adding, modifying, and deleting iptable rules
Building the docker image:
git clone https://github.com/thomastli/iptables-cpp.git \
cd iptables-cpp \
docker build -t iptables-ubuntu . \
Running the docker image in a container:
docker run -it --cap-add=NET_ADMIN --cap-add=NET_RAW iptables-ubuntu /bin/bash \
git clone https://github.com/thomastli/iptables-cpp.git \
cd iptables-cpp \
sudo ./build.sh
Building iptables-cpp
using the build script:
git clone https://github.com/thomastli/iptables-cpp.git \
cd iptables-cpp \
sudo ./build.sh
Running the demo:
sudo ./iptablescpp
Running the unit tests:
sudo ./iptablescpp_test