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.
    • 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.