Split router and home
This commit is contained in:
parent
23b2d587df
commit
265c659e3e
12 changed files with 10 additions and 5 deletions
|
@ -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
1
router/etc/hostname
Normal file
|
@ -0,0 +1 @@
|
|||
router.strypsteen.com
|
|
@ -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
|
|
@ -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
7
setup-router.sh
Normal 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
|
2
setup.sh
2
setup.sh
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue