Jump to: navigation, search

Template:Qubes Tor Hidden Service Firewall Exception

Qubes-Whonix users need an additional firewall exception, please press expand on the right side.
(Non-Qubes-Whonix users can skip this.)

Open firewall port access for your app between Whonix-Gateway and Whonix-Workstation.

sudo iptables -I INPUT 5 -p tcp --dport {{{port}}} -m conntrack --ctstate NEW -j ACCEPT

If not setting up a web server, change the port number from {{{port}}} to whatever your app requires.

To make the firewall rule persistent, add the rule to the rc.local file and make it executable.

Open /rw/config/rc.local:

kdesudo kwrite /rw/config/rc.local

Add the following in the rc.local file:

#!/bin/sh
sudo iptables -I INPUT 5 -p tcp --dport {{{port}}} -m conntrack --ctstate NEW -j ACCEPT

Make the rc.local file executable.

sudo chmod +x /rw/config/rc.local