-
Trailscale - exit node 설정 with linux portainer(docker)smart home 2025. 4. 13. 15:59
Exit nodes (route all traffic) · Tailscale Docs
Exit nodes (route all traffic) · Tailscale Docs
Learn how to route all internet traffic through a specific device on your network.
tailscale.com
1. Linux 장치를 exit note 로 advertise하려면 IP forwarding을 활성화
IP forwarding을 활성화 방법 ▼
더보기Linux 시스템에 '/etc/sysctl.d' 디렉토리가 있는 경우 다음을 사용하세요.
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
그렇지 않은 경우:
echo 'net.ipv4.ip_forward = 1' | sudo tee -a /etc/sysctl.conf echo 'net.ipv6.conf.all.forwarding = 1' | sudo tee -a /etc/sysctl.conf sudo sysctl -p /etc/sysctl.conf
2-1. exit note 로 사용하려는 장치에서 tailscale set or tailscale up 을 실행할 때 --advertise-exit-node 플래그를 사용
sudo tailscale up --advertise-exit-node
sudo tailscale set --advertise-exit-node sudo tailscale up
2-2. portainer 에서 --advertise-exit-node 플래그 설정
portainer 에서 Duplicate/Edit Advanced container settings > Env > TS_EXTRA_ARGS 에 --advertise-exit-node 추가 3. Tailscale admin consol 접속
https://login.tailscale.com/admin/machines
Tailscale
login.tailscale.com
대상 기기의 Edit route setting의 Exit node 사용 check.
Edit route settings... check Use as exit note and Save 'smart home' 카테고리의 다른 글
Proxmox - haos Zigbee USB 설정 (0) 2025.04.13 Proxmox 8.4.1 에서 HA OS script 설치 (0) 2025.04.13 Airconnect 설치 (with docker) (0) 2024.01.27 Proxmox script를 이용한 HA 설치 (0) 2024.01.20 일정에 맞춰 Proxmox VM 시작/종료 (2) 2024.01.10