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

    The snort2pfsense (snort to pfSense) shell script

    Scheduled Pinned Locked Moved Firewalling
    1 Posts 1 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.
    • belleraB
      bellera
      last edited by

      snort2pfsense (snort to pfSense) is a shell script that synchronizes an snort sensor using MySQL output with a pfSense firewall.

      With a hard disk platform, pfSense can have snort installed, but if you want to not charge your pfSense box with snort or you have a pfSense embedded system you will find snort2pfsense very useful. snort2pfsense integrates your external snort box with the pfSense firewall.

      snort2pfsense uses the expect scripter and makes SSH connections to the console of pfSense.

      snort2pfsense looks for the offenders hosts at the MySQL snort database and updates the snort2c PF (Packet Filter) table of pfSense. No matter if you don't have the snort package installed in your pfSense box.

      snort2pfsense has its own white list.  The white list can have single hosts an entire networks. If an offender host is white listed it will be never blocked.

      snort2pfsense's IP addresses (and masks) are stored as integer numbers at the MySQL database, as snort does. snort2pfsense provides tools to see your IP addresses (and masks) formatted as text. snort2pfsense shows also the host names, resolved using the dig command.

      More information at http://www.bellera.cat/josep/snort2pfsense

      Regards,

      Josep Pujadas

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