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

    Unable to open ports

    Scheduled Pinned Locked Moved Firewalling
    22 Posts 4 Posters 9.8k 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.
    • D Offline
      Dennisunified
      last edited by

      Hmm oke. But i have an Server 2003 thats connected to the Routed subnet of my Modem.

      Funny thing is when i set 2 rules at my WAN. 1 for allow everyting and one for my NAT rule to allow only port 80 then i still cant acces port 80. When i delete only the port 80 rule on my WAN side of pfsense. Then i can acces port 80 again. Seems like the Nat rule overrules the allow any rule? And that that rule with my NAT config for port 80 isnt working correctly…

      Thanks for helping!

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

        Got it!!!

        Well. appearantly this is the problem:

        External port range. Only from is configured. this way it does NOT work only when you also (in this case https) set to options to HTTPS for "from" and "to" the forwarding works.

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

          When you click the from, it auto fills the to with the same port.  Why would you of changed the to to other?  Your not forwarding a RANGE, your forwarding a PORT.  So if you changed to to other and then did not put in the other port – yeah it would not really be a valid forward, it would be from 443 to ? (what port)..

          So yeah it would make sense that would be broken

          portforwardfromto.png
          portforwardfromto.png_thumb

          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 25.07.1 | Lab VMs 2.8, 25.07.1

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

            Thing whas. When i clicked From to lets say HTTP then it auto fills indeed. But when i edit the rule it whas on other again. Changed it back to HTTP at the "To". And it worked.

            But now i have a problem the other way around  ???
            I cant block any ports on my LAN side. I put this rule on the LAN side:

            When i do a port scan with Advanced Port Scanner i see that port 80, 53 and 21 are still open. And netsend results are this:

            1 Reply Last reply Reply Quote 0
            • marcellocM Offline
              marcelloc
              last edited by

              What rules you have applied before this rule?

              Treinamentos de Elite: http://sys-squad.com

              Help a community developer! ;D

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

                Well I can tell you I have edit many a rule, and have never seen it flip the to other??  So not sure what your talking about there.

                As to not being able to block traffic from your lan??  Did you clear you states on pfsense after you made this rule - which is on the lan section of the firewall?

                At a loss to what showing netstat -an from a client has to do with what ports would be open on pfsense or what ports it would allow through its firewall?

                Rules would be processed in order, so if you have a rule above this rule that says allow any, which is the default rules created for the lan.. Then no this rule would never be hit.

                Post up a screenshot of your lan section showing this rule, and then clear your states, etc..  Keep in mind you don't want to lock yourself out of accessing the pfsense gui or ssh, etc.  See the top rule on my lan side.

                lanrules.png
                lanrules.png_thumb

                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 25.07.1 | Lab VMs 2.8, 25.07.1

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

                  Pass. Allow any! For the lan side. When i do that i have internet. When i block i have no connection and cant ping like it supose to work. But when i check the ports they apear open!..

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

                    What do you mean when you check the ports??  What you showed was a "netstat -an" from some windows client - not from pfsense..

                    What would a firewall rule on pfsense have to do with ports listening on a windows client?

                    "When i block i have no connection and cant ping like it supose to work."

                    What do you think should happen when you block ALL protocols??  What do you think should ping??

                    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 25.07.1 | Lab VMs 2.8, 25.07.1

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      cmb
                      last edited by

                      @Dennisunified:

                      But when i check the ports they apear open!..

                      In netstat in Windows like you showed above? Yeah, they sure will be, no network firewall is going to your Windows system and turn off its services. netstat just shows what your Windows host is listening on, your firewall has 0 control over that.

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

                        Thanks for the reactions. Indeed i discoverd that netstat does not show ports open on my PFsense… I do have managed to open ports with NAT now.

                        The problem whas that i had to edit the NAT rule and reconfigure the "To" from "other" back to the port i wanted to open! After i edit a rule only then does the rule work!..

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

                          Are you saying that when you create the nat to forward for a specific service, say ftp for example that the rule being generated is wrong?  Ie its saying other or flipping the to other even though from is set to ftp??

                          I find this highly unlikely to be honest – I have created many a port forward, and just recently played with ftp for another thread showing how to create the forwards.  Just added a few for my directv boxes, etc.

                          And have never seen this sort of action.

                          Please post up some images showing what is happening that you have to edit rules to make them work vs them working upon creation.

                          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 25.07.1 | Lab VMs 2.8, 25.07.1

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

                            I will this week!

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