How to make iptables rules permanent?
I've been trying to setup pivpn on alpine, but it keeps complaining about some iptables rules not being set, requiring me to run pivpn -d each time the system is started to fix it...
Maybe iptables-persistent would work for you?
Or if you use something like UFW you can add whatever iptables rules you like to /etc/ufw/after.rules.
iptables-save > /etc/iptables/rules.v4
Or install iptables-persistent if you’re on a Debian-derivative system.
iptables-persistent
https://linux.die.net/man/8/iptables-save
Set up a systemd service.