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

    Mirroring network traffic

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 3 Posters 3.6k 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.
    • H
      Heli0s
      last edited by

      Is there a way to mirror incoming and outgoing network traffic to a specific IP/interface for analysis using an network monitoring system? If yes, is it possible to only forward specific traffic/ports and/or forward everything and ignore specific traffic/ports?

      1 Reply Last reply Reply Quote 0
      • BBcan177B
        BBcan177 Moderator
        last edited by

        You can do that with a switch that supports port mirroring or spanning…

        Like this one  :

        http://routerboard.com/RB260GS

        and use a package called Security Onion which has all the tools you need already customized into one easy to use package (Well not really easy but all the packages are pre-installed in an ISO so you can get at an implementation fairly quickly :)  )

        https://github.com/Security-Onion-Solutions/security-onion/wiki/IntroductionToSecurityOnion

        http://blog.securityonion.net/p/securityonion.html

        "Experience is something you don't get until just after you need it."

        Website: http://pfBlockerNG.com
        Twitter: @BBcan177  #pfBlockerNG
        Reddit: https://www.reddit.com/r/pfBlockerNG/new/

        1 Reply Last reply Reply Quote 0
        • H
          Heli0s
          last edited by

          That was actually my plan! :)

          I was planning to mirror all my traffic into an SO server. The only thing that I'd like to be able to do is to note keep certain traffic (I move a lot of files to and from FTP servers, so I'd like to set up their IPs as ignored). Is that possible with that switch or is that something specific you have to do in pfSense?

          1 Reply Last reply Reply Quote 0
          • BBcan177B
            BBcan177 Moderator
            last edited by

            You don't need to do that in the Switch… Security Onion has BPF which you can configure what traffic to skip…

            BPF FAQ:
                https://github.com/Security-Onion-Solutions/security-onion/wiki/BPF
            SO Google Group:
                https://groups.google.com/forum/#!forum/security-onion

            "Experience is something you don't get until just after you need it."

            Website: http://pfBlockerNG.com
            Twitter: @BBcan177  #pfBlockerNG
            Reddit: https://www.reddit.com/r/pfBlockerNG/new/

            1 Reply Last reply Reply Quote 0
            • T
              tim.mcmanus
              last edited by

              You might actually want to do that at the switch to reduce the hardware requirements of Security Onion.  The more data you anticipate pushing through it, the more your machine requirements go up.

              There is a section in the MikroTik where you can create ACLs.  Unfortunately, there's no easy way to prune just ftp traffic from being mirrored.

              http://wiki.mikrotik.com/wiki/SwOS#ACL_Tab

              1 Reply Last reply Reply Quote 0
              • BBcan177B
                BBcan177 Moderator
                last edited by

                True, But if the LAN device is FTPing to another box on the LAN then it never hits pfSense and its not going to get mirrored to SO…

                The nice thing about SO is that it can be setup in a distributed format in a Network... I have it currently monitoring pfSense LAN, MS AD Server, and MS File/Print Servers at different locations all tied together into one Master SO Server.  :)

                "Experience is something you don't get until just after you need it."

                Website: http://pfBlockerNG.com
                Twitter: @BBcan177  #pfBlockerNG
                Reddit: https://www.reddit.com/r/pfBlockerNG/new/

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