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

    cant get access from outside to webpage

    General pfSense Questions
    haproxy acme firewall rules
    2
    19
    1.6k
    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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      Where are you testing from? Have you tested from a device in the 192.168.1.0/24 subnet?

      What result do you see when you try to connect?

      Steve

      P 1 Reply Last reply Reply Quote 0
      • P
        pooperman @stephenw10
        last edited by pooperman

        @stephenw10

        yes connected a laptop to ISP router (WAN Port of pfSense) which is in 192.168.1.x subnet

        tried

        • https://anschreikurse.duckdns.org

        • http://anschreikurse.duckdns.org

        • http://nc.anschreikurse.duckdns.org

        • https://nc.anschreikurse.duckdns.org

        also tried to ping those addresses without success.

        is it correct to configure in haproxy just the ip address of the webserver or shall the webserver also have the www name?

        maybe one more remark, I have openVPN also on pfsense on port 443, but of course I deactivated the service and temporary disabled the firewall rules.

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

          @pooperman said in cant get access from outside to webpage:

          anschreikurse.duckdns.org

          Those URLs are going to resolve to the external IP of the ISP router. Unless that has some sort of NAT reflection it will never hit HAProxy when you test from there.

          Try testing from a different public IP so the ISP router forwards it to HAProxy.

          Steve

          P 1 Reply Last reply Reply Quote 0
          • P
            pooperman @stephenw10
            last edited by

            @stephenw10

            ISP router just has port forward on 80 and 443 to 192.168.1.120 (wan of pfSense). nothing else is configured there.
            Anyhow, also tried with phone over cell network( vpn deactivated ;-) ), same result

            I still think, that something in the pfsense settings is not correct.

            below NAT table1.JPG

            looks good to me, there should nothing interupt the traffic related to my issue

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

              Ok, it looks like the firewall rules on WAN allowing access to HASProxy are disabled. Is that still the case?

              Of so, enable them and enabled logging on those rules so you can see when connections are coming in. Then retest via the phone and make sure you see passed traffic from the phone IP in the firewall log?

              Steve

              P 2 Replies Last reply Reply Quote 0
              • P
                pooperman @stephenw10
                last edited by

                @stephenw10 said in cant get access from outside to webpage:

                Ok, it looks like the firewall rules on WAN allowing access to HASProxy are disabled. Is that still the case?

                Of so, enable them and enabled logging on those rules so you can see when connections are coming in. Then retest via the phone and make sure you see passed traffic from the phone IP in the firewall log?

                Steve

                when I took the screenshot I moved back to have the initial state. During testing rules were on and openVPN off.

                Give me a few minutes, will set it up and show the log files.

                1 Reply Last reply Reply Quote 0
                • P
                  pooperman @stephenw10
                  last edited by

                  @stephenw10

                  Rules are enabled
                  1.JPG

                  that is the page from LAN view
                  2.JPG

                  that is the log
                  3.JPG

                  I know there is a different view for logs, which can be copied, but i cant find it.

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

                    If you enable logging on those pass rules on those pass rules then traffic that is matched and passed will be shown in the firewall log.

                    However you can see from the state counters there that nothing had been passed by them when that screenshot was taken.

                    It looks like no traffic is arriving on the WAN for ports 80 or 443. Check the ISP router is actually passing it.

                    Steve

                    P 2 Replies Last reply Reply Quote 0
                    • P
                      pooperman @stephenw10
                      last edited by

                      @stephenw10
                      i am very sure it is not related to ISP router, as port 443 for openvpn never had any issues.

                      however, i put it into DMZ mode, so there is absolutely nothing what might block it.

                      still no sucess.

                      1 Reply Last reply Reply Quote 0
                      • P
                        pooperman @stephenw10
                        last edited by

                        @stephenw10
                        when I use anschreikurse.duckdns.org from phone I get a warning for certificate is untrusted. I checked the cert and it is the root CA from pfSense.

                        If I click yes continue unsafe, it shows me loginpage of pfsense.

                        So that shows me, isp router is working fine and dns resulution is also working

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

                          I assume that screenshot was taken before you had tested that then as there are no connections shown.

                          Ok, you will need to change the port the pfSense GUI is listening on in Sys > Adv > Admin Access. You cannot have nginx and HAProxy both listening on 443.
                          HAProxy will logged that. It would have failed to start the frontend on 443.

                          Steve

                          P 1 Reply Last reply Reply Quote 0
                          • P
                            pooperman @stephenw10
                            last edited by

                            @stephenw10
                            good point!

                            i havent seen any notification but yes makes sense. so pfsense login is now on different port.

                            I came to the setting nat reflection mode for port forwards under admin advanced

                            it is set to disabled. is that correct?

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

                              That's the default setting. You do not need NAT reflection here at all, HAProxy proxies the traffic is does not forward it.

                              Steve

                              P 1 Reply Last reply Reply Quote 0
                              • P
                                pooperman @stephenw10
                                last edited by

                                @stephenw10

                                ok got it.

                                now I get 503 service unavailable

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

                                  With the correct certificate?

                                  P 1 Reply Last reply Reply Quote 0
                                  • P
                                    pooperman @stephenw10
                                    last edited by

                                    @stephenw10

                                    I think so

                                    1.JPG
                                    cert is for anschreikurse.duckdns.org

                                    haproxy frontend is also for anschreikurse.duckdns.org
                                    backend is nc.anschreikurse.duckdns.org

                                    P 1 Reply Last reply Reply Quote 0
                                    • P
                                      pooperman @pooperman
                                      last edited by

                                      @pooperman

                                      there is some issue with SSL handshake:

                                      1.JPG

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