-
Notifications
You must be signed in to change notification settings - Fork 129
Refactor MagicDNS support to properly handle appconnectors and exit nodes #667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
lmagyar
wants to merge
24
commits into
hassio-addons:main
Choose a base branch
from
lmagyar:pr-fix-proxies
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
d7a5c9e
Move MagicDNS egress proxy to non-default port
lmagyar 9f40826
Move egress proxy setup script into separate file like ingress proxy
lmagyar e304660
Move MagicDNS ingress proxy to non-default port
lmagyar 9dcf4f3
replace bind-dynamic with bind-interfaces for egress proxy
lmagyar 66f54fb
use different ports for the proxies
lmagyar 989caa9
tailscaled waits for the egress proxy
lmagyar 155244f
comment on bind-dynamic vs bind-interfaces
lmagyar 367b9a9
Fix magicdns for appconnectors
lmagyar f79be40
fix shellcheck errors
lmagyar 96d786e
minor fixes, thanks bunny
lmagyar 6936b26
halp app on dns reconfig failure
lmagyar 81871d4
use plain exit.nok
lmagyar d15f1bc
test file content also, thanks bunny
lmagyar 6118310
don't poll for dns config changes, use ipn bus events
lmagyar c240649
add log line
lmagyar afb8cf3
Advance previous_ipn_dns_config only after a successful probe.
lmagyar 1d26902
use both login and both log server domains
lmagyar 3efddfd
fix jq errors on non-DNS netmaps
lmagyar 85cefa0
Graceful shutdown on SIGTERM caused by manual app stop
lmagyar a65f402
use bashio::trace
lmagyar f741caf
use bashio::try
lmagyar 103374a
use bashio::fs.file_non_empty
lmagyar 0659a7b
remove deprecated TS flags
lmagyar 1c11291
use Notify.SelfChange signal as trigger for MagicDNS reconfiguration
lmagyar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
tailscale/rootfs/etc/s6-overlay/s6-rc.d/init-magicdns-ingress-proxy/down
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
tailscale/rootfs/etc/s6-overlay/s6-rc.d/init-magicdns-ingress-proxy/up
This file was deleted.
Oops, something went wrong.
55 changes: 0 additions & 55 deletions
55
tailscale/rootfs/etc/s6-overlay/s6-rc.d/init-magicdns-proxies-upstream-list/run
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
tailscale/rootfs/etc/s6-overlay/s6-rc.d/init-magicdns-proxies-upstream-list/up
This file was deleted.
Oops, something went wrong.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
tailscale/rootfs/etc/s6-overlay/s6-rc.d/init-magicdns-proxies/down
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| /etc/s6-overlay/s6-rc.d/init-magicdns-proxies/finish |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
1 change: 1 addition & 0 deletions
1
tailscale/rootfs/etc/s6-overlay/s6-rc.d/init-magicdns-proxies/up
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| /etc/s6-overlay/s6-rc.d/init-magicdns-proxies/run |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
File renamed without changes.
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
13 changes: 13 additions & 0 deletions
13
tailscale/rootfs/etc/s6-overlay/s6-rc.d/magicdns-proxies-configurator/run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| #!/command/with-contenv bashio | ||
| # shellcheck shell=bash | ||
| export LOG_FD | ||
| # ============================================================================== | ||
| # Home Assistant Community App: Tailscale | ||
| # Runs the dnsmasq proxies black/white list initialization | ||
| # ============================================================================== | ||
|
|
||
| configure-magicdns-proxies | ||
|
|
||
| # Restart the egress proxy, the configuration is changed | ||
| bashio::log.info "MagicDNS proxy configuration has changed, restarting MagicDNS egress proxy..." | ||
| s6-svc -ruwR /run/service/magicdns-egress-proxy |
File renamed without changes.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.