Trying to view website brings up Wedconfig not website



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


  • LAYER 8 Netgate

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



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


  • Banned

    @kejianshi:

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

    On localhost. :D



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



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


  • Banned

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





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


  • Banned

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



  • Are you getting multiple public IPs with NAT?



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



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


  • Banned

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


  • Netgate Administrator


Log in to reply