acme: switch from iptables to nft
authorToke Høiland-Jørgensen <toke@toke.dk>
Wed, 30 Mar 2022 10:54:51 +0000 (12:54 +0200)
committerToke Høiland-Jørgensen <toke@toke.dk>
Tue, 28 Jun 2022 21:05:59 +0000 (23:05 +0200)
commit3743870bc8f6f79a4715484968559079ed5695d7
tree3effa03172a402ce62305d7c0ea959105af633d7
parentd845c3dc35b232fb84705b6a8b4410e5398927e2
acme: switch from iptables to nft

Use nft instead of iptables to open port 80 in the firewall when getting a
cert. Since nft doesn't allow deleting a rule by its contents, capture and
save the handle when creating the rule, and use that to delete.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
(cherry picked from commit d926da5182a4547e5248dad3e3e59abcd41d126f)
net/acme/files/run.sh