Skip to content
Velloreth
Cybersecurity 2 min read

Lock Down Your Workstation: Portmaster Plus Brave Privacy Setup

Linux phones home more than you think. Per-app firewall rules with Portmaster, hardened DNS, and Brave settings that cut trackers without breaking sites.

By

Linux is secure by default the way a new apartment is clean on move-in day. Then the browser, editor, runtimes, Docker, and extensions move in — and the machine talks constantly. Some expected, the rest noise: telemetry, trackers, updaters for apps you forgot.

Privacy tooling went mainstream in 2026: Brave Search up 1088%, Portmaster up 274%. This is the ten-minute lockdown.

Install Portmaster

curl -fsSL https://updates.safing.io/linux/stable/pubkey.gpg | sudo gpg --dearmor -o /usr/share/keyrings/safing.gpg
echo "deb [signed-by=/usr/share/keyrings/safing.gpg] https://updates.safing.io/linux/stable/deb stable main" | sudo tee /etc/apt/sources.list.d/safing.list
sudo apt update && sudo apt install portmaster

Fedora uses the Safing rpm repo, Arch has portmaster-bin. Open the UI, enable the core, set Default Action to Block for day one. Prompts are the audit working.

Docker or VPN? Allow the bridge ranges and set VPN compatibility so the tunnel is not treated as hostile.

Safe default rules

AppRuleWhy
Browsers, package managersAllow webThey need it
Compilers, local DBsBlock outbound, allow localhostA compiler phoning home is a smell
/tmp binariesBlock, promptClassic malware path
Filter listsAds, trackers, malware onOne toggle, whole system
DNSForce Secure DNSStops WiFi snooping

Live with prompts for a day. Promote the good ones, keep the rest blocked.

Harden Brave in ten minutes

  1. Shields trackers: Standard. Aggressive breaks checkouts; Portmaster lists cover the rest.
  2. Fingerprinting: Standard. Strict breaks banks for little gain.
  3. Cookies: block third-party. First-party stays, cross-site dies.
  4. Search: Brave Search default. Address-bar queries stop leaking.
  5. Extensions: fewer than five. Each sees every page.
  6. HTTPS-Only: on. Downgrade attacks die here.
  7. Secure DNS: same provider as Portmaster to avoid split-brain.

Broken site? Shields icon, relax for that site only. Global stays strict.

Verify

ss -tupn | head -20

Portmaster monitor should show encrypted DNS, not port 53 in clear. Test Brave at cover-your-tracks style checkers — blocked trackers plus randomized fingerprint is the goal.

After a workday the top talkers should be browser, package mirror, Git remote. A linter or theme extension in the top five means its rule was wrong. Quarterly, prune allows you no longer use.

Frequently asked questions

Does Linux need a firewall?
For inbound ports, a fresh install has little listening. For outbound control — which app phones where — yes. Developer machines constantly talk out via browsers, servers, and extensions.
What is Portmaster?
An open-source application firewall. Instead of only ports and IPs, it attaches decisions to processes: this binary may reach the web, that one may not, trackers blocked for everyone.
Will hardening Brave break sites?
Aggressive shields break some logins. Use Standard blocking plus per-site relax — 95% works, the noisy 5% gets a one-click exception.
Do I still need a VPN?
A VPN hides IP and local traffic. It does not stop apps phoning home or browser trackers. Use both: VPN for transport, Portmaster plus Brave for behavior.