2015-04-26 21:34:11 +02:00
|
|
|
# Wifi Hotspot app for YunoHost
|
|
|
|
# Copyright (C) 2015 Julien Vaubourg <julien@vaubourg.com>
|
2015-07-22 23:54:56 +02:00
|
|
|
# Contribute at https://github.com/labriqueinternet/hotspot_ynh
|
2015-04-26 21:34:11 +02:00
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU Affero General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU Affero General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
# 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
|