Add tailscale

This commit is contained in:
Daniel Flanagan 2023-07-18 05:05:44 +00:00
parent c3378a3cbd
commit 029103c8d1
3 changed files with 10 additions and 2 deletions

View file

@ -6,6 +6,10 @@ default: copy-configuration-files restart-services
.PHONY: setup .PHONY: setup
setup: system-dependencies /root/router.wg-pub enable-and-start-services mkinitcpio setup: system-dependencies /root/router.wg-pub enable-and-start-services mkinitcpio
.PHONY: firewall-edit
firewall-edit:
./firewall-edit.bash
.PHONY: mkinitcpio .PHONY: mkinitcpio
mkinitcpio: mkinitcpio:
mkinitcpio -p linux mkinitcpio -p linux
@ -15,7 +19,7 @@ system-dependencies:
echo "Updating system..." 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 tailscale # install anything needed
echo "Done updating system!" 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."
@ -29,6 +33,7 @@ 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
# ksystemctl restart tailscaled # is this necessary since no config lies in this repo?
echo "Services restarted!" echo "Services restarted!"
.PHONY: enable-and-start-services .PHONY: enable-and-start-services
@ -41,6 +46,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
# systemctl enable --now tailscaled # is this necessary since no config lies in this repo?
echo "Services enabled and restarted!" echo "Services enabled and restarted!"
.PHONY: copy-configuration-files .PHONY: copy-configuration-files

View file

@ -6,6 +6,7 @@ My little dual-NIC Arch Linux router configuration and scripts.
```bash ```bash
make setup make setup
# setup tailscale if you like
reboot reboot
``` ```
@ -24,6 +25,7 @@ Should be done regularly for security reasons.
```bash ```bash
make setup make setup
# configure tailscale as needed
reboot reboot
``` ```