summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md31
-rw-r--r--RELNOTES1
-rw-r--r--src/firejail/netfilter.c7
-rw-r--r--src/man/firejail.txt12
4 files changed, 50 insertions, 1 deletions
diff --git a/README.md b/README.md
index fa8c1ecd5..625df6554 100644
--- a/README.md
+++ b/README.md
@@ -31,10 +31,41 @@ Features: https://firejail.wordpress.com/features-3/
31Documentation: https://firejail.wordpress.com/documentation-2/ 31Documentation: https://firejail.wordpress.com/documentation-2/
32 32
33FAQ: https://firejail.wordpress.com/support/frequently-asked-questions/ 33FAQ: https://firejail.wordpress.com/support/frequently-asked-questions/
34`````
34 35
36`````
35# Current development version: 0.9.39 37# Current development version: 0.9.39
38`````
39
40`````
36 41
37## Default seccomp filter update 42## Default seccomp filter update
38 43
39Currently 50 syscalls are blacklisted by default, out of a total of 318 calls (AMD64, Debian Jessie). 44Currently 50 syscalls are blacklisted by default, out of a total of 318 calls (AMD64, Debian Jessie).
40 45
46## STUN/WebRTC disabled in default netfilter configuration
47
48The current netfilter configuration (--netfilter option) looks like this:
49`````
50 *filter
51 :INPUT DROP [0:0]
52 :FORWARD DROP [0:0]
53 :OUTPUT ACCEPT [0:0]
54 -A INPUT -i lo -j ACCEPT
55 -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
56 # allow ping
57 -A INPUT -p icmp --icmp-type destination-unreachable -j ACCEPT
58 -A INPUT -p icmp --icmp-type time-exceeded -j ACCEPT
59 -A INPUT -p icmp --icmp-type echo-request -j ACCEPT
60 # drop STUN (WebRTC) requests
61 -A OUTPUT -p udp --dport 3478 -j DROP
62 -A OUTPUT -p udp --dport 3479 -j DROP
63 -A OUTPUT -p tcp --dport 3478 -j DROP
64 -A OUTPUT -p tcp --dport 3479 -j DROP
65 COMMIT
66`````
67
68The filter is loaded by default for Firefox if a network namespace is configured:
69`````
70$ firejail --net=eth0 firefox
71````` \ No newline at end of file
diff --git a/RELNOTES b/RELNOTES
index e9de34146..9e9a40bdc 100644
--- a/RELNOTES
+++ b/RELNOTES
@@ -1,6 +1,7 @@
1firejail (0.9.39) baseline; urgency=low 1firejail (0.9.39) baseline; urgency=low
2 * work in progress! 2 * work in progress!
3 * default seccomp filter update 3 * default seccomp filter update
4 * disable STUN/WebRTC in default netfilter configuration
4 * bugfixes 5 * bugfixes
5 -- netblue30 <netblue30@yahoo.com> Tue, 8 Feb 2016 10:00:00 -0500 6 -- netblue30 <netblue30@yahoo.com> Tue, 8 Feb 2016 10:00:00 -0500
6 7
diff --git a/src/firejail/netfilter.c b/src/firejail/netfilter.c
index a1c1b9c16..2ed09434a 100644
--- a/src/firejail/netfilter.c
+++ b/src/firejail/netfilter.c
@@ -30,12 +30,17 @@ static char *client_filter =
30":FORWARD DROP [0:0]\n" 30":FORWARD DROP [0:0]\n"
31":OUTPUT ACCEPT [0:0]\n" 31":OUTPUT ACCEPT [0:0]\n"
32"-A INPUT -i lo -j ACCEPT\n" 32"-A INPUT -i lo -j ACCEPT\n"
33"-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT\n"
33"# echo replay is handled by -m state RELATED/ESTABLISHED below\n" 34"# echo replay is handled by -m state RELATED/ESTABLISHED below\n"
34"#-A INPUT -p icmp --icmp-type echo-reply -j ACCEPT\n" 35"#-A INPUT -p icmp --icmp-type echo-reply -j ACCEPT\n"
35"-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT\n"
36"-A INPUT -p icmp --icmp-type destination-unreachable -j ACCEPT\n" 36"-A INPUT -p icmp --icmp-type destination-unreachable -j ACCEPT\n"
37"-A INPUT -p icmp --icmp-type time-exceeded -j ACCEPT\n" 37"-A INPUT -p icmp --icmp-type time-exceeded -j ACCEPT\n"
38"-A INPUT -p icmp --icmp-type echo-request -j ACCEPT \n" 38"-A INPUT -p icmp --icmp-type echo-request -j ACCEPT \n"
39"# disable STUN\n"
40"-A OUTPUT -p udp --dport 3478 -j DROP\n"
41"-A OUTPUT -p udp --dport 3479 -j DROP\n"
42"-A OUTPUT -p tcp --dport 3478 -j DROP\n"
43"-A OUTPUT -p tcp --dport 3479 -j DROP\n"
39"COMMIT\n"; 44"COMMIT\n";
40 45
41void check_netfilter_file(const char *fname) { 46void check_netfilter_file(const char *fname) {
diff --git a/src/man/firejail.txt b/src/man/firejail.txt
index bab596e96..784f1583e 100644
--- a/src/man/firejail.txt
+++ b/src/man/firejail.txt
@@ -679,12 +679,24 @@ The default filter is as follows:
679.br 679.br
680\-A INPUT \-m state \-\-state RELATED,ESTABLISHED \-j ACCEPT 680\-A INPUT \-m state \-\-state RELATED,ESTABLISHED \-j ACCEPT
681.br 681.br
682# allow ping
683.br
682\-A INPUT \-p icmp \-\-icmp-type destination-unreachable \-j ACCEPT 684\-A INPUT \-p icmp \-\-icmp-type destination-unreachable \-j ACCEPT
683.br 685.br
684\-A INPUT \-p icmp \-\-icmp-type time-exceeded \-j ACCEPT 686\-A INPUT \-p icmp \-\-icmp-type time-exceeded \-j ACCEPT
685.br 687.br
686\-A INPUT \-p icmp \-\-icmp-type echo-request \-j ACCEPT 688\-A INPUT \-p icmp \-\-icmp-type echo-request \-j ACCEPT
687.br 689.br
690# drop STUN (WebRTC) requests
691.br
692-A OUTPUT -p udp --dport 3478 -j DROP
693.br
694-A OUTPUT -p udp --dport 3479 -j DROP
695.br
696-A OUTPUT -p tcp --dport 3478 -j DROP
697.br
698-A OUTPUT -p tcp --dport 3479 -j DROP
699.br
688COMMIT 700COMMIT
689.br 701.br
690 702