Skip to content

Commit

Permalink
whonix firewall info
Browse files Browse the repository at this point in the history
  • Loading branch information
nyxnor committed Aug 10, 2022
1 parent 2c8b32f commit f3a1d75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usr/bin/onionjuggler-cli-web
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ server \"${onion_hostname}\" {
if test -f /usr/share/anon-ws-base-files/workstation; then
printf '\n'
## create whonix firewall folder, allow port via config file, reload firewall
notice "Open firewall port ${target_port}"
notice "Allow port ${target_port} on firewall /usr/local/etc/whonix_firewall.d/40_onionjuggler.conf"
mkdir -p /usr/local/etc/whonix_firewall.d/
echo "EXTERNAL_OPEN_PORTS+=\" ${target_port} \"" | sudo tee -a /usr/local/etc/whonix_firewall.d/40_onionjuggler.conf
whonix_firewall
Expand All @@ -212,7 +212,7 @@ server \"${onion_hostname}\" {
target_addr="${target%%:*}"
target_port="${target##*:}"
printf '\n'
notice "Firewalling port ${target_port}"
notice "Closing port ${target_port} on firewall /usr/local/etc/whonix_firewall.d/40_onionjuggler.conf"
sed -i'' "/EXTERNAL_OPEN_PORTS+=\" ${target_port} \"/d" /usr/local/etc/whonix_firewall.d/40_onionjuggler.conf
whonix_firewall
fi
Expand Down

0 comments on commit f3a1d75

Please sign in to comment.