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

    Some ports are not working

    Scheduled Pinned Locked Moved Firewalling
    17 Posts 6 Posters 1.5k 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.
    • 0
      0rangeFox
      last edited by

      @johnpoz that a good guy maybe can help me?

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

        Go through the troubleshooting steps just like you would do if only 1 port.
        https://docs.netgate.com/pfsense/en/latest/nat/port-forward-troubleshooting.html

        Guessing this has to do with minecraft?

        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

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

          @0rangeFox said in Some ports are not working:

          Someone have idea why?

          Show us your related NAT "25566" rules and some one will see what is wrong ^^

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          1 Reply Last reply Reply Quote 0
          • 0
            0rangeFox
            last edited by

            Yes is minecraft server. I think the problem is from server CentOS 7, im using Docker, but it is working for 25565 and on 25566 are blocking, im using the tool portfowarding test on pfSense, and other ports show are open and only 25566 is closed.

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

              Pfsense can forward the traffic all day, but if the dest server doesn't answer for whatever reason it would show closed.

              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

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

                @johnpoz But any idea, why on CentOS 7 are closing the port 25566? If i can use 25565 or 65535 without problems, but why these port is closed? Can provide some commands to test or debug it?

                1 Reply Last reply Reply Quote 0
                • V
                  viragomann
                  last edited by

                  Now, if the application using both ports runs within a docker container, you have to set up docker with both, did you?

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

                    You will prob get better help over on docker/centos and or your minecraft forums for running servers in docker.

                    While I have a couple of things that run in docker on my nas.. I am not a fan of it to be honest, and have no real exp with it.. So I wouldn't be much help at all.. Now if you were running your dockers on synology nas and it was something I could fire up to test with I might be able to help you figure out where your issue is..

                    Maybe some other here will be able to help, should prob move this to general section since not a port forwarding question about pfsense, but more why is docker not listening on port xyz.

                    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

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

                      @0rangeFox said in Some ports are not working:

                      25565 and 25566

                      If you have NATted port 25565 to a LAN IP - port 25565 - AND some process is actually listening on the port/IP
                      AND the LAN IP devices hasn't some firewall that blocks
                      THEN ...

                      2c405424-0ccc-4856-b657-d943b92a7908-image.png

                      same thing for the 25566 port.

                      Btw : I have no device that listens on my LAN these ports - so I rerouted port to port 80 (a web server - I know it works because I can visit it with my browser) on my NAS. Same thing for port 25566 that I rerouted to port 443 on the same NAS.
                      Also : I have a router in front of my pfSense, so I had to NAT on that device also for the 2 ports.

                      No "help me" PM's please. Use the forum, the community will thank you.
                      Edit : and where are the logs ??

                      0 1 Reply Last reply Reply Quote 0
                      • 0
                        0rangeFox @Gertjan
                        last edited by

                        @Gertjan but on my pfSense, everything is open, i believe is because on CentOS 7 are blocking the ports, i dont see how to fix it.

                        1 Reply Last reply Reply Quote 0
                        • A
                          akuma1x
                          last edited by

                          I don't use CentOS, but did you lookup how to open ports on that operating system?

                          https://www.rootusers.com/how-to-open-a-port-in-centos-7-with-firewalld/

                          And, here's specifically a Minecraft server on CentOS:
                          https://linuxize.com/post/how-to-install-minecraft-server-on-centos-7/

                          Did you get all of that setup correctly?

                          Jeff

                          0 1 Reply Last reply Reply Quote 0
                          • 0
                            0rangeFox @akuma1x
                            last edited by

                            @akuma1x Yes i did everything correct.

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

                              Don't take this the wrong way but users say they did XYZ all the time, and then they post up picture of what they actually did and its ABC or XYQ ;)

                              Do a simple netstat on your centos box - do you see it listening on that port?

                              Is docker doing the correct forwarding? etc.. As I stated earlier you prob get better help for centos and docker and minecraft over on their forums.

                              Pfsense just send the traffic on - if nothing answer nothing pfsense can do about that.

                              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

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

                                @johnpoz No problem, thanks for all people who tried to help me.

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

                                  You might find someone here that is running what your running and could help you.. Don't give up all hope ;)

                                  But the people that come here are more focused on details of how to do xyz with pfsense, and not the nuts and bolts of how to do xyz on centos or minecraft or docker..

                                  While sure there is going to be many here that use those things, etc. But going to be far less then the people you find on the forums that are focused specifically on those things, 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

                                  1 Reply Last reply Reply Quote 0
                                  • kiokomanK
                                    kiokoman LAYER 8
                                    last edited by

                                    even if "this has zero to do with pfSense" 😂
                                    i can give you a couple of suggestion to try

                                    sudo setenforce 0
                                    firewall-cmd --permanent --zone=internal --set-target=ACCEPT
                                    

                                    and check if it work

                                    ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                                    Please do not use chat/PM to ask for help
                                    we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                                    Don't forget to Upvote with the 👍 button for any post you find to be helpful.

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