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

    How to capture ports programmatically?

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 2 Posters 1.1k 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.
    • G Offline
      gratis.obake
      last edited by

      Greetings!

      I am unsure where to place this post, if its in the wrong section, kindly move it to the right section, thank you.

      How do I get/capture port(s) of a specific application (mostly games) in an automated way?

      My problem is that certain games we use/play does not publish their game port(s). And without these ports, I can't put/place them to a "game" queue and ends up lagging like hell.

      I have pfSense configured in a tolerable manner that our games are happy while with browsing/streaming with a network of less than 10 computers.

      What I did before was manually looking via ntopng, pftop and some dos based stuff of which I honestly forgot how to do it (although I can research it again how to do it). With the manual approach, it works but I cant get all ports needed and its time consuming.

      What I am looking for is a way to "automate" and/or 'program' to capture port(s) so that if a person/people is/are playing a certain game or application, it can capture them in an automated way and accumulate the right port(s) easily and in a fast manner.

      if you have any info solving my problem, I would appreciate to hear it.

      1 Reply Last reply Reply Quote 0
      • H Offline
        Harvy66
        last edited by

        Lagging is a result of bufferbloat. While trying to figure out how figure out what ports common game servers use, enabled Codel Active Queue on your firewall queue.

        1 Reply Last reply Reply Quote 0
        • G Offline
          gratis.obake
          last edited by

          @Harvy66:

          Lagging is a result of bufferbloat. While trying to figure out how figure out what ports common game servers use, enabled Codel Active Queue on your firewall queue.

          I thank you for your reply, but, honestly, what will 'Codel Active Queue' do with my problem?

          as for an example, I have an online Game "XYZ", but they don't provide game port(s) as they are paranoid that it will attract/invite DDOS :(. I have pfSense traffic rules configured, lets say people are playing DOTA 2, League of Legends or Heroes of Newerth while doing streaming/browsing on my LAN and the ping rates are 'acceptable' because of the traffic rules I have created and these Games provide either directly or indirectly with the correct port(s) to configure.

          If Game XYZ port(s) are not determined, it will ultimately goes to the default queue (unless otherwise they use same/similar port(s) of other game servers), of which I have configured with less bandwidth.

          Once again, I am really sorry as I don't get the whole picture enabling "Codel Active Queue" for this.

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