Add tailscale
This commit is contained in:
parent
c3378a3cbd
commit
029103c8d1
3 changed files with 10 additions and 2 deletions
8
makefile
8
makefile
|
@ -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
|
||||||
|
|
|
@ -106,4 +106,4 @@ table ip nat {
|
||||||
# type filter hook forward priority 0; policy accept;
|
# type filter hook forward priority 0; policy accept;
|
||||||
# }
|
# }
|
||||||
# }
|
# }
|
||||||
#
|
#
|
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue