Skip to content

Allow for TS_ADVERTISE_ROUTES with --advertise-exit-node#4

Open
rettoph wants to merge 1 commit intorinkp:masterfrom
rettoph:master
Open

Allow for TS_ADVERTISE_ROUTES with --advertise-exit-node#4
rettoph wants to merge 1 commit intorinkp:masterfrom
rettoph:master

Conversation

@rettoph
Copy link

@rettoph rettoph commented Mar 25, 2026

My use case called for --advertise-routes="192.168.0.0/24" --advertise-exit-node with the end goal of exposing the exit node's LAN to peers and routing outbound traffic through my third party VPN.

The original script here makes that a bit difficult. My "fix" is a hack in and of itself, but i thought it worth creating this PR to highlight my use case if nothing else.

The change allows for the following:

TS_ADVERTISE_ROUTES=192.168.0.0/24,0.0.0.0/0

updatestat.sh will detect then strip any references to 0.0.0.0/0 and ::/0 from the value of TS_ADVERTISE_ROUTES, use the stripped value for --advertise-routes and set --advertise-exit-node. Works so far on my end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant