V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
tomclancy
V2EX  ›  问与答

关于 Tailscale 的提问

  •  
  •   tomclancy · Dec 5, 2024 · 2459 views
    This topic created in 508 days ago, the information mentioned may be changed or developed.
    最近捣鼓 tailscale ,这几天捣鼓了很久没有成功
    家里的电脑 192 网段公司的电脑 10 网段,公司有个网站 10.169 打头,两边都没有路由器配置 tailscale
    想让家里的电脑直接通过公司的电脑做流量转发,浏览器敲上这个 10.169 的 url 直接访问公司网站
    小公司,基本不会管
    再就是想设置一下是能不能通过家里的电脑实现流量出国?家里的电脑装了 mihomo party ?
    再或者其他的简单方法也行
    6 replies    2025-01-08 00:03:15 +08:00
    totoro625
        1
    totoro625  
       Dec 5, 2024   ❤️ 1
    家里:tailscale up --accept-routes --advertise-routes=192.*.*.0/24 --advertise-exit-node
    公司:tailscale up --accept-routes --advertise-routes=10.169.*.0/24 --advertise-exit-node
    mritd
        2
    mritd  
       Dec 5, 2024 via iPhone   ❤️ 1
    接 1 楼,用官方的控制服务器记得控制台把每个节点发布的路由勾选应用一下
    cutiechi
        3
    cutiechi  
       Dec 5, 2024   ❤️ 1
    或者:



    然后再 mihomo party 里配个 http 或者 socks5 proxy ,10.169.0.0 的走你这个代理
    tomclancy
        4
    tomclancy  
    OP
       Dec 5, 2024
    @totoro625 #1 坏了,试了一下都提示报错了
    PS C:\Users\Tom Clancy> tailscale up --accept-routes --advertise-routes=10.169.*.0/24 --advertise-exit-node
    "10.169.*.0/24" is not a valid IP address or CIDR prefix
    PS C:\Users\Tom Clancy> tailscale up --accept-routes --advertise-routes=10.169.0.0/16 --advertise-exit-node
    Error: changing settings via 'tailscale up' requires mentioning all
    non-default flags. To proceed, either re-run your command with --reset or
    use the command below to explicitly mention the current value of
    all non-default settings:

    tailscale up --accept-routes --advertise-exit-node --advertise-routes=10.169.0.0/16 --unattended


    问一下是哪里有问题?再就是我公司的 IP v4 没有 192 这种 C 类地址
    totoro625
        5
    totoro625  
       Dec 5, 2024
    @tomclancy #4 我敲*号是让你根据自己的网络环境修改的,不是让你直接复制粘贴用的
    tomclancy
        6
    tomclancy  
    OP
       Jan 8, 2025
    @totoro625 #5 感谢老铁,成功了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   944 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 21:48 · PVG 05:48 · LAX 14:48 · JFK 17:48
    ♥ Do have faith in what you're doing.