Skip to content

Commit 08f282d

Browse files
committed
proxydhcp: capabilities and network mode
1 parent bb30138 commit 08f282d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ docker run -d \
6666
-p 8080:80 `# optional, destination should match ${NGINX_PORT} variable above.` \
6767
-v /local/path/to/config:/config `# optional` \
6868
-v /local/path/to/assets:/assets `# optional` \
69+
--cap-add NET_ADMIN `# only required for DHCP Proxy mode` \
70+
--network host `# only required for DHCP Proxy mode` \
6971
--restart unless-stopped \
7072
ghcr.io/netbootxyz/netbootxyz
7173
```
@@ -127,7 +129,7 @@ Container images are configured using parameters passed at runtime (such as thos
127129

128130
This image requires the usage of a DHCP server in order to function properly, unless you enable the **optional proxy-DHCP mode**. If you have an existing DHCP server, you will need to make some small adjustments to forward requests to the netboot.xyz container. You will typically set your `next-server` and `boot-file-name` parameters in the DHCP configuration. This tells DHCP to forward requests to the TFTP server and then select a boot file from the TFTP server.
129131

130-
If you prefer not to modify your existing DHCP server, you can enable the **proxy-DHCP mode** by setting the `DHCP_RANGE_START` environment variable to the first IP in your DHCP range (e.g. 192.168.1.1). This mode allows netboot.xyz to provide PXE boot configuration while your existing DHCP server continues to handle IP address assignment.
132+
If you prefer not to modify your existing DHCP server, you can enable the **proxy-DHCP mode** by setting the `DHCP_RANGE_START` environment variable to the first IP in your DHCP range (e.g. 192.168.1.1). This mode allows netboot.xyz to provide PXE boot configuration while your existing DHCP server continues to handle IP address assignment. This mode requires the docker (or docker compose) parameter `--cap-add NET_ADMIN` be added and for the container to be running directly on the network to see the DHCP messages, i.e. with network mode set to `host` or via `ipvlan`/`macvlan` or a bridge.
131133

132134
### Examples
133135

docker-compose.yml.example

+3
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ services:
1717
- 69:69/udp
1818
- 8080:80 # optional, destination should match ${NGINX_PORT} variable above.
1919
restart: unless-stopped
20+
# cap_add:
21+
# - NET_ADMIN # required for DHCP Proxy mode.
22+
# network_mode: host # required for DHCP Proxy mode - network mode host, (or ipvlan/macvlan or a bridge).

0 commit comments

Comments
 (0)