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

    Forward name to internal host

    Scheduled Pinned Locked Moved Firewalling
    3 Posts 3 Posters 1.7k 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.
    • R Offline
      rcz
      last edited by

      How can i forward the name requests to a internal host?

      Example:

      subdomian1.domain.com -> 192.168.0.2
      subdomain2.domain.com -> 192.168.0.3
      subdomain3.domain.com -> 192.168.0.4

      The pfsense can do that?

      1 Reply Last reply Reply Quote 0
      • X Offline
        XIII
        last edited by

        depends on what it is, you can do a domain override for that subdomain.

        https://fwip/services_dnsmasq.php
        

        add it there under host, if you need more than that you need to setup tinyDNS

        yes

        -Chris Stutzman
        Sys0:2.0.1: AMD Sempron 140 @2.7 1024M RAM 100GHD
        Sys1:2.0.1: Intel P4 @2.66 1024M RAM 40GHD
        freedns.afraid.org - Free DNS dynamic DNS subdomain and domain hosting.
        Check out the pfSense Wiki

        1 Reply Last reply Reply Quote 0
        • jimpJ Offline
          jimp Rebel Alliance Developer Netgate
          last edited by

          If you only have one public IP, you can't do that for most services.

          For web servers, you can try to use a reverse proxy. There are a couple packages, mod_proxy and haproxy that might be able to do this by name.

          For other services, they do not differentiate based on the hostname used, only the IP address. You'd have to use different port numbers for each domain.

          On the other hand, if you have multiple public IPs, just setup 1:1 NAT between the public IP for that hostname and the private IP you want it to match up with.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

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