mirror of
https://github.com/deunix-educ/Fail2banMqttActionBanishment.git
synced 2026-08-24 03:11:58 +02:00
26 lines
677 B
INI
26 lines
677 B
INI
[Unit]
|
|
Description=Firewall iptables
|
|
# Démarre après la détection des interfaces réseau,
|
|
# mais avant que le trafic soit autorisé et avant fail2ban
|
|
After=network-pre.target
|
|
Before=network.target fail2ban.service
|
|
Wants=network-pre.target
|
|
|
|
# Si fail2ban redémarre, le firewall doit être actif en premier
|
|
PartOf=fail2ban.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
EnvironmentFile=__ENV_FILE__
|
|
ExecStart=/etc/firewall/firewall-launcher.sh start
|
|
ExecStop=/etc/firewall/firewall-launcher.sh stop
|
|
ExecReload=/etc/firewall/firewall-launcher.sh reload
|
|
|
|
# Sécurité du service lui-même
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|