#!/bin/bash # Removing firewall rules created for certbot renew certificates me=$(basename "$0") logger -t "$me" "Closing port 80 opened for certbot" iptables -D INPUT -p tcp --dport 80 -j NFLOG --nflog-prefix "nfl:ok-certbot " iptables -D INPUT -p tcp --dport 80 -j ACCEPT -m comment --comment "Allow HTTP for certbot"