Firewall script and fail2ban for docker environment.

This commit is contained in:
2021-07-20 04:12:20 +00:00
parent 131ebef87d
commit b3d8d9ffd1
4 changed files with 126 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
# copy to /etc/systemd/system/
[Unit]
Description=Firewall Rules
Requires=firewall-init.service
After=firewall-init.service docker.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/etc/network/firewall/rules.sh
[Install]
WantedBy=multi-user.target