Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    What ports are open?

    Scheduled Pinned Locked Moved Firewalling
    19 Posts 7 Posters 4.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 Offline
      ei3000
      last edited by

      Integrated services like VPN and so on doesnt show on port forwarding "page" how can I know when or not the port is open or not?

      Thanks

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

        huh?  If your running vpn services it would put a firewall rule in your wan interface.  This opens the port from the internet to pfsense.  If the vpn service is running then the port would be open.

        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 26.03.1 | Lab VMs 2.8.1, 26.03.1

        1 Reply Last reply Reply Quote 0
        • 2 Offline
          2chemlud Banned
          last edited by

          For openVPN- yes, but for IPsec… I guess the answer is: NO, no firewall rule.

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

            Well it might not create the firewall rule for you.  But if there is no firewall rule, then it wouldn't work because of the default block all.  Are you saying there is hidden ipsec rule that allow the traffic?

            From the doc
            https://doc.pfsense.org/index.php/IPsec_Road_Warrior/Mobile_Client_How-To

            Firewall Rules

            Don't forget to add firewall rules to pass traffic from clients

            Firewall > Rules, IPsec tab
                Add rules that match the traffic that should be allowed, or add a rule to pass any protocol/any source/any destination to allow everything.

            He didn't say what vpn service he was running.

            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 26.03.1 | Lab VMs 2.8.1, 26.03.1

            1 Reply Last reply Reply Quote 0
            • 2 Offline
              2chemlud Banned
              last edited by

              These rules are on the IPsec tab of the firewall rule section, but no rules on the WAN section AFAIK. I have two old IPsec, not in use currently, but no rules on the WAN interface for those.I read something about "hidden" rules, IIRC…

              Maybe that's the openers concern: Hidden rules...?

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

                Guess I could enable it and take a look at the rules.debug or pfctl, I kind of wish there was a way to show all rules in the gui, for example the dhcp rules are ones that I know are hidden and enabled when you turn on dhcp server.

                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 26.03.1 | Lab VMs 2.8.1, 26.03.1

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

                  .

                  1 Reply Last reply Reply Quote 0
                  • 2 Offline
                    2chemlud Banned
                    last edited by

                    Question was: How to find out which ports are open…

                    Any suggestions?

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

                      
                      pfctl -sa
                      
                      
                      1 Reply Last reply Reply Quote 0
                      • 2 Offline
                        2chemlud Banned
                        last edited by

                        Wow, extremely handy! Any idea why GUIs were invented?

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

                          Dude, if you want GUI, then kindly Google for one of the loads of port scanners and let them do their job. Have a nice day. If you do not want the want the auto-added VPN rules, there you have the GUI   ::) checkbox to disable them.

                          1 Reply Last reply Reply Quote 0
                          • 2 Offline
                            2chemlud Banned
                            last edited by

                            Sir, I'm definitely not your dude, I would know that.

                            I'm not the thread opener. He asked for: HOW can I find out which ports my pfSense opens. Why should I use a port scanner, if the fcking firewall is supposed to tell me, what it is doing with my security? And it has the fcking obligation to show it to me in the GUI.

                            Have a nice evening.

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

                              Lick my swamp with your attitude.

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

                                The answer is unless you have opened a port and see it listed with a pass rule on the WAN, the port is closed.

                                The exception would be if you are running uPNP.  If so, check its status to see what ports its opened.

                                (I'd stay out of the swamps)

                                1 Reply Last reply Reply Quote 0
                                • KOMK Offline
                                  KOM
                                  last edited by

                                  Lick my swamp with your attitude.

                                  The irony is thick….

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

                                    Dumb idea time…

                                    Wouldn't it be nice to see any open WAN port that wasn't part of the rules added by user listed at the bottom of the WAN firewall tab?

                                    Like you open the WAN firewall tab and all is as it is now except at the bottom a list of other opened ports and what opened them, like uPNP, would also be shown.

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

                                      "And it has the f*cking obligation to show it to me in the GUI."

                                      Says WHO??  I am quite sure if you want to supply the patches to do that they can be added to the code base, or people can install them..  But I don't see how the pfsense developers have any sort of obligation on they show the every single rule in the gui.  If you don't like what they are doing, then just don't use pfsense - or come up with the way to do it how you want to do it and submit the code.

                                      I can tell you one thing for sure showing all the rules would only confuse some users.  And they would prob remove stuff like dhcp rules and then wonder why their wan cant get an address or why their clients don't get an IP, etc.

                                      Look at how many threads get started because user fires up a opt interface and never bothers to setup any firewall rules or even look to see what rules if any are on the interface.

                                      The OP has been given method to look at the full rules, he either look at rules.debug or pfctl https://doc.pfsense.org/index.php/How_can_I_see_the_full_PF_ruleset

                                      While I also think it would be nice, maybe an advanced option to see all rules in the gui, it sure is not an obligation for the developers to do so.  If your interested or concerned then its very simple to use pfctl or take a look at rules.debug.

                                      edit:  UPnP as metioned is another hidden thing to be honest, those are not shown in the standard interface tabs on the firewall or forwards.  You need to take a look at UPnP tab to see what might be opened, 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 26.03.1 | Lab VMs 2.8.1, 26.03.1

                                      1 Reply Last reply Reply Quote 0
                                      • E Offline
                                        ei3000
                                        last edited by

                                        Ok

                                        Thanks for the answers

                                        1 Reply Last reply Reply Quote 0
                                        • GertjanG Offline
                                          Gertjan
                                          last edited by

                                          @2chemlud:

                                          HOW can I find out which ports my pfSense opens. Why should I use a port scanner, if the fcking firewall is supposed to tell me, what it is doing with my security? And it has the fcking obligation to show it to me in the GUI.

                                          As any router device, after initial install, by law (no, don't look for it) nothing can come in. To make things even more tight, NAT is active (read: no rules) so nothing gets send no-where into the LAN.

                                          Said differently: a device like pfSense is 100 secure. Things start become suspected, even dangerous, when its being operated without knowledge.
                                          Actually, cars and pfSense aren't any different.

                                          No "help me" PM's please. Use the forum, the community will thank you.

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