mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
52 lines
1.3 KiB
Text
52 lines
1.3 KiB
Text
# Firejail profile for tor
|
|
# Description: Anonymizing overlay network for TCP
|
|
# This file is overwritten after every install/update
|
|
# Persistent local customizations
|
|
include /etc/firejail/tor.local
|
|
# Persistent global definitions
|
|
include /etc/firejail/globals.local
|
|
|
|
# How to use:
|
|
# Create a script called anything (e.g. mytor)
|
|
# with the following contents:
|
|
|
|
# #!/bin/bash
|
|
# TORCMD="tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc -f /etc/tor/torrc --RunAsDaemon 1"
|
|
# sudo -b daemon -f -d -- firejail --profile=/home/<username>/.config/firejail/tor.profile $TORCMD
|
|
|
|
# You'll also likely want to disable the system service (if it exists)
|
|
# Run mytor (or whatever you called the script above) whenever you want to start tor
|
|
|
|
include /etc/firejail/disable-common.inc
|
|
include /etc/firejail/disable-devel.inc
|
|
include /etc/firejail/disable-interpreters.inc
|
|
include /etc/firejail/disable-passwdmgr.inc
|
|
include /etc/firejail/disable-programs.inc
|
|
include /etc/firejail/disable-xdg.inc
|
|
|
|
caps.keep setuid,setgid,net_bind_service,dac_read_search
|
|
ipc-namespace
|
|
machine-id
|
|
netfilter
|
|
no3d
|
|
nodvd
|
|
nogroups
|
|
nonewprivs
|
|
nosound
|
|
notv
|
|
novideo
|
|
protocol unix,inet,inet6
|
|
seccomp
|
|
shell none
|
|
writable-var
|
|
|
|
disable-mnt
|
|
private
|
|
private-bin tor,bash
|
|
private-cache
|
|
private-dev
|
|
private-etc tor,passwd,ca-certificates,ssl,pki,crypto-policies
|
|
private-tmp
|
|
|
|
noexec ${HOME}
|
|
noexec /tmp
|