Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
infrastructure:network:tailscale [2022/08/08 15:20] maffinfrastructure:network:tailscale [2022/08/08 15:43] (current) maff
Line 30: Line 30:
     * Maybe just use a tailscale-aware load balancer and stick with good old DNS for service ID?     * Maybe just use a tailscale-aware load balancer and stick with good old DNS for service ID?
   * Get DNS working properly (maybe write a script/daemon that updates a DO zone with IPs for each machine/endpoint?)   * Get DNS working properly (maybe write a script/daemon that updates a DO zone with IPs for each machine/endpoint?)
 +    * Idea for a science-based naming system (SBNS) (listen to Kill James Bond!)
 +      * TLD .tail
 +        * tag.tail - returns A and AAAA records for all hosts with the given tag
 +        * hostname.tail - returns A and AAAA for a host
 +        * hostname.tag.tail - as with hostname.tail - might be useful if two hosts have the same name? does TS allow that?
 +        * service.tail - it'd be cool to have some kind of declarative thing so you can say like, grafana.tail and it goes to a web loadbalancer for grafana somewhere on your tailnet, though that's more of a consul thing i guess
     * DNS resolution is working over TS.     * DNS resolution is working over TS.
       * Because I run AdGuard Home inside docker using macvlan, i would have to have ran tailscale inside the AGH container in order to do it "properly". instead: DNAT time       * Because I run AdGuard Home inside docker using macvlan, i would have to have ran tailscale inside the AGH container in order to do it "properly". instead: DNAT time
Line 35: Line 41:
  
 <code - iptables-save output> <code - iptables-save output>
--A PREROUTING -i tailscale+ -p udp -m udp +-A PREROUTING -i tailscale+ -p udp -m udp --dport 53 -j DNAT --to-destination 172.21.0.53 
 +-A PREROUTING -i tailscale+ -p tcp -m tcp --dport 53 -j DNAT --to-destination 172.21.0.53 
 +-A POSTROUTING -s 172.21.0.53/32 -o tailscale+ -m mark --mark 0x40000 -j MASQUERADE
 </code> </code>
  
Navigation
  • Home