clarifications on example action script
This commit is contained in:
parent
34c7e3bec0
commit
78ca7d5205
@ -5,12 +5,14 @@
|
|||||||
# iptables -I INPUT -s $1 -j DROP
|
# iptables -I INPUT -s $1 -j DROP
|
||||||
#
|
#
|
||||||
# Example for OpenBSD:
|
# Example for OpenBSD:
|
||||||
# Having a table in pf.conf:
|
# Having this line in /etc/doas.conf
|
||||||
|
# permit nopass _tarpit as root cmd /sbin/pfctl
|
||||||
|
# And having a table defined in pf.conf:
|
||||||
# table <blacklist> persist file "/etc/blacklist"
|
# table <blacklist> persist file "/etc/blacklist"
|
||||||
# block drop in quick from <blacklist> to any
|
# block drop in quick from <blacklist> to any
|
||||||
# then add/delete dinamically:
|
# then it is possible to add/delete dinamically:
|
||||||
# pfctl -t blacklist -T add $1
|
# doas /sbin/pfctl -t blacklist -T add $1
|
||||||
# pfctl -t blacklist -T delete $1
|
# doas /sbin/pfctl -t blacklist -T delete $1
|
||||||
|
|
||||||
# Example for "debugging":
|
# Example for "debugging":
|
||||||
echo $1 > /tmp/foo
|
echo $1 > /tmp/foo
|
||||||
|
Loading…
Reference in New Issue
Block a user