Adrian 1de855304e | ||
---|---|---|
.. | ||
README.md | ||
blackwhite.rules | ||
connection.rules | ||
empty.rules | ||
ipset.rules | ||
ipset.service | ||
iptables.service | ||
knock.rules | ||
ratelimit.rules | ||
service.rules |
README.md
iptables & ipset
sudo apt install ipset
sudo cp empty.rules /etc
sudo touch /etc/{default,ipset}.rules
sudo cp *.service /etc/systemd/system
sudo systemctl enable iptables ipset
sudo systemctl start iptables ipset
Presets
sudo ipset restore -f ipset.rules
sudo iptables-restore -n connection.rules
sudo iptables-restore -n service.rules
sudo iptables-restore -n blackwhite.rules
sudo iptables-restore -n knock.rules
sudo iptables-restore -n ratelimit.rules