xuanhf 发表于 2025-6-14 12:15

有没有用tailscale的老师

我装好了以后,用tailscale公共网段下的设备连不上,用tailscale分配的地址可以,这是哪里设置的问题。在tailscale后台已放行了自定义设置的路由段。路由

mzk44j 发表于 2025-6-15 12:12

简单

Kenichirō 发表于 2025-6-19 09:08

在N1盒子上运行以下命令,强制启用直连模式并禁用DNS劫持:
tailscale up --advertise-routes=192.168.1.0/24 --accept-dns=false --direct-p2p=true
检查tailscale status输出,确认子网设备(如100.x.x.x)显示为“Direct”状态

xuanhf 发表于 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

"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)
报这个错。

xuanhf 发表于 2025-6-19 11:36


root@iStoreOS:~# tailscale status
100.127.120.108 istore-5-18          sea@         linux   -
100.102.165.60debian               sea@         linux   offline
100.68.44.116   istoreos             sea@         linux   active; direct :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:~#


页: [1]
查看完整版本: 有没有用tailscale的老师