An open API service indexing awesome lists of open source software.

https://github.com/hectorta1989/iptables-rules-management-cpp


https://github.com/hectorta1989/iptables-rules-management-cpp

Last synced: 8 months ago
JSON representation

Awesome Lists containing this project

README

          

# iptables-cpp

C++ library for listing, adding, modifying, and deleting iptable rules

## Build instructions

### Using a docker container

git clone https://github.com/HectorTa1989/iptables-rules-management-Cpp.git \
cd iptables-cpp \
docker build -t iptables-ubuntu . \

docker run -it --cap-add=NET_ADMIN --cap-add=NET_RAW iptables-ubuntu /bin/bash \
git clone https://github.com/HectorTa1989/iptables-rules-management-Cpp.git \
cd iptables-cpp \
sudo ./build.sh

### Local builds

git clone https://github.com/HectorTa1989/iptables-rules-management-Cpp.git \
cd iptables-cpp \
sudo ./build.sh

### Usage instructions

Running the demo: \
sudo ./iptablescpp

Running the unit tests: \
sudo ./run-tests

## Development Notes

### Preferred IDE

Visual Studio Code

### Recommended VS Code extensions

C/C++ IntelliSense (Microsoft) \
https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools

Clang-format (xaver) \
https://marketplace.visualstudio.com/items?itemName=xaver.clang-format

CMake (twxs) \
https://marketplace.visualstudio.com/items?itemName=twxs.cmake

CMake Tools (Microsoft) \
https://marketplace.visualstudio.com/items?itemName=ms-vscode.cmake-tools

Doxygen Documentation Generator (Christoph Schlosser) \
https://marketplace.visualstudio.com/items?itemName=cschlosser.doxdocgen

Remote Development (Microsoft) \
https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack