Skip to content
Snippets Groups Projects
Commit 4bea984d authored by ale's avatar ale
Browse files

Do not invoke update-ipset from update-firewall

A model where the two are completely independent is simpler to
manage. The systemd unit will call update-ipset first, followed
by update-firewall.
parent e98ebee5
Branches
No related tags found
No related merge requests found
......@@ -4,8 +4,6 @@
# Reads the blacklists from:
# /etc/firewall/blocked/{ip,net}/{ipv4,ipv6}/*
update-ipset
add_rule4 -A pre-input -m set --match-set block_ip src -j DROP
add_rule6 -A pre-input -m set --match-set block_ip6 src -j DROP
add_rule4 -A pre-input -m set --match-set block_net src -j DROP
......
......@@ -4,6 +4,7 @@ Description=Set up firewall
[Service]
Type=oneshot
EnvironmentFile=-/etc/default/firewall
ExecStart=/usr/sbin/update-ipset
ExecStart=/usr/sbin/update-firewall
[Install]
......
update-ipset 100644 → 100755
File mode changed from 100644 to 100755
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment