Hosts
This commit is contained in:
parent
e0f087d0a4
commit
dc5536fd5f
2 changed files with 7 additions and 0 deletions
|
@ -12,3 +12,4 @@ ff02::2 ip6-allrouters
|
||||||
10.0.0.5 video.lyte.dev
|
10.0.0.5 video.lyte.dev
|
||||||
10.0.0.5 files.lyte.dev
|
10.0.0.5 files.lyte.dev
|
||||||
10.0.0.5 bw.lyte.dev
|
10.0.0.5 bw.lyte.dev
|
||||||
|
10.0.0.9 vpn.h.lyte.dev
|
||||||
|
|
6
makefile
6
makefile
|
@ -12,13 +12,16 @@ mkinitcpio:
|
||||||
|
|
||||||
.PHONY: system-dependencies
|
.PHONY: system-dependencies
|
||||||
system-dependencies:
|
system-dependencies:
|
||||||
|
echo "Updating system..."
|
||||||
pacman -Sy --needed archlinux-keyring # get latest keys
|
pacman -Sy --needed archlinux-keyring # get latest keys
|
||||||
pacman -Syu # update everything
|
pacman -Syu # update everything
|
||||||
pacman -S --needed dnsmasq nftables fail2ban radvd git dhcpcd wireguard-tools # install anything needed
|
pacman -S --needed dnsmasq nftables fail2ban radvd git dhcpcd wireguard-tools # install anything needed
|
||||||
|
echo "Done updating system!"
|
||||||
echo "The system has updated. This usually means the kernel updated, so tailscale needs you to reboot."
|
echo "The system has updated. This usually means the kernel updated, so tailscale needs you to reboot."
|
||||||
|
|
||||||
.PHONY: restart-services
|
.PHONY: restart-services
|
||||||
restart-services:
|
restart-services:
|
||||||
|
echo "Restarting services..."
|
||||||
systemctl restart nftables
|
systemctl restart nftables
|
||||||
systemctl restart systemd-sysctl
|
systemctl restart systemd-sysctl
|
||||||
systemctl restart systemd-networkd
|
systemctl restart systemd-networkd
|
||||||
|
@ -26,9 +29,11 @@ restart-services:
|
||||||
# systemctl restart systemd-resolved # this seems to conflict with dnsmasq - not sure we need it?
|
# systemctl restart systemd-resolved # this seems to conflict with dnsmasq - not sure we need it?
|
||||||
systemctl restart dhcpcd@lan0
|
systemctl restart dhcpcd@lan0
|
||||||
systemctl restart dhcpcd@wan0
|
systemctl restart dhcpcd@wan0
|
||||||
|
echo "Services restarted!"
|
||||||
|
|
||||||
.PHONY: enable-and-start-services
|
.PHONY: enable-and-start-services
|
||||||
enable-and-start-services:
|
enable-and-start-services:
|
||||||
|
echo "Enabling and starting services..."
|
||||||
systemctl enable --now nftables
|
systemctl enable --now nftables
|
||||||
systemctl enable --now systemd-sysctl
|
systemctl enable --now systemd-sysctl
|
||||||
systemctl enable --now systemd-networkd
|
systemctl enable --now systemd-networkd
|
||||||
|
@ -36,6 +41,7 @@ enable-and-start-services:
|
||||||
# systemctl enable --now systemd-resolved # this seems to conflict with dnsmasq - not sure we need it?
|
# systemctl enable --now systemd-resolved # this seems to conflict with dnsmasq - not sure we need it?
|
||||||
systemctl enable --now dhcpcd@lan0
|
systemctl enable --now dhcpcd@lan0
|
||||||
systemctl enable --now dhcpcd@wan0
|
systemctl enable --now dhcpcd@wan0
|
||||||
|
echo "Services enabled and restarted!"
|
||||||
|
|
||||||
.PHONY: copy-configuration-files
|
.PHONY: copy-configuration-files
|
||||||
copy-configuration-files: /etc/dnsmasq.conf /etc/systemd/resolved.conf /etc/sysctl.d/10-router-configs.conf /etc/systemd/network/10-lan0.link /etc/systemd/network/10-wan0.link /etc/dhcpcd.conf /etc/hosts
|
copy-configuration-files: /etc/dnsmasq.conf /etc/systemd/resolved.conf /etc/sysctl.d/10-router-configs.conf /etc/systemd/network/10-lan0.link /etc/systemd/network/10-wan0.link /etc/dhcpcd.conf /etc/hosts
|
||||||
|
|
Loading…
Reference in a new issue