<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[PfSense Regex Help for AlienVault OSSIM]]></title><description><![CDATA[<p dir="auto">Unless anyone has a plugin already written for PfSense 2.X.X im trying to do my own , im not the best person and i am learning as i go, but i do want my logs to show in the OSSIM console. I dont want to reinvent the wheel but if there is no wheel here is what i am asking for help with ….<br />
Am i barking up the wrong tree ???</p>
<p dir="auto">Below is a line output from PfSense logs being sent to OSSIM.<br />
I'm trying to write a plugin for OSSIM to parse PfSense Logs<br />
I've got the following regex that covers upto where it says filterlog, but i need help identifying what the other bits are</p>
<pre><code>(?P&lt;date&gt;\w{3}\s+\d{1,2}\s\d\d:\d\d:\d\d)\s+(?P&lt;sensor&gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})(?P&lt;event_type&gt;\s+\w{9}):\s+&lt;/event_type&gt;&lt;/sensor&gt;&lt;/date&gt;
</code></pre>
<p dir="auto">I'm trying to work out what the</p>
<pre><code>9,16777216,,1000000103
</code></pre>
<p dir="auto">section is from<br />
the what the</p>
<blockquote>
<p dir="auto">4,0x78,,44,47494,0,none,1</p>
</blockquote>
<p dir="auto">is from</p>
<pre><code>Sep  2 15:43:43 192.168.1.9 filterlog: 9,16777216,,1000000103,pppoe2,match,block,in,4,0x78,,44,47494,0,none,1,icmp,71,185.26.144.209,81.154.203.123,unreachport,185.26.144.209,UDP,1004951
</code></pre>
<blockquote>
<p dir="auto">event_type=event<br />
date={normalize_date($3)}<br />
sensor={resolv($sensor)}<br />
device={resolv($sensor)}<br />
src_ip={$src_ip}<br />
src_port={$src_port}<br />
dst_ip={$dst_ip}<br />
dst_port={$dst_port}<br />
plugin_sid={translate($action)}<br />
#protocol={$protocol}<br />
interface={$interface}</p>
</blockquote>
<p dir="auto">Anyone able to help me write this regex for the OSSIM plugin?</p>
]]></description><link>https://forum.netgate.com/topic/88600/pfsense-regex-help-for-alienvault-ossim</link><generator>RSS for Node</generator><lastBuildDate>Sun, 14 Jun 2026 20:01:09 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/88600.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 02 Sep 2015 17:14:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to PfSense Regex Help for AlienVault OSSIM on Tue, 29 Dec 2015 11:25:39 GMT]]></title><description><![CDATA[<p dir="auto">Alienvault has now release a pfsense plugin.</p>
<p dir="auto">Check out https://github.com/decay/alienvault-pfsense</p>
]]></description><link>https://forum.netgate.com/post/593256</link><guid isPermaLink="true">https://forum.netgate.com/post/593256</guid><dc:creator><![CDATA[McGlenn]]></dc:creator><pubDate>Tue, 29 Dec 2015 11:25:39 GMT</pubDate></item><item><title><![CDATA[Reply to PfSense Regex Help for AlienVault OSSIM on Sat, 05 Sep 2015 14:55:52 GMT]]></title><description><![CDATA[<p dir="auto">i tried to get this working and failed, anyone else managed to create a regex that works ?</p>
]]></description><link>https://forum.netgate.com/post/568834</link><guid isPermaLink="true">https://forum.netgate.com/post/568834</guid><dc:creator><![CDATA[wifiuk]]></dc:creator><pubDate>Sat, 05 Sep 2015 14:55:52 GMT</pubDate></item><item><title><![CDATA[Reply to PfSense Regex Help for AlienVault OSSIM on Wed, 02 Sep 2015 22:10:43 GMT]]></title><description><![CDATA[<p dir="auto">This lists and explains all the fields:<br />
https://doc.pfsense.org/index.php/Filter_Log_Format_for_pfSense_2.2</p>
]]></description><link>https://forum.netgate.com/post/568344</link><guid isPermaLink="true">https://forum.netgate.com/post/568344</guid><dc:creator><![CDATA[jimp]]></dc:creator><pubDate>Wed, 02 Sep 2015 22:10:43 GMT</pubDate></item><item><title><![CDATA[Reply to PfSense Regex Help for AlienVault OSSIM on Wed, 02 Sep 2015 17:52:19 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">(?P&lt;date&gt;\w{3}\s+\d{1,2}\s\d\d:\d\d:\d\d)\s+(?P&lt;sensor&gt;\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})(?P&lt;event_type&gt;\s+\w{9}):\s+\d{1}[,]\w{8}[,]<a href="?P%3Crule%3E%5Cw%7B10%7D">,</a><a href="?P%3Cdevice%3E%5Cw%7B6%7D">,</a>[,]&lt;/device&gt;&lt;/rule&gt;&lt;/event_type&gt;&lt;/sensor&gt;&lt;/date&gt;</p>
</blockquote>
<p dir="auto">I've worked out a bit more, as above</p>
<p dir="auto">I'm not sure about what $actions are correct so for now i have just given them my own name until i know what to replace them with…</p>
<blockquote>
<p dir="auto">#rule={$rule}<br />
#action={$action}<br />
#direction={$direction}</p>
<h1><a class="anchor-offset"></a></h1>
<h1><a class="anchor-offset"></a></h1>
<h1><a class="anchor-offset"></a></h1>
<h1><a class="anchor-offset"></a></h1>
<h1><a class="anchor-offset"></a></h1>
<h1><a class="anchor-offset"></a></h1>
<h1><a class="anchor-offset"></a></h1>
<h1><a class="anchor-offset"></a></h1>
<h1><a class="anchor-offset"></a></h1>
</blockquote>
]]></description><link>https://forum.netgate.com/post/568296</link><guid isPermaLink="true">https://forum.netgate.com/post/568296</guid><dc:creator><![CDATA[wifiuk]]></dc:creator><pubDate>Wed, 02 Sep 2015 17:52:19 GMT</pubDate></item></channel></rss>