Commit 4e7658b7 authored by anonym's avatar anonym

Clear firewall rules on start.

So we don't keep on accumulating duplicates of the same firewall rule
if we restart multiple times during the same session. Idempotence for
the win!
parent 25ace6f7
......@@ -48,6 +48,10 @@ systemctl reload tor@default
[ -e "${ONION}/hostname" ] || inotifywait -e create ${ONION}
HOSTNAME=$(cat ${ONION}/hostname)
# Drop previous mumble-server firewall exceptions
systemctl reload ferm
# Allow local connections
iptables -I OUTPUT --out-interface lo --protocol tcp --dport 64738 --jump ACCEPT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment