> ## Content Index
> Fetch the complete content index at: https://www.sakashita.page/llms.txt
> Use this file to discover other available public pages before exploring further.

# TailscaleのSubnet Routesを消す
- URL: https://www.sakashita.page/tailscale-remove-subnet-routes/
- Published: 2026-01-09T09:00:40.000Z
- Updated: 2026-01-09T09:00:39.000Z
- Author: Sakashita Yasunobu
- Tags: 技術

SynologyのNASにTailscaleを導入し、便利に使っている。

TailscaleにはSubnet routersという機能がある。

これは、Tailscaleネットワークに接続されたデバイスが、そのデバイスが接続されているローカルネットワーク(サブネット)全体へのアクセスを他のTailscaleデバイスに提供できる機能だ。つまり、Subnet routerとして設定されたデバイスを経由することで、Tailscaleネットワーク上の他のデバイスから、そのローカルネットワーク内の機器にアクセスできるようになる。

[Subnet routers · Tailscale DocsUse subnet routers to give devices outside your local network access to services within specific subnets. Extend your private network with Tailscale.![](https://storage.ghost.io/c/94/1f/941f9972-ad5c-4231-a438-ca329c85433f/content/images/icon/favicon-9.svg)Tailscale![](https://storage.ghost.io/c/94/1f/941f9972-ad5c-4231-a438-ca329c85433f/content/images/thumbnail/og-image-2.png)](https://tailscale.com/kb/1019/subnets)

便利そうだなと思って設定をしてみたものの、結局使うことがなかった。

公式ドキュメントには、サブネットを追加する方法はあったものの、削除する方法がなかったので困った。

何せ、コマンドを削除して再起動してもファイルに設定が書き込まれているのか、設定が保持されたままだ。

> [How to remove a Subnet](https://www.reddit.com/r/Tailscale/comments/16d880v/how%5Fto%5Fremove%5Fa%5Fsubnet/)  
> by [u/RepresentativeCry827](https://www.reddit.com/user/RepresentativeCry827/) in [Tailscale](https://www.reddit.com/r/Tailscale/) 

単純なことだった。

```bash
sudo tailscale set --advertise-routes=
sudo tailscale up

```

要するに、 `—adversise-routes=` がカンマ区切りで表記されるので空にすればいいだけ。

タスクスケジューラでこのコマンドを一度実行したら無事解決。