This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DNS Redirect to multiple internal servers using any protocol

I have two servers in my LAN that I'd like to access using unique DNS names so references to those stay intact. The servers are:
Server1 - server1.foo.bar

Server2 - server2.foo.bar

What I did before when I used my DD-WRT router was to set custom DNSMasq entries:
address=/server1/server1.foo.bar/192.168.x.x

address=/server2/server2.foo.bar/192.168.x.x

When I migrated my network to Astaro's solution I was unable to get the same result as I did with my DD-WRT router and it's DNSMasq. When I used the Static DNS entries it only worked for HTTP(non-encrypted web) traffic. (Yes, I was using the HTTP/S relay with HTTPS enabled) When I used Full-NAT rules described here(with some modifications) I could only access the first server in the list as Astaro would look at the packet's header, see that the IP is it's external address(all DNS entries point to the external address) and forward all traffic for that address to the server. That's the desired result except that it only works with the first server as it is satisfied with the routing after the first entry. (Full-NAT would work perfectly if instead of looking at the packets destination IP Address, it would look at the packets destination DNS Address. You'd also need a new Network Definition type to define a DNS Address instead of a DNS Address that translates to an IP Address.)
For now I'm stuck using my DD-WRT router as DHCP and DNS because I can't find a way to make Astaro's local DNS server work the same way as the open source firmware on my router. Is there any way to get DNS Redirects working the way I want(even if it means editing config files on the Astaro server)? I'm using a bring your own box ASG 8.003.


This thread was automatically locked due to age.
Parents
  • This sounds like just a glitch in your configuration.  Post #3 in https://community.sophos.com/products/unified-threat-management/astaroorg/f/53/t/32566 is a good place to start.

    In Astaro V8, you can create forward- and reverse-lookup 'Static Entries' that should give you what you want.

    Cheers - Bob
  • This sounds like just a glitch in your configuration.  Post #3 in http://www.astaro.org/astaro-gateway-products/management-networking-logging-reporting/27989-solved-dns-best-practice.html is a good place to start.

    In Astaro V8, you can create forward- and reverse-lookup 'Static Entries' that should give you what you want.

    Cheers - Bob


    I don't want to run a dedicated internal DNS server to make this work. Also the DNS Static Entries did work, but only for HTTP traffic. HTTPS, SSH, FTP, etc would not work as the documentation says it uses the DNS Static Entries in conjunction with the HTTP/S Proxy to prevent a request with an external address from looping back into the ASG. When I disable the HTTP/S Proxy, the Static Entries no longer route. Also I'd prefer not using the HTTP/S proxy as a lot of sites have issues with it and there is a bit of lag to it. The issues I reference is that downloads don't work. For example, I can't download any addon for teamspeak 3 with the proxy enabled. I assume it's due to the way their download script works.

    I suppose I'll enable SSH access and try a manual configuration of the DNS server in the ASG.
Reply
  • This sounds like just a glitch in your configuration.  Post #3 in http://www.astaro.org/astaro-gateway-products/management-networking-logging-reporting/27989-solved-dns-best-practice.html is a good place to start.

    In Astaro V8, you can create forward- and reverse-lookup 'Static Entries' that should give you what you want.

    Cheers - Bob


    I don't want to run a dedicated internal DNS server to make this work. Also the DNS Static Entries did work, but only for HTTP traffic. HTTPS, SSH, FTP, etc would not work as the documentation says it uses the DNS Static Entries in conjunction with the HTTP/S Proxy to prevent a request with an external address from looping back into the ASG. When I disable the HTTP/S Proxy, the Static Entries no longer route. Also I'd prefer not using the HTTP/S proxy as a lot of sites have issues with it and there is a bit of lag to it. The issues I reference is that downloads don't work. For example, I can't download any addon for teamspeak 3 with the proxy enabled. I assume it's due to the way their download script works.

    I suppose I'll enable SSH access and try a manual configuration of the DNS server in the ASG.
Children
No Data