dhcpdv4.conf.tpl 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Wifi Hotspot app for YunoHost
  2. # Copyright (C) 2015 Julien Vaubourg <julien@vaubourg.com>
  3. # Contribute at https://github.com/labriqueinternet/hotspot_ynh
  4. #
  5. # This program is free software: you can redistribute it and/or modify
  6. # it under the terms of the GNU Affero General Public License as published by
  7. # the Free Software Foundation, either version 3 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU Affero General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU Affero General Public License
  16. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. # Do DHCP for this subnet.
  18. dhcp-range=interface:<TPL:WIFI_DEVICE>,<TPL:IP4_NAT_PREFIX>.2,<TPL:IP4_NAT_PREFIX>.254,4h
  19. # Send DHCPv4 option.
  20. dhcp-option=option:dns-server,<TPL:IP4_DNS0>,<TPL:IP4_DNS1>
  21. # Set the DHCP server to authoritative mode. In this mode it will barge in
  22. # and take over the lease for any client which broadcasts on the network,
  23. # whether it has a record of the lease or not. This avoids long timeouts
  24. # when a machine wakes up on a new network. DO NOT enable this if there's
  25. # the slightest chance that you might end up accidentally configuring a DHCP
  26. # server for your campus/company accidentally. The ISC server uses
  27. # the same option, and this URL provides more information:
  28. # http://www.isc.org/files/auth.html
  29. dhcp-authoritative
  30. # On systems which support it, dnsmasq binds the wildcard address,
  31. # even when it is listening on only some interfaces. It then discards
  32. # requests that it shouldn't reply to. This has the advantage of
  33. # working even when interfaces come and go and change address. If you
  34. # want dnsmasq to really bind only the interfaces it is listening on,
  35. # uncomment this option. About the only time you may need this is when
  36. # running another nameserver on the same machine.
  37. bind-interfaces
  38. # If this line is uncommented, dnsmasq will read /etc/ethers and act
  39. # on the ethernet-address/IP pairs found there just as if they had
  40. # been given as --dhcp-host options. Useful if you keep
  41. # MAC-address/host mappings there for other purposes.
  42. #read-ethers