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

    Port 80 not forwarding

    Scheduled Pinned Locked Moved NAT
    76 Posts 4 Posters 20.3k 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.
    • E
      Elmojo @johnpoz
      last edited by

      @johnpoz Ah, I see the confusion now.
      I meant when I was setting up the packet capture. I was asking what host address I needed to input. Sorry I wasn't clear. Turns out the answer is none, unlike in previous steps, where we were specifying my external IP.
      I'm sure that's all second nature to you, but it's baffling to me when it's not spelled out. lol

      Any thoughts on the web self-hosting question?

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

        @elmojo see my edit.. I use haproxy.

        The services I run are all in just dockers on my nas, I use haproxy on pfsense to send traffic to the right place. This way can all use 443 externally.

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

        E 1 Reply Last reply Reply Quote 0
        • E
          Elmojo @johnpoz
          last edited by

          @johnpoz That sounds a bit beyond me. I'll probably just stick with the noob-friendly stuff that has lots of youtube tutorials and handholding guides. lol

          Thanks again for your help!
          At least I know how to forward whatever ports I need open now.
          Next on my list is some sort of remote access for one of my client's Netgate machines via either Wireguard or OpenVPN, but that's another kettle of fish entirely. ;)

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

            @elmojo openvpn is simple and straight forward. I do believe at some point wireguard will give it a run for its money. Especially if they come up with the QR code to just scan ;)

            There was a bit issue, of whats the term to use - quagmire prob works ;)

            It was in, and then it was pulled, and some social media craziness, etc. Now there is a package again listed..

            I'm a fan of openvpn. Its rock solid, used it for years and years.. It can do tcp for your tunnel, which I do not believe WG supports.. While tcp is not optimal for the vpn, it can come in quite handy when the UDP port is blocked - its a given that 443 is almost always open ;) And you can connect via proxy even.. So when your say at the office, and they run a proxy, and you want to vpn into your home network ;) Use to do that daily before covid and now just full time work from home.

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

            E 1 Reply Last reply Reply Quote 0
            • E
              Elmojo @johnpoz
              last edited by

              @johnpoz That's good info, thanks.
              I'll probably stick with OpenVPN, since it seems to be a bit more robust and mature.

              1 Reply Last reply Reply Quote 0
              • E
                Elmojo
                last edited by Elmojo

                Okay, this is giving me a headache. I thought we had it all sorted out. I was able to forward ports, and checking them against the canyouseeme site was reporting them as open.
                However, as of today, they are suddenly closed again?!
                I was attempting to forward a different set of ports, for another container.
                Once I realized it wasn't working, I set everything back to the way it was, but even the original rules aren't working now. What gives?
                Here are my NAT and WAN rules screens. See anything I broke that could be accounting for this behavior?

                cap004.jpg cap001.jpg

                I can sniff the traffic on the WAN and see it hitting the wall, but canyouseeme reports an immediate "connection refused". Ports that aren't forwarded tend to time out after about 10 secs, so I know it's doing something, just not what I've asked it to do.
                I'm too old for this... lol

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

                  @elmojo just out of curiosity why would you forward 1194 to the wan? Openvpn is listening on that - there is no need to forward it.

                  So when you sniff on the wan do you see a R go back?

                  Your forward for 80 is showing an active state that /1/1 there - so did your server refuse it?

                  https://docs.netgate.com/pfsense/en/latest/troubleshooting/nat-port-forwards.html

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

                  E 1 Reply Last reply Reply Quote 0
                  • E
                    Elmojo @johnpoz
                    last edited by Elmojo

                    @johnpoz
                    The 1194 forward is part of the OpenVPN wizard setup. I don't believe I did it manually.
                    I don't see any explicit blocks in the main log, but when I sniff the WAN I see it hit from outside, and a response go back from my side. It doesn't say what sort of reply it is, only that it's on some random port. Looks like this... (this is 2 attempts)

                    23:42:49.722015 IP 52.202.215.126.36854 > 174.xx.xxx.184.80: tcp 0
                    23:42:49.722035 IP 174.xx.xxx.184.80 > 52.202.215.126.36854: tcp 0
                    23:42:51.138779 IP 52.202.215.126.36860 > 174.xx.xxx.184.80: tcp 0
                    23:42:51.138801 IP 174.xx.xxx.184.80 > 52.202.215.126.36860: tcp 0

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

                      @elmojo said in Port 80 not forwarding:

                      The 1194 forward is part of the OpenVPN wizard setup.

                      No it isn't.. You had to have done that manually. It makes zero sense.. The wizard will make your wan rule for you, but it would not do a port forward.

                      23:42:49.722035 IP 174.xx.xxx.184.80 > 52.202.215.126.36854: tcp 0

                      Your server you forwarded too sent a RST! Telling them to go away..

                      If you would up the verbosity of the sniff, you would see it was RST..

                      When you do that test do it on the lan side your sniff, and you will see your server sending it back.. Unless you had setup a specific reject rule pfsense wouldn't send a RST.

                      Did you put a specific rule in your floating tab?

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

                      E 1 Reply Last reply Reply Quote 0
                      • E
                        Elmojo @johnpoz
                        last edited by Elmojo

                        @johnpoz
                        Beats me, I set it up a while back, and I'm not even using it right now. Ignore it for the current conversation. I can delete the rule if you think it may be having an impact?
                        There are no floating rules.
                        Nothing has changed from when you helped me the other day. I literally have had no time to work on it any more. I just sat down this evening to try to get SWAG set up, and it needed a different set of ports forwarded. I plugged in those forwards, noticed they weren't working, removed the entries, and here were are. Dunno man, it's baffling.
                        I'll have to tackle it more tomorrow, if you're available. It's nearly midnight and I'm beat. :)

                        Well son of a.... I think I just figured it out!
                        I distinctly recall you telling me before that I didn't need any service running on the server (LAN) side in order to check if the ports were open, so I hadn't bothered spinning up the container until I got that sorted out. However, I just went back, turned off SWAG, and fired up NginxProxyManager. This was really just to make sure I hadn't broken anything on the server side. I clicked the port test button, and wouldn't you know, they're testing as open now!
                        I guess not having anything running on the server to "accept" the request, for lack of a better term, it was rejecting the packets. Man, I wish I had tried this 2 hours ago. :/
                        At least I can get some sleep now. lol

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

                          @elmojo You don't need to have anything listening if your going to sniff to see if the traffic gets to psfense..

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

                          E 1 Reply Last reply Reply Quote 0
                          • Bob.DigB
                            Bob.Dig LAYER 8
                            last edited by Bob.Dig

                            I can't open port 443 and I don't know why, but I have another router in front of pfSense, so it is hard to tell, which device is responsible for that... but pfSense is the exposed host of that first router.

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

                              @bob-dig said in Port 80 not forwarding:

                              but pfSense is the exposed host of that first router.

                              If pfsense does not see traffic get to it on 443 (when you sniff on pfsens), then "something" upstream didn't allow it, be it that router in front of pfsense (likely suspect) or your ISP. etc..

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

                              Bob.DigB 1 Reply Last reply Reply Quote 0
                              • Bob.DigB
                                Bob.Dig LAYER 8 @johnpoz
                                last edited by Bob.Dig

                                @johnpoz The Problem for me, the ISP is not known for doing that and also the router is not. I can see which port the router has opened to WAN and there is no 443. Do you have any tip for seeing it in pfSense?
                                What I did after noticing this problem was placing a reject tcp 443 floating WAN in on top and logging and doing a port test on a website, still port is stealth and no log entry...
                                Also sorry, I have not read this whole thread.

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

                                  @bob-dig said in Port 80 not forwarding:

                                  still port is stealth and no log entry..

                                  Then it didn't get to pfsense.. Pfsense has zero control over what gets to it or not.. It can not do anything with traffic it never sees, be that ignore it, or forward it or reject it.

                                  If you sniff on pfsense when you do a test from can you see me .org for example - and you don't see it, then it didn't get to pfsense. Something upstream prevented it, or your sending to the wrong IP..

                                  You could be standing at the plate, all ready to hit that homerun. If the pitcher never throws you the ball.. Nothing you can do about it.

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

                                  Bob.DigB 1 Reply Last reply Reply Quote 0
                                  • Bob.DigB
                                    Bob.Dig LAYER 8 @johnpoz
                                    last edited by

                                    @johnpoz I don't know about American Football ;) but I was able to open the web-ui of that router to the public, so it is not an ISP thing. So I guess the router firmware is faulty, I will report to them. Still, this problem seems to "big" that nobody has found it so far... thx John.

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

                                      @bob-dig said in Port 80 not forwarding:

                                      Still, this problem seems to "big" that nobody has found it so far

                                      Who says its a problem.. Could just be operator error. If you setup pfsense as dmz host, ie all ports forwarded to pfsense IP in your first router. What if your 1st router is actually using 443 for its web interface, and say you enabled remote management of this router.

                                      How would it forward 443, if its using it, etc.

                                      Possible your using a vpn? And when you go to can you see me, its sending the traffic to your vpn IP..

                                      Maybe your isp is blocking 443 inbound? Do other ports work?

                                      Don't know your setup, maybe you have UPnP enabled on it, and you have some other device along side pfsense on your 1st routers lan having 443 forwarded to it.

                                      Lots of things that could be causing what your seeing other than "bug/problem" with your 1st router.

                                      American football ;) hehehe Ok how about this analogy. Kind of hard to take your penalty shot if there is no ball..

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

                                      Bob.DigB 2 Replies Last reply Reply Quote 1
                                      • Bob.DigB
                                        Bob.Dig LAYER 8 @johnpoz
                                        last edited by Bob.Dig

                                        @johnpoz Damn, I almost cut myself off from home and all the services, because I am not at home for some weeks and I just disabled the exposed host function in the router and I was connected to it via pfSense VPN...
                                        I really had big luck, that the ongoing rdp-connection wasn't canceled, otherwise I would have some serous problems...

                                        Anyways, what I found out by disabling the exposed host function and enabling only one explicit port forward on port 443 to pfSense for a short time was, that this time I got a different result on grc.
                                        I always did testing on port 80 and 443 and this time 443 was still stealth but Port 80 was just closed.
                                        I don't use Port 80 on pfSense WAN and I think port 80 closed is the normal behavior of the first router, because it is not in stealth mode and exposed host was not activated. So now I do think it is pfSense!

                                        Any tips how to investigate further? Everything you explicitly mentioned to me I already had checked.

                                        1 Reply Last reply Reply Quote 0
                                        • Bob.DigB
                                          Bob.Dig LAYER 8 @johnpoz
                                          last edited by Bob.Dig

                                          @johnpoz So I just did a packet capture of the port scan with grc, exposed host active and it looks like it is coming through? I never do packet capture, please be calm with me.
                                          It looks like this (there is more) but I am not sure what it means, could need some help here.

                                          13:36:42.561714 IP 172.25.0.2.39667 > 4.79.142.202.443: tcp 517
                                          13:36:42.562998 IP 172.25.0.2.8719 > 4.79.142.192.443: tcp 517
                                          13:36:42.734132 IP 4.79.142.202.443 > 172.25.0.2.36858: tcp 1452
                                          13:36:42.734233 IP 4.79.142.202.443 > 172.25.0.2.36858: tcp 1452
                                          13:36:42.734332 IP 172.25.0.2.36858 > 4.79.142.202.443: tcp 0
                                          13:36:42.742283 IP 4.79.142.202.443 > 172.25.0.2.39667: tcp 1452
                                          13:36:42.742430 IP 4.79.142.202.443 > 172.25.0.2.39667: tcp 1452
                                          13:36:42.742527 IP 172.25.0.2.39667 > 4.79.142.202.443: tcp 0
                                          13:36:42.750059 IP 4.79.142.192.443 > 172.25.0.2.8719: tcp 1452
                                          13:36:42.750193 IP 4.79.142.192.443 > 172.25.0.2.8719: tcp 1452
                                          13:36:42.750275 IP 172.25.0.2.8719 > 4.79.142.192.443: tcp 0
                                          13:36:42.875387 IP 4.79.142.202.443 > 172.25.0.2.41225: tcp 117
                                          13:36:42.886209 IP 4.79.142.206.42743 > 172.25.0.2.443: tcp 0
                                          13:36:42.898437 IP 4.79.142.202.443 > 172.25.0.2.36858: tcp 964
                                          13:36:42.900825 IP 172.25.0.2.36858 > 4.79.142.202.443: tcp 150
                                          13:36:42.906914 IP 4.79.142.202.443 > 172.25.0.2.39667: tcp 964
                                          

                                          4.79.142.202 is grc port tester
                                          172.25.0.2 is my pfSense

                                          But I think the port tester is also testing for other things, so is port 443 on pfSense touched or is is not?

                                          Here is the floating rule:
                                          Capture.PNG

                                          1 Reply Last reply Reply Quote 0
                                          • Bob.DigB
                                            Bob.Dig LAYER 8
                                            last edited by

                                            After doing another port test with port 80 it looks like port 80 is recognized in the packet capture and port 443 is not.

                                            But both rules show 0 States and there are no log entries which is weird, isn't it?

                                            Capture.PNG

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