找回密码
 立即注册
img_loading
智能检测中

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888广告投放联系QQ68610888
查看: 399|回复: 4

[N1盒子] 有没有用tailscale的老师

[复制链接]
发表于 2025-6-14 12:15 来自手机 | 显示全部楼层 |阅读模式
我装好了以后,用tailscale公共网段下的设备连不上,用tailscale分配的地址可以,这是哪里设置的问题。在tailscale后台已放行了自定义设置的路由段。路由
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
发表于 2025-6-15 12:12 来自手机 | 显示全部楼层
简单
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2025-6-19 09:08 | 显示全部楼层
在N1盒子上运行以下命令,强制启用直连模式并禁用DNS劫持:
  1. tailscale up --advertise-routes=192.168.1.0/24 --accept-dns=false --direct-p2p=true
复制代码

检查tailscale status输出,确认子网设备(如100.x.x.x)显示为“Direct”状态
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2025-6-19 11:35 | 显示全部楼层
iStoreOS 24.10.1, 2025060614
-------------------------------------------------------
root@iStoreOS:~# tailscale up --advertise-routes=192.168.5.0/24   --accept-dns=false --direct -p2p=true
flag provided but not defined: -direct
Connect to Tailscale, logging in if needed

USAGE
  tailscale up [flags]

"tailscale up" connects this machine to your Tailscale network,
triggering authentication if necessary.

With no flags, "tailscale up" brings the network online without
changing any settings. (That is, it's the opposite of "tailscale
down").

If flags are specified, the flags must be the complete set of desired
settings. An error is returned if any setting would be changed as a
result of an unspecified flag's default value, unless the --reset flag
is also used. (The flags --auth-key, --force-reauth, and --qr are not
considered settings that need to be re-specified when modifying
settings.)

FLAGS
  --accept-dns, --accept-dns=false
        accept DNS configuration from the admin panel (default true)
  --accept-risk string
        accept risk and skip confirmation for risk types: lose-ssh,mac-app-connector,all
  --accept-routes, --accept-routes=false
        accept routes advertised by other Tailscale nodes (default false)
  --advertise-connector, --advertise-connector=false
        advertise this node as an app connector (default false)
  --advertise-exit-node, --advertise-exit-node=false
        offer to be an exit node for internet traffic for the tailnet (default false)
  --advertise-routes string
        routes to advertise to other nodes (comma-separated, e.g. "10.0.0.0/8,192.168.0.0/24") or empty string to not advertise routes
  --advertise-tags string
        comma-separated ACL tags to request; each must start with "tag:" (e.g. "tag:eng,tag:montreal,tag:ssh")
  --auth-key string
        node authorization key; if it begins with "file:", then it's a path to a file containing the authkey
  --exit-node string
        Tailscale exit node (IP or base name) for internet traffic, or empty string to not use an exit node
  --exit-node-allow-lan-access, --exit-node-allow-lan-access=false
        Allow direct access to the local network when routing traffic via an exit node (default false)
  --force-reauth, --force-reauth=false
        force reauthentication (WARNING: this will bring down the Tailscale connection and thus should not be done remotely over SSH or RDP) (default false)
  --hostname string
        hostname to use instead of the one provided by the OS
  --json, --json=false
        output in JSON format (WARNING: format subject to change) (default false)
  --login-server string
        base URL of control server (default https://controlplane.tailscale.com)
  --netfilter-mode string
        netfilter mode (one of on, nodivert, off) (default on)
  --operator string
        Unix username to allow to operate on tailscaled without sudo
  --qr, --qr=false
        show QR code for login URLs (default false)
  --reset, --reset=false
        reset unspecified settings to their default values (default false)
  --shields-up, --shields-up=false
        don't allow incoming connections (default false)
  --snat-subnet-routes, --snat-subnet-routes=false
        source NAT traffic to local routes advertised with --advertise-routes (default true)
  --ssh, --ssh=false
        run an SSH server, permitting access per tailnet admin's declared policy (default false)
  --stateful-filtering, --stateful-filtering=false
        apply stateful filtering to forwarded packets (subnet routers, exit nodes, etc.) (default false)
  --timeout duration
        maximum amount of time to wait for tailscaled to enter a Running state; default (0s) blocks forever (default 0s)
报这个错。
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2025-6-19 11:36 | 显示全部楼层

root@iStoreOS:~# tailscale status
100.127.120.108 istore-5-18          sea@         linux   -
100.102.165.60  debian               sea@         linux   offline
100.68.44.116   istoreos             sea@         linux   active; direct [2408:8226:275:97a1:be24:11ff:fe83:81c8]:41641, tx 816 rx 1232
100.85.129.26   oneplus-pgp110       sea@         android offline
100.82.40.17    xiaomi-2210132c      sea@         android offline
root@iStoreOS:~#


只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛

只谈技术、莫论政事!切勿转播谣言!为了你也为了他人。
只谈技术、莫论政事!(点击见详情) 切记不要随意传播谣言,把自己的日子过安稳了就行,为了自己好也为了大家好。 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。

查看 »

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2025-6-30 02:34

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com

快速回复 返回顶部 返回列表