aboutsummaryrefslogtreecommitdiffstats
path: root/etc/profile-m-z/tor.profile
diff options
context:
space:
mode:
Diffstat (limited to 'etc/profile-m-z/tor.profile')
-rw-r--r--etc/profile-m-z/tor.profile51
1 files changed, 51 insertions, 0 deletions
diff --git a/etc/profile-m-z/tor.profile b/etc/profile-m-z/tor.profile
new file mode 100644
index 000000000..13d071635
--- /dev/null
+++ b/etc/profile-m-z/tor.profile
@@ -0,0 +1,51 @@
1# Firejail profile for tor
2# Description: Anonymizing overlay network for TCP
3# This file is overwritten after every install/update
4# Persistent local customizations
5include tor.local
6# Persistent global definitions
7include globals.local
8
9# How to use:
10# Create a script called anything (e.g. mytor)
11# with the following contents:
12
13# #!/bin/bash
14# TORCMD="tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc -f /etc/tor/torrc --RunAsDaemon 1"
15# sudo -b daemon -f -d -- firejail --profile=/home/<username>/.config/firejail/tor.profile $TORCMD
16
17# You'll also likely want to disable the system service (if it exists)
18# Run mytor (or whatever you called the script above) whenever you want to start tor
19
20include disable-common.inc
21include disable-devel.inc
22include disable-exec.inc
23include disable-interpreters.inc
24include disable-passwdmgr.inc
25include disable-programs.inc
26include disable-xdg.inc
27
28caps.keep dac_read_search,net_bind_service,setgid,setuid
29ipc-namespace
30machine-id
31netfilter
32no3d
33nodvd
34nogroups
35nonewprivs
36nosound
37notv
38nou2f
39novideo
40protocol unix,inet,inet6
41seccomp
42shell none
43
44disable-mnt
45private
46private-bin bash,tor
47private-cache
48private-dev
49private-etc alternatives,ca-certificates,crypto-policies,passwd,pki,ssl,tor
50private-tmp
51writable-var