出差的时候想让家里的 Ubuntu 主机转发所有流量
试了一下两种 tailscale 的使用方式,1 是直接 apt 安装, 2 是 docker 运行
docker run -d --name=tailscaled --restart=always -v /var/lib:/var/lib -v /dev/net/tun:/dev/net/tun --network=host --privileged tailscale/tailscale tailscaled
实验了几次, 都通过文档给的命令
https://tailscale.com/kb/1103/exit-nodes/?tab=linux#configuring-an-exit-node
分别执行了
echo 'net.ipv4.ip_forward = 1' | tee -a /etc/sysctl.conf
echo 'net.ipv6.conf.all.forwarding = 1' | tee -a /etc/sysctl.conf
sysctl -p /etc/sysctl.conf
tailscale up --advertise-exit-node
网页管理里也打开了 Use as exit node 选项
然后手机端用 4G 打开 exit mode 连接, 选上 allow local access
结果只有通过 apt 安装才有用, docker 运行的不能代理所有流量, 是哪里设置有问题呢?
还有就是为啥要选上 allow local access 才行?
试了一下两种 tailscale 的使用方式,1 是直接 apt 安装, 2 是 docker 运行
docker run -d --name=tailscaled --restart=always -v /var/lib:/var/lib -v /dev/net/tun:/dev/net/tun --network=host --privileged tailscale/tailscale tailscaled
实验了几次, 都通过文档给的命令
https://tailscale.com/kb/1103/exit-nodes/?tab=linux#configuring-an-exit-node
分别执行了
echo 'net.ipv4.ip_forward = 1' | tee -a /etc/sysctl.conf
echo 'net.ipv6.conf.all.forwarding = 1' | tee -a /etc/sysctl.conf
sysctl -p /etc/sysctl.conf
tailscale up --advertise-exit-node
网页管理里也打开了 Use as exit node 选项
然后手机端用 4G 打开 exit mode 连接, 选上 allow local access
结果只有通过 apt 安装才有用, docker 运行的不能代理所有流量, 是哪里设置有问题呢?
还有就是为啥要选上 allow local access 才行?