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

    Pfsense + Ossim

    Scheduled Pinned Locked Moved General pfSense Questions
    16 Posts 6 Posters 14.2k 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.
    • BBcan177B
      BBcan177 Moderator
      last edited by

      @henze:

      Thanks  BBcan ,
      can you explain to me more !
      the idea is that log of Pfsense will be send to OSSIM . Si i should upload a patch ! after in (Status..>System log ) i enbale to log to a server and i put the ip of Ossim !
      is it true what i say ? and what about rules ? and where should i place OSSIm in a lan  Pfsense interface or in wan interface ?

      Hi, henze,

      First you need to install the package "Patches"  [ [b]System:Packages:Available Packages "System Patches" ]

      In the System:Patches menu, select "+" and add a new patch

      If you're on 2.1.x, add this patch:
      http://files.pfsense.org/jimp/patches/pf-log-oneline-option-2.1.1.diff

      Once you have entered the patch details, you need to "Fetch" and than "Apply"

      (HELP LINK) https://doc.pfsense.org/index.php/System_Patches

      In  [  [b]Status:System Logs:Settings  ], you will see "Enable Remote Logging" Put a check.

      Remote Syslog Servers, enter the LAN ip address of the OSSIM machine.

      Select which logs you want to send to Ossim (Contents settings)

      Make sure that Ossim has UFW open to receive the Syslogs on port 514 UDP.

      [ [b]sudo ufw status ] in OSSIM

      You can change the default port by changing the pfSense "Remote Syslog Servers" Lan address to be

      x.x.x.x:PORT

      "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
        henze
        last edited by

        thanks for ur explication !
        but i had Pfsense 2.1.2 so this didn"t work ! did u have another to give it to me  ?

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

          @henze:

          thanks for ur explication !
          but i had Pfsense 2.1.2 so this didn"t work ! did u have another to give it to me  ?

          I don't know if there is another patch available for 2.1.3, I use the 2.1.1 on 2.1.3 and it works.

          You might have to reboot the box? Or if it doesn't work after a reboot, try removing the patch, reboot and than add the patch again.

          "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
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            The patch is not particularly extensive, only two files and small changes. You can probably apply it manually in 2.1.3.

            Steve

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

              You could also try this command in an OSSIM shell to see if you are receiving the syslogs from pfSense.

              **  [  sudo tcpdump -nnvvAi eth0 -s0 | grep xx.xx.xx.xx  ]**

              change the xx.xx.xx.xx to your pfSense LAN address. And change the eth0 to your OSSIMs listening interface.

              "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
              • W
                wifiuk
                last edited by

                has anyone got pfsense to parse logs to OSSIM on the most recent version ?

                1 Reply Last reply Reply Quote 0
                • W
                  wifiuk
                  last edited by

                  i tweeted pfsense and alienvault about this, they said its great idea, but someone needs to make a pfsense side plugin to make it work.

                  So i started making a regex to import that data into OSSIM but i failed, doesnt work as i cant get ther egex correct.

                  Maybe someone else can have a crack, but if we can get the two systems to work together it would be so great

                  1 Reply Last reply Reply Quote 0
                  • K
                    killmasta93
                    last edited by

                    wifiuk I would rather use ELK see the link on my tutorials

                    Tutorials:

                    https://www.mediafire.com/folder/v329emaz1e9ih/Tutorials

                    1 Reply Last reply Reply Quote 0
                    • stephenw10S
                      stephenw10 Netgate Administrator
                      last edited by

                      It should be easier in 2.2.X because the log format has changed. It's now single line: https://doc.pfsense.org/index.php/Filter_Log_Format_for_pfSense_2.2

                      Steve

                      1 Reply Last reply Reply Quote 0
                      • M
                        McGlenn
                        last edited by

                        Alienvault has now release a pfsense plugin.

                        Check out https://github.com/decay/alienvault-pfsense

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