From 1b300a88b562f707ccd1b67229bd878930c9766c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=81LI=20G=C3=A1bor=20J=C3=A1nos?= Date: Fri, 30 Dec 2022 14:19:12 +0100 Subject: 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. --- etc/wpa_supplicant/appliance/udhcpd.conf.sample | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'etc/wpa_supplicant/appliance') 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 -- cgit v1.2.3