mirror of
https://github.com/YunoHost-Apps/hotspot_ynh.git
synced 2024-09-03 19:25:53 +02:00
32 lines
1.5 KiB
Smarty
32 lines
1.5 KiB
Smarty
# Wifi Hotspot app for YunoHost
|
|
|
|
# Do DHCP for this subnet.
|
|
dhcp-range=interface:__WIFI_DEVICE__,__IP4_NAT_PREFIX__.2,__IP4_NAT_PREFIX__.254,4h
|
|
|
|
# Send DHCPv4 option.
|
|
dhcp-option=option:dns-server,__IP4_DNS__
|
|
|
|
# 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
|