Compare commits

...

3 commits

5 changed files with 41 additions and 0 deletions

View file

@ -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

View file

@ -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

View file

@ -10,4 +10,6 @@ IPForward=no
DHCPServer=yes
[DHCPServer]
EmitDNS=yes
DNS=192.168.1.1
SendOption=114:string:http://tuer.kraut.space/

View file

@ -9,3 +9,7 @@ server:
zone:
name: kraut.space
zonefile: kraut.space
zone:
name: .
zonefile: captive-portals

24
nsd/zones/captive-portals Normal file
View 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