ntop / nProbe

Open source components and extensions for nProbe
http://ntop.org
GNU General Public License v2.0
1.65k stars 44 forks source link

Documentation add examples of the sh iptables/nftables scipts #612

Closed sever-sever closed 4 months ago

sever-sever commented 4 months ago

There are mentions of .sh scripts in the documentation https://github.com/ntop/nProbe/blob/master/doc/src/ips_mode.rst#ips-mode-on-linux

policy_simple.sh
policy_and_bridge_simple.sh
policy_on_bridge.sh
policy_with_shaper.sh

But there are no such scripts. Nice to have for nftables/iptables/tc

l0crian1 commented 4 months ago

I agree it would beneficial to have them here. You should be able to find them in this directory on a machine with nprobe installed: /usr/share/nprobe/netfilter/scripts

sever-sever commented 4 months ago

You should be able to find them in this directory on a machine with nprobe installed: /usr/share/nprobe/netfilter/scripts

@l0crian1 Thanks for the tip!

cardigliano commented 4 months ago

Correct, they can be found under /usr/share/nprobe/netfilter/scripts/ on a machine with nprobe

sever-sever commented 4 months ago

To get them in the repo would be convenient. As someone can add/fix//extend examples for nftables due to legacy iptables What do you think? thanks

cardigliano commented 4 months ago

We can probably add a simple example in the doc, but not all of them as they are too long and it is more convenient to have them on the box to let you copy, modify and use them directly, and also avoid that the scripts in the doc are not updated when updating the source code.