summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPÁLI Gábor János <pali.gabor@gmail.com>2022-12-30 14:19:12 +0100
committerPÁLI Gábor János <pali.gabor@gmail.com>2022-12-30 14:19:12 +0100
commit1b300a88b562f707ccd1b67229bd878930c9766c (patch)
tree6ae7563bb1c2e33c48bc71826b417e1c21a01d23
parentb3002c7cba8374147d68ef79aac002b8abf18a2b (diff)
downloadfreebsd-wifibox-alpine-1b300a88b562f707ccd1b67229bd878930c9766c.zip
etc/wpa_supplicant: Use only a single IP address.
Ideally, Wifibox is meant to be used by a single client at a time, so it makes no sense to lease more than one IP address. Change the `udhcpd` configuration according to this principle.
-rw-r--r--etc/wpa_supplicant/appliance/udhcpd.conf.sample13
1 files changed, 7 insertions, 6 deletions
diff --git a/etc/wpa_supplicant/appliance/udhcpd.conf.sample b/etc/wpa_supplicant/appliance/udhcpd.conf.sample
index 79a5549..03c468e 100644
--- a/etc/wpa_supplicant/appliance/udhcpd.conf.sample
+++ b/etc/wpa_supplicant/appliance/udhcpd.conf.sample
@@ -4,16 +4,17 @@
# The value of `interface` should match with the one defined in the
# interfaces.conf file: `interface` should be exactly the same,
# `router` should correspond to `address` and `subnet` is the
-# `netmask`. According to these settings below, the IP addresses are
-# handed out for the 10.0.0.0/24 network. In the `opt dns` line, the
-# `%%DNS%%` variable would be replaced with the IP addresses of the
-# DNS servers as provided by the wireless network (wifibox extension).
+# `netmask`. According to these settings below, a single IP address
+# (10.0.0.2) is handed out, since only one is expected. In the `opt
+# dns` line, the `%%DNS%%` variable would be replaced with the IP
+# addresses of the DNS servers as provided by the wireless network
+# (wifibox extension).
#
# Change these only if this is not suitable.
start 10.0.0.2
-end 10.0.0.254
-max_leases 64
+end 10.0.0.2
+max_leases 1
interface eth0
opt subnet 255.255.255.0
opt router 10.0.0.1