aboutsummaryrefslogtreecommitdiffstats
path: root/src/man/firejail.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/man/firejail.txt')
-rw-r--r--src/man/firejail.txt46
1 files changed, 39 insertions, 7 deletions
diff --git a/src/man/firejail.txt b/src/man/firejail.txt
index a5704e995..9e3bce643 100644
--- a/src/man/firejail.txt
+++ b/src/man/firejail.txt
@@ -1463,6 +1463,28 @@ $ firejail --name=browser --net=eth0 --netfilter firefox &
1463$ firejail --netfilter6.print=browser 1463$ firejail --netfilter6.print=browser
1464 1464
1465.TP 1465.TP
1466\fB\-\-netlock=name/pid
1467Several type of programs (email clients, multiplayer games etc.) talk to a very small
1468number of IP addresses. But the best example is tor browser. It only talks to a guard node,
1469and there are two or three more on standby in case the main one fails.
1470During startup, the browser contacts all of them, after that it keeps talking to the main
1471one... for weeks!
1472
1473Use the network locking feature to build and deploy a network firewall in your sandbox.
1474The firewall allows only the network traffic to the IP addresses detected during the program
1475startup. Traffic to any other address is quietly dropped. By default the startup monitoring
1476time is one minute. Example:
1477.br
1478
1479.br
1480$ firejail --net=eth0 --netlock \\
1481.br
1482--private=~/tor-browser_en-US ./start-tor-browser.desktop
1483.br
1484
1485.br
1486
1487.TP
1466\fB\-\-netmask=address 1488\fB\-\-netmask=address
1467Use this option when you want to assign an IP address in a new namespace and 1489Use this option when you want to assign an IP address in a new namespace and
1468the parent interface specified by --net is not configured. An IP address and 1490the parent interface specified by --net is not configured. An IP address and
@@ -1500,25 +1522,35 @@ PID User RX(KB/s) TX(KB/s) Command
1500.br 1522.br
15017383 netblue 9.045 0.112 firejail \-\-net=eth0 transmission 15237383 netblue 9.045 0.112 firejail \-\-net=eth0 transmission
1502.TP 1524.TP
1503\fB\-\-nettrace=name|pid 1525\fB\-\-nettrace[=name|pid]
1504Monitor TCP and UDP traffic coming into the sandbox specified by name or pid. Only networked sandboxes 1526Monitor TCP and UDP traffic coming into the sandbox specified by name or pid. Only networked sandboxes
1505created with \-\-net are supported. 1527created with \-\-net are supported.
1506.br 1528.br
1507 1529
1508.br 1530.br
1509$ firejail --nettrace=browser 1531Without a name/pid, Firejail will monitor the main system network namespace.
1532.br
1533
1534.br
1535 $ firejail --nettrace=browser
1536.br
1537
1538.br
1539 95 KB/s geoip 457, IP database 4436
1540.br
1541 52 KB/s *********** 64.222.84.207:443 United States
1510.br 1542.br
1511 86 KB/s ********* 64.222.84.207:443 United States 1543 33 KB/s ******* 89.147.74.105:63930 Hungary
1512.br 1544.br
1513 76 KB/s ******** 192.229.210.163:443 MCI 1545 0 B/s 45.90.28.0:443 NextDNS
1514.br 1546.br
1515 111 B/s 9.9.9.9:53 Quad9 DNS 1547 0 B/s 94.70.122.176:52309(UDP) Greece
1516.br 1548.br
1517 32 KB/s *** 142.250.179.182:443 Google 1549 339 B/s 104.26.7.35:443 Cloudflare
1518.br 1550.br
1519 1551
1520.br 1552.br
1521If /usr/bin/geoiplookup is installed (geoip-bin packet in Debian), 1553If /usr/bin/geoiplookup is installed (geoip-bin package in Debian),
1522the country the IP address originates from is added to the trace. 1554the country the IP address originates from is added to the trace.
1523We also use the static IP map in /etc/firejail/hostnames 1555We also use the static IP map in /etc/firejail/hostnames
1524to print the domain names for some of the more common websites and cloud platforms. 1556to print the domain names for some of the more common websites and cloud platforms.