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

    Trying to view website brings up Wedconfig not website

    Scheduled Pinned Locked Moved General pfSense Questions
    15 Posts 5 Posters 1.5k 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.
    • J Offline
      JayB
      last edited by

      Been working my way through configuring a new webserver using my first install of pfsense. I've got most everything working except actually getting the site to serve pages.

      (note: the only machine behind pfsense is the webserver)

      I've forwarded 80 & 443 to my server
      I have iis8.5 website with ports 80 & 443 bound

      When I access the site from I get a 500 server error. I have something wrong in my config and this is the standard IIS error. I've turned on detailed error for local pages but when I try to browse my.website.com from the server I just get the pfsense web admin login (this was after i disabled the dns rebind check)

      I added an entry in HOSTS on the server but that doesn't help.

      If I browse using http://127.0.0.1/ I can get the website (although it's broken)

      I'm missing something….

      1 Reply Last reply Reply Quote 0
      • DerelictD Offline
        Derelict LAYER 8 Netgate
        last edited by

        Are you trying to test inbound traffic from the server itself?

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • K Offline
          kejianshi
          last edited by

          Let me guess…  You are using a reverse proxy of some sort?

          1 Reply Last reply Reply Quote 0
          • D Offline
            doktornotor Banned
            last edited by

            @kejianshi:

            Let me guess…  You are using a reverse proxy of some sort?

            On localhost. :D

            1 Reply Last reply Reply Quote 0
            • J Offline
              JayB
              last edited by

              All I'm trying to do is view the site from the browser on the server. Nothing fancy at all. I may have a fancy misconfiguration, but a whole nother thing.

              1 Reply Last reply Reply Quote 0
              • K Offline
                kejianshi
                last edited by

                Yeah - But I bet he will get the same problem even if browsing from a vpn on pfsense or perhaps even the LAN.

                1 Reply Last reply Reply Quote 0
                • D Offline
                  doktornotor Banned
                  last edited by

                  @JayB:

                  All I'm trying to do is view the site from the browser on the server.

                  Dude, how on earth do you imagine to meaningfully test port forwarding from localhost on LAN? WTF. So far, you've tested your DNS records. They're broken. Congrats.

                  1 Reply Last reply Reply Quote 0
                  • K Offline
                    kejianshi
                    last edited by

                    http://browsershots.org/

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      JayB
                      last edited by

                      I'm not trying to test port forwarding via localhost…locahost is just the only thing that works.

                      I am RDP'd into my server.
                      From my browser on the server I try to access the website via DNS my.website.com I get webadmin instead
                      From my browser on the server I try to access the website via IP I get webadmin instead
                      From my browser on the server via 127.0.0.1 I get the site.

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        doktornotor Banned
                        last edited by

                        @JayB:

                        I am RDP'd into my server.

                        Why? This is just utterly useless test.

                        @JayB:

                        From my browser on the server I try to access the website via DNS my.website.com I get webadmin instead
                        From my browser on the server I try to access the website via IP I get webadmin instead
                        From my browser on the server via 127.0.0.1 I get the site.

                        As noted above, the only thing you have tested is that the server is unable to resolve itself in DNS.

                        1 Reply Last reply Reply Quote 0
                        • K Offline
                          kejianshi
                          last edited by

                          Are you getting multiple public IPs with NAT?

                          1 Reply Last reply Reply Quote 0
                          • J Offline
                            JayB
                            last edited by

                            No. just a single public IP and single internal IP (other than the gateway)

                            I've added the local IP/Name to hosts so I can now access the site and continue to debug…which was my only reason for the question.

                            Still don't understand why webadmin on 192.168.1.1 was coming up when browsing the DNS name or external IP. I assume it's something to do with the way I have port forwarding set up. This is the first time I've set up a publically accessible webserver. I've always used colocs who handle the firewall setup. It's also the first time using pfsense.

                            1 Reply Last reply Reply Quote 0
                            • K Offline
                              kejianshi
                              last edited by

                              Its being caused by NAT.  But I have very limited info on your setup.

                              If you are using NAT Reflection, may be an issue also.

                              Sounds like you have found a fix though.  So, thats good.

                              I've never had this issue using a single IP - Only multiple NATed public IPs.

                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                doktornotor Banned
                                last edited by

                                @JayB:

                                I've added the local IP/Name to hosts so I can now access the site and continue to debug…which was my only reason for the question.

                                Your webserver should resolve to the pfSense WAN IP from outside, and to the server's LAN IP from inside. And no, editing hosts file on LAN boxes is certainly not a solution.

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

                                  This:
                                  https://doc.pfsense.org/index.php/Why_can%27t_I_access_forwarded_ports_on_my_WAN_IP_from_my_LAN/OPTx_networks

                                  Steve

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