9798ca9cd6
- Created handlers for reloading systemd and restarting firewall services. - Implemented tasks to ensure the existence of configuration directories and files. - Deployed host-specific and shared configuration files using templates. - Added scripts for managing IPv4 and IPv6 firewalls. - Configured systemd service units for ipt-firewall and ip6t-firewall. - Enabled and started firewall services on system boot.
14 lines
262 B
Desktop File
14 lines
262 B
Desktop File
[Unit]
|
|
Description=IPv4 Firewall with iptables
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart=/usr/local/sbin/ipt-firewall-server start
|
|
ExecStop=/usr/local/sbin/ipt-firewall-server stop
|
|
User=root
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|