These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Load IPSETS before the webmin iptable service loads the iptables on the new forum.
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.
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.