mirror of
https://github.com/tailscale/tailscale.git
synced 2025-01-05 23:07:44 +00:00
containerboot: Add TS_ACCEPT_ROUTES (#10176)
Fixes tailscale/corp#15596 Signed-off-by: Claire Wang <claire@tailscale.com>
This commit is contained in:
parent
128d3ad1a9
commit
afacf2e368
@ -13,7 +13,7 @@
|
||||
//
|
||||
// - TS_AUTHKEY: the authkey to use for login.
|
||||
// - TS_HOSTNAME: the hostname to request for the node.
|
||||
// - TS_ROUTES: subnet routes to advertise.
|
||||
// - TS_ROUTES: subnet routes to advertise. To accept routes, use TS_EXTRA_ARGS to pass in --accept-routes.
|
||||
// - TS_DEST_IP: proxy all incoming Tailscale traffic to the given
|
||||
// destination.
|
||||
// - TS_TAILNET_TARGET_IP: proxy all incoming non-Tailscale traffic to the given
|
||||
|
@ -575,6 +575,22 @@ type phase struct {
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "extra_args_accept_routes",
|
||||
Env: map[string]string{
|
||||
"TS_EXTRA_ARGS": "--accept-routes",
|
||||
},
|
||||
Phases: []phase{
|
||||
{
|
||||
WantCmds: []string{
|
||||
"/usr/bin/tailscaled --socket=/tmp/tailscaled.sock --state=mem: --statedir=/tmp --tun=userspace-networking",
|
||||
"/usr/bin/tailscale --socket=/tmp/tailscaled.sock up --accept-dns=false --accept-routes",
|
||||
},
|
||||
}, {
|
||||
Notify: runningNotify,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "hostname",
|
||||
Env: map[string]string{
|
||||
|
Loading…
x
Reference in New Issue
Block a user