Jump to: navigation, search

Template:Qubes Tor Hidden Service Firewall Exception

Qubes-Whonix users who require an additional firewall exception, please press Expand on the right.
Note: Non-Qubes-Whonix users can skip this step.

Open firewall port access for the application between Whonix-Gateway and Whonix-Workstation.

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

Unless setting up a web server, change the port number from {{{port}}} to whatever the application 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