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

    Webserver inside pfsense

    Scheduled Pinned Locked Moved Firewalling
    8 Posts 3 Posters 2.4k 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.
    • N
      neteffectcafe
      last edited by

      I am having a devil of a time trying to allow external access to the webserver i am building. I have a WAMP WP setup that is going to be our website. I shut down all ports on the machine save http and https. The internal address of this server is 192.168.10.113 which is the subnet for the LAN. I have the WAN auto so it gets addressed from gateway. I set up a rule that says, or i think it says, pass incoming requests to 192.168.10.113 . When i go to an external machine and try to access the server through the REAL IP, pfsense isnt passing along the request internally. If i do so as Local machine the site is expressed so i know the site itself is up.

      Should i just put the server on the Bell gateway and give up trying to send the request through? There are three available jacks on the Bell gateway.

      1 Reply Last reply Reply Quote 0
      • P
        podilarius
        last edited by

        I would not. I have several site up behind pfsense. I am afraid though more info is needed.
        Are you using an IP alias  (CARP, PARP, IPAlias)? Are you using 1:1 or port forward?
        You say that it is getting an DHCP address from the gateway, is that a private IP address?
        Screen shots would be nice.

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

          He states "There are three available jacks on the Bell gateway. "

          So I assume its doing nat, so yeah his pfsense IP is private most likely.  So as with most users issues and port forwarding, its because they are behind a double nat!

          If your pfsense is not directly connected to the public NET and have a public ip, ie NOT 192.168.x.x, 172.16-31.x.x or 10.x.x.x Then you would need the device in front of pfsense to forward the port you want to pfsense wan IP first.

          There is rarely a good reason to be behind a double nat.

          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.7.2, 24.11

          1 Reply Last reply Reply Quote 0
          • N
            neteffectcafe
            last edited by

            Ahhh ok . So i harden the server and jack it direct to the gateway. I am loathe to play with the sense box again as i dropped us of the internet for ten minutes last night in my ham handed attempts to figure it out. I tried alias, port forwarding and eventually NAT rules and all failed.

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

              And you still haven't answered the question - is your pfsense wan on a public IP or private?  You call it your bell gateway, I assume its doing nat??

              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.7.2, 24.11

              1 Reply Last reply Reply Quote 0
              • P
                podilarius
                last edited by

                as johnpoz, pointed out, you are probably doing double nat. The gateway has to forward it to pfsense and then pfsense forwards it inside.
                Not a very go idea to do as it can cause confusion, slower speeds, and you don't much benefit from it.

                1 Reply Last reply Reply Quote 0
                • N
                  neteffectcafe
                  last edited by

                  Hi guys , thanks for your replies. I could not answer because i was incapacitated for the last two weeks. Not because i was being rude. I will endeavour to answer that question with a screen shot later today. And a network diagram. I do not believe i have double NAT as all the internal computers are static IP to the pFsense box. The only DHCP is coming from the bell gateway to the WAN side of the pFsense.

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

                    Simple question that takes 2 seconds to answer.

                    Does your pfsense wan IP start with 192.168.x.x, 10.x.x.x or 172.16-31.x.x – if so then its behind a NAT, and your clients on the 192.168.10 behind pfsense are NATed as well = double NAT!!

                    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.7.2, 24.11

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