Skip to content

rgarrigue/headscale-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Headscale Server

Headscale plus Headplane (UI) deployed via docker compose.

cp .env_sample .env
vim .env
vim config/config.yaml
docker compose up

To work like a classic VPN, as in "clients connect to this server & they can reach Internet from it", also install tailscale client itself locally

curl -fsSL https://tailscale.com/install.sh | sh

echo 'net.ipv4.ip_forward = 1' | sudo tee -a /etc/sysctl.d/99-tailscale.conf
echo 'net.ipv6.conf.all.forwarding = 1' | sudo tee -a /etc/sysctl.d/99-tailscale.conf
sudo sysctl -p /etc/sysctl.d/99-tailscale.conf

tailscale up --reset --advertise-exit-node=true --login-server=https://vpn.company.cloud

To allow reaching the local network, or even any private network this server can reach, advertise it

tailscale up --reset --advertise-routes=10.3.0.0/16 --login-server=https://vpn.company.cloud

docker compose exec headscale headscale routes list
docker compose exec headscale headscale routes enable -r 3

About

Headscale & Headplane based VPN server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published