mirror of
https://github.com/YunoHost-Apps/hotspot_ynh.git
synced 2024-09-03 19:25:53 +02:00
30 lines
1.5 KiB
Smarty
30 lines
1.5 KiB
Smarty
# Do DHCP for this subnet.
|
|
dhcp-range=interface:<TPL:WIFI_DEVICE>,<TPL:IP4_NAT_PREFIX>.2,<TPL:IP4_NAT_PREFIX>.254,4h
|
|
|
|
# Send DHCPv4 option.
|
|
dhcp-option=option:dns-server,<TPL:IP4_DNS0>,<TPL:IP4_DNS1>
|
|
|
|
# Set the DHCP server to authoritative mode. In this mode it will barge in
|
|
# and take over the lease for any client which broadcasts on the network,
|
|
# whether it has a record of the lease or not. This avoids long timeouts
|
|
# when a machine wakes up on a new network. DO NOT enable this if there's
|
|
# the slightest chance that you might end up accidentally configuring a DHCP
|
|
# server for your campus/company accidentally. The ISC server uses
|
|
# the same option, and this URL provides more information:
|
|
# http://www.isc.org/files/auth.html
|
|
dhcp-authoritative
|
|
|
|
# On systems which support it, dnsmasq binds the wildcard address,
|
|
# even when it is listening on only some interfaces. It then discards
|
|
# requests that it shouldn't reply to. This has the advantage of
|
|
# working even when interfaces come and go and change address. If you
|
|
# want dnsmasq to really bind only the interfaces it is listening on,
|
|
# uncomment this option. About the only time you may need this is when
|
|
# running another nameserver on the same machine.
|
|
bind-interfaces
|
|
|
|
# If this line is uncommented, dnsmasq will read /etc/ethers and act
|
|
# on the ethernet-address/IP pairs found there just as if they had
|
|
# been given as --dhcp-host options. Useful if you keep
|
|
# MAC-address/host mappings there for other purposes.
|
|
#read-ethers
|