Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #4 from MonolithProjects/feat/enable_forwarding
Browse files Browse the repository at this point in the history
feat: add forwarding and bump tailscale version
  • Loading branch information
MonolithProjects authored Nov 27, 2022
2 parents be27802 + ae2f4d5 commit dbb98a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tailscale-versions/tailscale-latest.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.32.2
v1.32.3
5 changes: 4 additions & 1 deletion tailscale.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ if [[ -n "${ADVERTISE_EXIT_NODE}" ]]; then
fi

if [[ -n "${ADVERTISE_ROUTES}" ]]; then
echo 'net.ipv4.ip_forward = 1' | tee -a /etc/sysctl.d/99-tailscale.conf
echo 'net.ipv6.conf.all.forwarding = 1' | tee -a /etc/sysctl.d/99-tailscale.conf
sysctl -p /etc/sysctl.d/99-tailscale.conf
echo $(date +"%Y/%m/%d %T") "Tailscale: ADVERTISE_ROUTES provided"
tailscale_cmd="${tailscale_cmd} --advertise-routes=${ADVERTISE_ROUTES}"
fi
Expand Down Expand Up @@ -88,4 +91,4 @@ if [[ -n "${SNAT_SUBNET_ROUTES}" ]]; then
fi

eval ${tailscale_cmd} 2>&1 &
tailscaled
tailscaled

0 comments on commit dbb98a8

Please sign in to comment.