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

    Analysis of most common used outgoing ports from LAN to Internet

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 5 Posters 543 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
      AMizil
      last edited by

      Hello,

      I would like to do an analysis  of  most commonly used outgoing ports from LAN to Internet  in a month period in order to restrict outbound access only to used ports for business needs.

      Currently using Pfsense v2.3.4,  FW rule on LAN : LAN to  * .  All the corporate laptops/desktops are using LAN interface, for private mobile phone there is a Guest WIFI separate interface.

      On Guest WIFI Interface I have restricted  outgoing access only to commonly used ports " 80,443, 587, 465, 110, 995, 25.

      What solution do you recommend ?

      Thnx,
      Adrian

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

        log the allow rule on lan, keep an eye on the log for what ports are used.. Prob best to send the logs to a syslog server to make it easier to parse, and maintain history for a whole month, etc.

        Don't you know what applications your business uses?  Other option is to just allow the ports you know for sure will be needed, 80/443 for sure - then log your block and any complaints of specific applications not working.  And then open them if they fall into business need.

        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
        • A
          AMizil
          last edited by

          @johnpoz:

          log the allow rule on lan, keep an eye on the log for what ports are used.. Prob best to send the logs to a syslog server to make it easier to parse, and maintain history for a whole month, etc.

          Thanks for reminding me about logs … I have recently changed  standard syslog to Splunk Light ( free ) but when you need it more :"Your Splunk Light license expired or you have exceeded your license limit too many times" . After expiring the trial period you have to somehow manually change to free otherwise ...

          I will also check the logging of the packets on LAN rule.

          @johnpoz:

          Don't you know what applications your business uses?  Other option is to just allow the ports you know for sure will be needed, 80/443 for sure - then log your block and any complaints of specific applications not working.  And then open them if they fall into business need.

          Yes, I do , but I would like to see what other non standard ports are being used. Too much effort for nothing. Going with the standard ports 80/443 and gmail smtp / imap secure and that's a good starting point using "aliases".

          Best regards,
          Adrian

          1 Reply Last reply Reply Quote 0
          • N
            Nullity
            last edited by

            It's probably overkill but there are some good netflow analyzers like FlowViewer.

            Please correct any obvious misinformation in my posts.
            -Not a professional; an arrogant ignoramous.

            1 Reply Last reply Reply Quote 0
            • DerelictD
              Derelict LAYER 8 Netgate
              last edited by

              80,443, 587, 465, 110, 995, 25.

              I wouldn't allow 25.
              I would add 143 and 993.
              That would be email, web, and whatever else is configured to use those ports.

              Why do you care what ports your guests connect to, with the possible exception of 25?

              Chattanooga, Tennessee, USA
              A comprehensive network diagram is worth 10,000 words and 15 conference calls.
              DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
              Do Not Chat For Help! NO_WAN_EGRESS(TM)

              1 Reply Last reply Reply Quote 0
              • B
                biggsy
                last edited by

                @AMizil:

                Your Splunk Light license expired or you have exceeded your license limit too many times" . After expiring the trial period you have to somehow manually change to free otherwise …

                Go to Settings > Licensing > Change license group.  This does limit you to sending less than 500 MB/day of logs to Splunk though.

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