aboutsummaryrefslogtreecommitdiffstats
path: root/src/man/firejail.txt
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kris7topher@gmail.com>2020-01-27 21:41:46 +0100
committerLibravatar Kristóf Marussy <kris7topher@gmail.com>2020-01-27 22:09:50 +0100
commit649bcd4bfbd7b24ec95873e97e3b5270d84ec374 (patch)
treee40147e73cb1a456d99125b9a3cc317e9400945a /src/man/firejail.txt
parentFix unsigned comparison error (#3174) (diff)
downloadfirejail-649bcd4bfbd7b24ec95873e97e3b5270d84ec374.tar.gz
firejail-649bcd4bfbd7b24ec95873e97e3b5270d84ec374.tar.zst
firejail-649bcd4bfbd7b24ec95873e97e3b5270d84ec374.zip
Documentation for DHCP support
Diffstat (limited to 'src/man/firejail.txt')
-rw-r--r--src/man/firejail.txt49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/man/firejail.txt b/src/man/firejail.txt
index e5abcdcf5..4b1134686 100644
--- a/src/man/firejail.txt
+++ b/src/man/firejail.txt
@@ -567,6 +567,31 @@ If the corresponding interface doesn't have an IP address configured, this
567option is enabled by default. 567option is enabled by default.
568 568
569.TP 569.TP
570\fB\-\-ip=dhcp
571Acquire an IP address and default gateway for the last interface defined by a
572\-\-net option, as well as set the DNS servers according to the DHCP response.
573This option requires the ISC dhclient DHCP client to be installed and will start
574it automatically inside the sandbox.
575.br
576
577.br
578Example:
579.br
580$ firejail \-\-net=br0 \-\-ip=dhcp
581.br
582
583.br
584This option should not be used in conjunction with the \-\-dns option if the
585DHCP server is set to configure DNS servers for the clients, because the
586manually specified DNS servers will be overwritten.
587
588.br
589The DHCP client will NOT release the DHCP lease when the sandbox terminates.
590If your DHCP server requires leases to be explicitly released, consider running
591a DHCP client and releasing the lease manually in conjunction with the
592\-\-net=none option.
593
594.TP
570\fB\-\-ip6=address 595\fB\-\-ip6=address
571Assign IPv6 addresses to the last network interface defined by a \-\-net option. 596Assign IPv6 addresses to the last network interface defined by a \-\-net option.
572.br 597.br
@@ -579,6 +604,30 @@ $ firejail \-\-net=eth0 \-\-ip6=2001:0db8:0:f101::1/64 firefox
579Note: you don't need this option if you obtain your ip6 address from router via SLAAC (your ip6 address and default route will be configured by kernel automatically). 604Note: you don't need this option if you obtain your ip6 address from router via SLAAC (your ip6 address and default route will be configured by kernel automatically).
580 605
581.TP 606.TP
607\fB\-\-ip6=dhcp
608Acquire an IPv6 address and default gateway for the last interface defined by a
609\-\-net option, as well as set the DNS servers according to the DHCP response.
610This option requires the ISC dhclient DHCP client to be installed and will start
611it automatically inside the sandbox.
612.br
613
614.br
615Example:
616.br
617$ firejail \-\-net=br0 \-\-ip6=dhcp
618.br
619
620.br
621This option should not be used in conjunction with the \-\-dns option if the
622DHCP server is set to configure DNS servers for the clients, because the
623manually specified DNS servers will be overwritten.
624
625.br
626The DHCP client will NOT release the DHCP lease when the sandbox terminates.
627If your DHCP server requires leases to be explicitly released, consider running
628a DHCP client and releasing the lease manually.
629
630.TP
582\fB\-\-iprange=address,address 631\fB\-\-iprange=address,address
583Assign an IP address in the provided range to the last network interface defined by a \-\-net option. A 632Assign an IP address in the provided range to the last network interface defined by a \-\-net option. A
584default gateway is assigned by default. 633default gateway is assigned by default.