CONFIGURAR TAILSCALE COMO NODO DE SALIDA VPN Y SERVICIOS DE RED
Enable IP forwarding
When enabling IP forwarding, ensure your firewall denies traffic forwarding by default. This is the default setting for standard firewalls like ufw
and firewalld
. Blocking traffic forwarding by default prevents unintended routing of traffic.
IP forwarding is required to use a Linux device as a subnet router. The process for enabling IP forwarding varies between Linux distributions. However, the following instructions work in most cases.
If your Linux system has a /etc/sysctl.d
directory, use:
COPIA Y PEGA ESO EN UNA TERMINAL
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
Advertise subnet routesAfter you enable IP forwarding, run
tailscale up
with the --advertise-routes
flag. It accepts a comma-separated list of subnet routes.COPIA Y PEGA ESTO
sudo tailscale up --advertise-routes=192.168.1.0/24
Y CON ESTO YA QUEDA COMO NODO DE SALIDA
sudo tailscale set --advertise-exit-node
sudo tailscale up
https://tailscale.com/kb/1067/update?tab=linux
Comentarios
Publicar un comentario