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

    Example.org

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 2 Posters 1.2k 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.
    • B
      Balanga
      last edited by

      What would I need to do to route traffic for example.org to a particular host on my LAN?

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        well does example.org resolve to your public IP on the public internet?  If so then just forward the ports you want to be served up by the machine behind pfsense.

        if your talking about example.com going to machine 1 behind pfsense, while otherdomain.com going to different machine then you need to use a reverse proxy if you don't have more than 1 public IP.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • B
          Balanga
          last edited by

          All I really want is the equivalent of a hosts file which contains something like

          192.168.1.99      example.org

          but have this on pfSense rather than every system on the lan. I am not interested in accessing this system from outside.

          It's probably pretty straightforward but I'm not sure how to go about it. I'm no pfSense expert, just a user…

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by

            so you want users using pfsense as their dns to resolve host.example.org to 192.168.1.99 that is a simple host override in either the forwarder or resolver depending on which one your using.

            if you want example.org you could do that to with example being the host and org being the domain - see attached screenshot of my resolver overrides, and then my queries for them to pfsense.

            The higher response times are because I am via vpn connection to my home network, that has to bounce off proxy in texas, then back to chicagoland while I am in chicagoland.

            overrides.png
            overrides.png_thumb

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

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