Split router and home

This commit is contained in:
Mathieu Strypsteen 2023-12-17 11:18:54 +01:00
parent 23b2d587df
commit 265c659e3e
Signed by: mathieu
GPG key ID: 782A42E461BC6824
12 changed files with 10 additions and 5 deletions

View file

@ -1,6 +1,5 @@
[Resolve]
DNS=2620:fe::10#dns10.quad9.net 9.9.9.10#dns10.quad9.net
FallbackDNS=
LLMNR=false
DNSSEC=true
DNSOverTLS=true

1
router/etc/hostname Normal file
View file

@ -0,0 +1 @@
router.strypsteen.com

View file

@ -3,7 +3,6 @@ DNS=2620:fe::10#dns10.quad9.net 9.9.9.10#dns10.quad9.net
FallbackDNS=
DNSSEC=true
DNSOverTLS=true
LLMNR=false
DNSStubListenerExtra=192.168.255.1
DNSStubListenerExtra=192.168.254.1
DNSStubListenerExtra=192.168.253.1

View file

@ -2,7 +2,4 @@
set -e
cp -R home/* /
sh setup-server.sh
rpm-ostree install --idempotent hostapd systemd-networkd wireless-regdb
systemctl enable --now nftables systemd-networkd
systemctl disable --now NetworkManager
systemd-tmpfiles --create

7
setup-router.sh Normal file
View file

@ -0,0 +1,7 @@
#!/bin/sh
set -e
cp -R home/* /
sh setup-server.sh
rpm-ostree install --idempotent hostapd systemd-networkd wireless-regdb
systemctl enable --now nftables systemd-networkd
systemctl disable --now NetworkManager

View file

@ -18,6 +18,8 @@ if [ -f /usr/share/qubes/marker-vm ]; then
elif [ -d /usr/lib/coreos ]; then
if systemd-detect-virt; then
sh setup-vps.sh
elif [ -f /usr/bin/networkctl ]; then
sh setup-router.sh
else
sh setup-home.sh
fi