{"id":27185261,"url":"https://github.com/clr1107/tnetmgr","last_synced_at":"2026-04-29T17:05:38.716Z","repository":{"id":230936263,"uuid":"780426213","full_name":"clr1107/tnetmgr","owner":"clr1107","description":"Tailscale network manager for Linux","archived":false,"fork":false,"pushed_at":"2024-06-19T12:13:26.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T17:14:42.429Z","etag":null,"topics":["go","iptables","netlink","tailscale"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clr1107.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-01T13:08:14.000Z","updated_at":"2024-06-19T12:13:30.000Z","dependencies_parsed_at":"2024-04-01T17:44:37.318Z","dependency_job_id":"773326e1-bb81-464e-8ba9-d6ca72bce2a7","html_url":"https://github.com/clr1107/tnetmgr","commit_stats":null,"previous_names":["clr1107/tnetmgr"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/clr1107/tnetmgr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clr1107%2Ftnetmgr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clr1107%2Ftnetmgr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clr1107%2Ftnetmgr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clr1107%2Ftnetmgr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clr1107","download_url":"https://codeload.github.com/clr1107/tnetmgr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clr1107%2Ftnetmgr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32435125,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T13:34:34.882Z","status":"ssl_error","status_checked_at":"2026-04-29T13:34:29.830Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","iptables","netlink","tailscale"],"created_at":"2025-04-09T17:14:40.502Z","updated_at":"2026-04-29T17:05:38.700Z","avatar_url":"https://github.com/clr1107.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tnetmgr\n\nA tailscale interface manager. This daemon listens for a Tailscale interface to come up (not the link itself, but for an address in `100.64.0.0/10`) and will add other IP addresses as well as execute arbitrary commands.\n\n## Use case\n\nIt's a bit of a bastardisation of how Tailscale would like people to use the product, in my opinion, but it has its usecases. I use it to add an extra address to the tailscale0 interface, so that I can use that address when it is used as a subnet router. I also use it to control the tailscale0 interface with iptables. My example configuration is below.\n\n```yaml\nIface: tailscale0\nAddrs:\n  - 172.24.24.1/32\nExecUp:\n  - iptables -D ts-input -i tailscale0 -j ACCEPT\n  - iptables -N ts-fw\n  - iptables -A ts-input -i tailscale0 -j ts-fw\n  - iptables -t nat -A POSTROUTING -s 100.64.0.0/10 -o eth0 -j MASQUERADE\nExecDown:\n  - iptables -D ts-input -i tailscale0 -j ts-fw\n  - iptables -t nat -D postrouting -s 100.64.0.0/10 -o eth0 -j MASQUERADE\n```\n\nThis configuration adds the address `172.24.24.1/32` to the interface tailscale0 whenever it is connected to Tailscale. I can then use this, for example, with the `--advertise-routes` option. The last command allows this node to be an exit node on the external interface `eth0`.\n\nThe iptables commands in ExecUp remove the default accept all rule added by Tailscale every time the interface comes up and replaces it with a new table, called `ts-fw`. This can then be configured. E.g.,\n\n```bash\n-I ts-fw -i tailscale0 -p tcp --dport 22 -j ACCEPT\n-A ts-fw -i tailscale0 -j DROP\n```\n\nThis will allow me to connect to SSH via Tailscale and drop all other connections. I use this to allow SSH only from Tailscale.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclr1107%2Ftnetmgr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclr1107%2Ftnetmgr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclr1107%2Ftnetmgr/lists"}