Compare commits
3 commits
01910e3f75
...
21d585edc2
Author | SHA1 | Date | |
---|---|---|---|
Ludwig Behm | 21d585edc2 | ||
Ludwig Behm | abcd689bc6 | ||
Ludwig Behm | fcdf816c7d |
1
Makefile
1
Makefile
|
@ -10,6 +10,7 @@ install:
|
|||
@echo setup nsd dns server
|
||||
install -o0 -g0 nsd/nsd.conf.d/* /etc/nsd/nsd.conf.d/
|
||||
install -o0 -g0 nsd/zones/* /etc/nsd/zones/
|
||||
systemctl restart nsd.service
|
||||
|
||||
@echo install nginx
|
||||
rm -f /etc/nginx/sites-enabled/default
|
||||
|
|
|
@ -1,5 +1,15 @@
|
|||
[Match]
|
||||
Name=enx*
|
||||
|
||||
[Link]
|
||||
RequiredForOnline=no
|
||||
|
||||
[Network]
|
||||
Address=192.168.254.250/24
|
||||
Gateway=192.168.254.254
|
||||
NTP=0.de.pool.ntp.org
|
||||
NTP=1.de.pool.ntp.org
|
||||
NTP=2.de.pool.ntp.org
|
||||
NTP=3.de.pool.ntp.org
|
||||
DNS=192.168.254.254
|
||||
DNSDefaultRoute=yes
|
||||
|
|
|
@ -10,4 +10,6 @@ IPForward=no
|
|||
DHCPServer=yes
|
||||
|
||||
[DHCPServer]
|
||||
EmitDNS=yes
|
||||
DNS=192.168.1.1
|
||||
SendOption=114:string:http://tuer.kraut.space/
|
||||
|
|
|
@ -9,3 +9,7 @@ server:
|
|||
zone:
|
||||
name: kraut.space
|
||||
zonefile: kraut.space
|
||||
|
||||
zone:
|
||||
name: .
|
||||
zonefile: captive-portals
|
||||
|
|
24
nsd/zones/captive-portals
Normal file
24
nsd/zones/captive-portals
Normal file
|
@ -0,0 +1,24 @@
|
|||
$ORIGIN . ; default zone domain
|
||||
$TTL 2 ; default time to live
|
||||
|
||||
@ IN SOA doorito.tuer.kraut.space. office.kraut.space. (
|
||||
2404182124 ; serial number <yymmddHHMM>
|
||||
60 ; Refresh
|
||||
7200 ; Retry
|
||||
60 ; Expire
|
||||
60 ; Min TTL
|
||||
)
|
||||
|
||||
IN NS doorito.tuer.kraut.space.
|
||||
|
||||
; Android
|
||||
connectivitycheck.gstatic.com. IN A 192.168.1.1
|
||||
clients3.google.com. IN A 192.168.1.1
|
||||
; Firefox
|
||||
detectportal.firefox.com. IN A 192.168.1.1
|
||||
; macOS / iOS
|
||||
captive.apple.com. IN A 192.168.1.1
|
||||
; Windows
|
||||
www.msftncsi.com. IN A 192.168.1.1
|
||||
www.msftconnecttest.com. IN A 192.168.1.1
|
||||
dns.msftncsi.com. IN A 192.168.1.1
|
Loading…
Reference in a new issue