Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    NAT Only if client from DNS

    Scheduled Pinned Locked Moved NAT
    2 Posts 2 Posters 706 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      silentphoebus
      last edited by

      Hi, i use pfsense 2.1 to protect my network.
      In my network, i have a http server linux / apache2.
      For now i have configured NAT to forward my_ip:1234 -> http_server:80 all i working well, but i have registred a dns and i want to NAT only  if client is connection to mydomain.com
      Is this possible ?
      Yes i know i can configure apache to only listen if domain name is used, but that's not what i want.

      1 Reply Last reply Reply Quote 0
      • GruensFroeschliG Offline
        GruensFroeschli
        last edited by

        There is no way around a reverse http proxy.
        Search the forum for "reverse http proxy".

        This might be what you are looking for:
        https://doc.pfsense.org/index.php/Haproxy_package

        We do what we must, because we can.

        Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.