Load IPSETS before the webmin iptable service loads the iptables

2 posts / 0 new
Last post
#1 Sat, 06/22/2019 - 09:41
Rory Bremner

Load IPSETS before the webmin iptable service loads the iptables

How do I load my IPSETS before the webmin iptable service loads the iptables?

In /etc/systemd/system/multi-user.target.wants/webmin-iptables.service we have:
ExecStart=/bin/sh -c '/sbin/iptables-restore </etc/webmin/firewall/iptables.save'

I tried ExecStart=/sbin/ipset restore -! < /etc/ipset.up.rules ; /bin/sh -c '/sbin/iptables-restore </etc/webmin/firewall/iptables.save'
and also
ExecStart=/sbin/ipset restore -! < /etc/ipset.up.rules && /bin/sh -c '/sbin/iptables-restore </etc/webmin/firewall/iptables.save'
but it does not seem to work.

Tue, 06/25/2019 - 06:53
Rory Bremner

Even though I moved in another direction since then, it should be possible to run multiple ExecStart= commands on separate lines and they should be executed in sequence.

Topic locked