Template:Firewall Settings Workstation

From Whonix
Revision as of 21:55, 21 December 2025 by ArrayBolt3 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Modify Whonix-Workstation User Firewall Settings

Note: If no changes have yet been made to Whonix Firewall Settings, then the Whonix User Firewall Settings File /etc/whonix_firewall.d/50_user.conf appears empty (because it does not exist). This is expected.

Ensure the VM has sudo access first. If PERSISTENT Mode | SYSMAINT Session is available in some form, you must boot into this mode before these steps will work.

Platform specific. Select your platform.

Start MenuSystem ToolsUser Firewall Settings

Graphical Whonix-Workstation SYSMAINT Session

System Maintenance PanelOpen Terminal → run /usr/libexec/whonix-firewall/firewall50user

Qubes App Launcher (blue/grey "Q")Whonix-Workstation App Qube (commonly called anon-whonix)QTerminal → run sudoedit /usr/local/etc/whonix_firewall.d/50_user.conf

Terminal Whonix-Workstation

Open file /usr/local/etc/whonix_firewall.d/50_user.conf with root rights.

sudoedit /usr/local/etc/whonix_firewall.d/50_user.conf

For more help, press on Learn More on the right.

Note: This is for informational purposes only! Do not edit /etc/whonix_firewall.d/30_whonix_workstation_default.conf.

The Whonix Global Firewall Settings File /etc/whonix_firewall.d/30_whonix_workstation_default.conf contains default settings and explanatory comments about their purpose. By default, the file is opened read-only and is not meant to be directly edited. Below, it is recommended to open the file without root rights. The file contains an explanatory comment on how to change firewall settings.

## Please use "/etc/whonix_firewall.d/50_user.conf" for your custom configuration,
## which will override the defaults found here. When {{project_name_short}} is updated, this
## file may be overwritten.

Also see: Whonix modular flexible .d style configuration folders.

To view the file, follow these instructions.

If using Qubes-Whonix, complete these steps.

Qubes App Launcher (blue/grey "Q")Templatewhonix-workstation-18QTerminal → run nano /etc/whonix_firewall.d/30_whonix_workstation_default.conf

If using a graphical Whonix-Workstation, complete these steps.

Start MenuSystem ToolsGlobal Firewall Settings

If using a terminal Whonix-Workstation, complete these steps.

In Whonix-Workstation, view the global firewall configuration file in an editor. nano /etc/whonix_firewall.d/30_whonix_workstation_default.conf