adding exit node support
This commit is contained in:
16
README.md
16
README.md
@@ -1,5 +1,11 @@
|
|||||||
# local-dns-docker
|
# local-dns-docker
|
||||||
|
|
||||||
|
When I started this I had a tailscale server that wasn't able to resolve .local addresses.
|
||||||
|
I since changed to .internal with the adguard dns doing rewrites and sending it all back to galaxy (192.168.1.16).
|
||||||
|
If you want ot send somewhere else you need to deal with adguard rewrites.
|
||||||
|
Long story short, I probably don't need this split dns server anymore since I will be using .internal.
|
||||||
|
|
||||||
|
|
||||||
https://www.reddit.com/r/Tailscale/comments/1dql8a6/use_the_same_domain_name_on_home_network_and_on/
|
https://www.reddit.com/r/Tailscale/comments/1dql8a6/use_the_same_domain_name_on_home_network_and_on/
|
||||||
|
|
||||||
What everybody has already said, but also use the tailnet IP of your DNS server as a global nameserver. I'll post my working steps:
|
What everybody has already said, but also use the tailnet IP of your DNS server as a global nameserver. I'll post my working steps:
|
||||||
@@ -24,3 +30,13 @@ sudo tailscale up --accept-dns=false --advertise-routes=192.168.x.x/x
|
|||||||
https://tailscale.com/kb/1019/subnets?tab=linux#connect-to-tailscale-as-a-subnet-router
|
https://tailscale.com/kb/1019/subnets?tab=linux#connect-to-tailscale-as-a-subnet-router
|
||||||
|
|
||||||
There is also a procedure to initially register the device with Tailscale server before this whole thing can work. Maybe I will document later. Not necessary as long as using the credentials in /DATA/AppData/tailscale/ so don't delete them.
|
There is also a procedure to initially register the device with Tailscale server before this whole thing can work. Maybe I will document later. Not necessary as long as using the credentials in /DATA/AppData/tailscale/ so don't delete them.
|
||||||
|
|
||||||
|
# How to operate the container
|
||||||
|
|
||||||
|
sudo docker compose down
|
||||||
|
|
||||||
|
(make whatever changes)
|
||||||
|
|
||||||
|
sudo docker compose build
|
||||||
|
|
||||||
|
sudo docker compose up -d
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
version: '3'
|
|
||||||
services:
|
services:
|
||||||
dns-server:
|
dns-server:
|
||||||
container_name: dns-server
|
container_name: dns-server
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
tailscaled &
|
tailscaled &
|
||||||
tailscale up --accept-dns=false --advertise-routes=192.168.1.0/24
|
tailscale up --advertise-exit-node --accept-dns=false --advertise-routes=192.168.1.0/24
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user