Skip to content
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

Investigate split DNS for a fast path at home #405

Open
4 tasks
ahayzen opened this issue Sep 10, 2024 · 1 comment
Open
4 tasks

Investigate split DNS for a fast path at home #405

ahayzen opened this issue Sep 10, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@ahayzen
Copy link
Owner

ahayzen commented Sep 10, 2024

Client -> Internet -> DNS (external) -> VPS -> NAS -> Service

Client -> DNS (local) -> NAS -> Service

This would likely require

  • Caddy on NAS handling services via https
  • Change rathole to have only the https port forwarded
  • Caddy on VPS to proxy all to single rathole port
  • Setup a DNS server on the LAN which forwards domain to lab.local and anything else to upstream DNS

If split DNS is not used consider how services could use https in more places (between lab -> vps).

@ahayzen ahayzen added the enhancement New feature or request label Sep 10, 2024
@ahayzen
Copy link
Owner Author

ahayzen commented Oct 19, 2024

Another route is NAT hairpin as DNS over HTTPS means we can't intercept.

Web has a sub domain with IP address as home via dynamic DNS or static IP
Caddy also runs on the home lab
Router then does NAT hairpin so if address is itself it forwards straight onto the internal network.

This is a normal NAT route, downside is you expose your IP in the domain which could then be DDoS'd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant