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

    NAT External URL to local exchange server

    Scheduled Pinned Locked Moved NAT
    7 Posts 3 Posters 773 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.
    • X
      xeon
      last edited by

      Hello experts,

      So I have setup pfsense firewall and working fine. What I am trying to accomplish now is to access my local exchange server from externally. When I go to https://mail.domain.com, I want to be able to access my local exchange server.

      I need help with NAT rules, please?

      Lets take into consideration that using one Public IP, I am trying to access multiple local servers for different services such as ADFS, exchange etc.

      Please help

      S 1 Reply Last reply Reply Quote 0
      • bepoB
        bepo
        last edited by bepo

        Hello @xeon,

        maybe you can follow my How-To. I posted it in https://forum.netgate.com/post/806020
        Its in german but just follow the screenshots and you will make it work.

        Kind regards

        Please use the thumbs up button if you received a helpful advice. Thank you!

        1 Reply Last reply Reply Quote 0
        • X
          xeon
          last edited by

          @bepo said in NAT External URL to local exchange server:

          Kind regards

          Thank you for this. i am stuck at the Front end where there is a rule under "Actions" called scheme https. Can you please provide me more clarity?

          0_1542833264759_6fa49f4b-32c9-46bc-aa4b-d1e64e8c3c33-image.png

          1 Reply Last reply Reply Quote 0
          • S
            SteveITS Galactic Empire @xeon
            last edited by

            @xeon said in NAT External URL to local exchange server:

            using one Public IP, I am trying to access multiple local servers for different services such as ADFS, exchange

            Without a proxy or other special handling, just be aware that with plain old NAT you can only forward each port to one internal IP. So you cannot normally have https://hostname1 go to one server and https://hostname2 go to another server unless you use a different port like https://hostname2:444.

            Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
            When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
            Upvote ๐Ÿ‘ helpful posts!

            X 1 Reply Last reply Reply Quote 0
            • X
              xeon @SteveITS
              last edited by

              @teamits When you say Proxy, is it a Web Application Proxy server?

              S 1 Reply Last reply Reply Quote 0
              • bepoB
                bepo
                last edited by bepo

                @teamits thats why i posted a manual for HAProxy. Using it you can redirect https://hostname1 to server1 and https://hostname2 to server 2. This is handled by SNI (https://en.wikipedia.org/wiki/Server_Name_Indication).

                @xeon the http Frontend is for redirecting a http request to https. "scheme https" is the command to do this.

                Please use the thumbs up button if you received a helpful advice. Thank you!

                1 Reply Last reply Reply Quote 0
                • S
                  SteveITS Galactic Empire @xeon
                  last edited by

                  @xeon said in NAT External URL to local exchange server:

                  When you say Proxy, is it a Web Application Proxy server?

                  @bepo was describing how to use HAProxy.

                  Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                  When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                  Upvote ๐Ÿ‘ helpful posts!

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