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

    Pf sense and a multiple domain server

    General pfSense Questions
    2
    3
    1.6k
    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.
    • UnderstudyU
      Understudy
      last edited by

      Hi,

      I am new to pf sense. I have been reading some of the tutorials and some of the other resources. However I am not getting a clear answer on this question. Can pf sense handle multiple domains on a box behind it?

      I am looking to set up pf sense as a firewall, router, and dns box. I would then set up a box behind it on an internal lan. That box would be a webserver mail server. The webserver would have multiple domains and a single IP. The real IP would be on the pf sense box so the webserver would have a private ip.

      Also are there any special configuration issues or additional packages I should be aware of?

      Sincerely,
      Brendhan

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        If they are all on one box with a single IP it should be no problem. You simply forward all traffic on port 80 to the webserver and let apache (or whatever) sort out which virtual server to use from the header information.

        More of a problem, but still possible, is having multiple webservers with multiple IPs behind pfSense. You would then have to run a reverse proxy which could read the headers and send traffic to the correct box. But that's not a problem for you!

        If you want to access the server from your internal network by URL you will need to either add local DNS entries or enable NAT reflection.

        Steve

        1 Reply Last reply Reply Quote 0
        • UnderstudyU
          Understudy
          last edited by

          Thank you. This helps a great deal.

          Sincerely,
          Brendhan

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