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

    The target port range must be an integer

    Scheduled Pinned Locked Moved NAT
    5 Posts 2 Posters 461 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.
    • A
      Andrea 0
      last edited by

      Hello everybody,

      I have this problem when opening a port on the pfsense firewall, the port is number 40000, but the system does not allow me to go on telling me that the port must be a value between 1 and 65535, and 40000 it is.

      The complete error is: The target port range must be an integer between 1 and 65535.

      How can I fix this error? Thank you

      FireShot Capture 049 - PfSenseTnc.localdomain - Firewall_ NAT_ Port Forward_ Edit - 62.149.171.52.png

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

        This is totally ok for you :

        0f2518ff-9d87-4dd9-870a-048d3c28651c-image.png

        ?

        edit : the error could be more specific, as

        The destination port range should be going upwards, not downwards.
        

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

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

          @gertjan
          Ok, but I have to redirect the traffic coming from myip: 40000 on port 3306 (MySQL) of my server's ip address

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

            I just tested the 'MySQL' access on my diskskation (a Syno).
            Using port 3307.
            Outside = 40000

            c4e3cc1d-de36-43ac-912b-19ac3af39bb3-image.png

            I managed to do what is formally forbidden by the MySQL (MariaDb mow) :

            42c28bb2-84f5-4022-ac38-50aa1a22fab1-image.png

            My MySQL server is visible on the Internet.
            I just created a security risk on my internal network .... ;)

            edit :

            Normally, if possible, you should set up a OpenVPN server.
            Use an OpenVPN client to access the site where your MySQL resides.
            Use the network 192.168.100.0/24 for your OpenVPN.
            Put an firewall rule on the 192.168.100.0/24 network that gives access to the 192.168.58.68 IP, port 3306 TCP.
            Now you can access from your OpenVPN client your MySQL server on 192.168.58.68 port 3306 without any need of NAT.

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

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

              @gertjan

              Thank you so much for the support!

              My mistake was to put the start and end port different in this case, on other firewalls it works like this.

              Thanks again and have a nice day!

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