My Community Dashboard

  • Anwoke8204
    Anwoke8204 replied to a discussion, DNS Server issue

    Nick Howitt wrote:

    Re-reading this, are you saying that, from your LAN you want to be able to type tooelerpg.com, and depending on which port you select it goes to a different machine on your LAN? If so, I don't see how that would ever work on your LAN as tooelerpg.com can only resolve to a single IP, and once resolved any routing is independent of ClearOS as a switch will route directly to a LAN IP without reference to ClearOS.

    The only way I can see it working is if "NAT loopback" or "NAT reflection" works on your external IP. For this to work tooelerpg.com must resolve to your WAN IP, so no need for an entry in the DNS server/hosts file. I don't think it works out of the box in ClearOS, but I may be wrong. I think you could add a bunch of iptables rules for this to work along the lines:
    You can tweak the rule todo more that one port at a time. If you do this as a custom firewall rule replace "iptables" with "$IPTABLES" OTOH I could be completely wrong.


    yes thats the way that my cos 6 box worked. I just used tooelerpg.com and depending on what port the program used (teamspeak, minecraft, rdp, etc) it automatically forwarded to the correct server