aboutsummaryrefslogtreecommitdiffstats
path: root/src/man
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
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')
-rw-r--r--src/man/firejail-profile.txt53
-rw-r--r--src/man/firejail.txt49
2 files changed, 102 insertions, 0 deletions
diff --git a/src/man/firejail-profile.txt b/src/man/firejail-profile.txt
index 719a80c2c..84aed41a4 100644
--- a/src/man/firejail-profile.txt
+++ b/src/man/firejail-profile.txt
@@ -582,6 +582,33 @@ net eth0
582ip none 582ip none
583 583
584.TP 584.TP
585\fBip dhcp
586Acquire an IP address and default gateway for the last interface defined by a
587net command, as well as set the DNS servers according to the DHCP response.
588This command requires the ISC dhclient DHCP client to be installed and will start
589it automatically inside the sandbox.
590.br
591
592.br
593Example:
594.br
595net br0
596.br
597ip dhcp
598.br
599
600.br
601This command should not be used in conjunction with the dns command if the
602DHCP server is set to configure DNS servers for the clients, because the
603manually specified DNS servers will be overwritten.
604
605.br
606The DHCP client will NOT release the DHCP lease when the sandbox terminates.
607If your DHCP server requires leases to be explicitly released, consider running
608a DHCP client and releasing the lease manually in conjunction with the
609net none command.
610
611.TP
585\fBip6 address 612\fBip6 address
586Assign IPv6 addresses to the last network interface defined by a net command. 613Assign IPv6 addresses to the last network interface defined by a net command.
587.br 614.br
@@ -594,6 +621,32 @@ net eth0
594ip6 2001:0db8:0:f101::1/64 621ip6 2001:0db8:0:f101::1/64
595 622
596.TP 623.TP
624\fBip6 dhcp
625Acquire an IPv6 address and default gateway for the last interface defined by a
626net command, as well as set the DNS servers according to the DHCP response.
627This command requires the ISC dhclient DHCP client to be installed and will start
628it automatically inside the sandbox.
629.br
630
631.br
632Example:
633.br
634net br0
635.br
636ip6 dhcp
637.br
638
639.br
640This command should not be used in conjunction with the dns command if the
641DHCP server is set to configure DNS servers for the clients, because the
642manually specified DNS servers will be overwritten.
643
644.br
645The DHCP client will NOT release the DHCP lease when the sandbox terminates.
646If your DHCP server requires leases to be explicitly released, consider running
647a DHCP client and releasing the lease manually.
648
649.TP
597\fBiprange address,address 650\fBiprange address,address
598Assign an IP address in the provided range to the last network 651Assign an IP address in the provided range to the last network
599interface defined by a net command. A default gateway is assigned by default. 652interface defined by a net command. A default gateway is assigned by default.
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.