Tailscale subnet 中的设备单独加入 tailnet 之后,该设备无法通过原局域网 IP 访问 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
OpenWrt 是一个专门面向嵌入式设备的 Linux 发行版。你可以将 OpenWrt 支持的型号的嵌入式设备,比如各种路由器上的系统,换成一个有更多可能性可以折腾的 Linux 系统。
OpenWrt 官方网站
lnbiuc
V2EX    OpenWrt

Tailscale subnet 中的设备单独加入 tailnet 之后,该设备无法通过原局域网 IP 访问

  •  
  •   lnbiuc 220 天前 1253 次点击
    这是一个创建于 220 天前的主题,其中的信息可能已经有所发展或是发生改变。

    配置

    A 设备 IP 为 10.115.15.1 ,安装 tailscale ,启用--advice-router=10.115.15.0/24

    B 设备 IP 为 10.115.15.25 ,安装 tailscale ,不启用--accept-router

    C 设备不在局域网 10.115.15.0/24 中,安装 tailscale ,启用--accept-router

    存在的问题:

    • 10.115.15.0/24 中的设备,可以通过 10.115.15.25 访问到 B 设备
    • C 设备,无法通过 10.115.15.25 访问,只能通过 100.0.0.0/8 访问

    如果 B 设备 IP 为 10.115.15.25 启用了--accept-router ,10.115.15.0/24 中的设备不能通过 10.115.15.25 访问

    需求

    不在 10.115.15.0/24 的设备,启用了--accept-router 的设备,可以通过 10.115.15.25 访问该设备

    HELP ! HELP ! HELP ! 请求大佬帮助

    补充信息

    自建了 Derper 并屏蔽了官方 Derper ,使用官方面板

    启用了 ACL ,但是我测试过,关闭 ACL 仍然与上述现象描述一致

    • A 、B 设备 ACL tag 为 home-server
    • C 设备 ACL tag 为 work-pc
    // Example/default ACLs for unrestricted connections. { // Declare static groups of users. Use autogroups for all users or users with a specific role. // "groups": { // "group:example": ["[email protected]", "[email protected]"], // }, // Define the tags which can be applied to devices and by which users. "tagOwners": { "tag:home-pc": ["autogroup:admin"], "tag:home-server": ["autogroup:admin"], "tag:work-pc": ["autogroup:admin"], "tag:game-server": ["autogroup:admin"], "tag:game-player": ["autogroup:admin"], "tag:relay-node": ["autogroup:admin"], "tag:out-user": ["autogroup:admin"], }, // Define access control lists for users, groups, autogroups, tags, // Tailscale IP addresses, and subnet ranges. "acls": [ // Allow all connections. // Comment this section out if you want to define specific restrictions. // {"action": "accept", "src": ["*"], "dst": ["*:*"]}, // 允许 out-user 之间全互联 { "action": "accept", "src": ["tag:out-user"], "dst": ["tag:out-user:*"], }, // 允许 out-user 和 game-server 互相访问 { "action": "accept", "src": ["tag:out-user"], "dst": ["tag:game-server:*"], }, { "action": "accept", "src": ["tag:game-server"], "dst": ["tag:out-user:*"], }, // 允许 home-pc 和 out-user 互相访问 { "action": "accept", "src": ["tag:home-pc"], "dst": ["tag:out-user:*"], }, { "action": "accept", "src": ["tag:out-user"], "dst": ["tag:home-pc:*"], }, // 允许其他 tag 之间全互联 { "action": "accept", "src": [ "tag:home-pc", "tag:home-server", "tag:work-pc", "tag:game-server", "tag:game-player", "tag:relay-node", ], "dst": ["*:*"], }, ], // Define users and devices that can use Tailscale SSH. "ssh": [ // Allow all users to SSH into their own devices in check mode. // Comment this section out if you want to define specific restrictions. { "action": "check", "src": ["autogroup:member"], "dst": ["autogroup:self"], "users": ["autogroup:nonroot", "root"], }, ], "derpMap": { // OmitDefaultRegions 用来忽略官方的中继节点 "OmitDefaultRegions": true, "Regions": { "905": { "RegionID": 905, "RegionCode": "cd", "RegionName": "", "Nodes": [ { "Name": "905", "RegionID": 905, "HostName": "", "DERPPort": , "STUNPort": , }, ], }, }, }, } 
    2 条回复    2025-05-12 10:24:02 +08:00
    lnbiuc
        1
    lnbiuc  
    OP
       220 天前
    自己回下自己,OpenWRT 防火墙开启 Lan => Tailscale 的 IP 动态伪装即可解决问题
    问题解决了,但是没明白原理,还是希望有大佬解答下
    ![image.png]( https://cdn.violet.vin/v2/DIJkbfr.png)
    关于     帮助文档     自助推广系统     博客     AI     FAQ     Solana     2659 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 24ms UTC 15:11 PVG 23:11 LAX 07:11 JFK 10:11
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86