mirror of
https://github.com/lephisto/pfsense-analytics.git
synced 2025-12-06 04:19:19 +01:00
Add Heatmap Panel, Add NTOP Doc
This commit is contained in:
68
README.md
68
README.md
@@ -90,17 +90,11 @@ Index shard 4 and Index replicas 0, the rotation of the Index time index and the
|
||||
|
||||

|
||||
|
||||
and with [cerebro](https://github.com/lmenezes/cerebro) we can check it. You can access Cerebro under http://localhost:9001 and enter "http://elasticsearch:9200" as URL.
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
`
|
||||
# 3. GeoIP Plugin activation
|
||||
|
||||
In Graylog go to System->Configurations and:
|
||||
|
||||
1. Change the order by Message processors, to have "GeoIP Resolver on the bottom"
|
||||
1. Change the order by Message processors, to have "GeoIP Resolver" on the bottom
|
||||
2. Update Plugins an denable Geo-Location Processor
|
||||
|
||||
|
||||
@@ -114,28 +108,16 @@ We can take it from the Git directory or sideload it from github to the Workstat
|
||||
|
||||
https://raw.githubusercontent.com/lephisto/pfsense-analytics/master/pfsense_content_pack/graylog3/pfanalytics.json
|
||||
|
||||

|
||||
|
||||
|
||||
As we see, it is add to the list
|
||||
|
||||

|
||||
|
||||
Now we select the Pfsense content pack
|
||||
|
||||

|
||||
|
||||
And we apply it
|
||||
|
||||

|
||||
Once it's uploaded, press Install.
|
||||
|
||||
# 4. Assign Streams
|
||||
|
||||
We edit the stream of pfsense in Streams to associate the index that we created initially. We mark that it eliminates the coincidences for the default stream 'All message' so that only it stores it in the index of pfsense.
|
||||
Now edit then Streams: Assign your Index pfsense in Streams to associate the index that we created initially. We mark that it eliminates the coincidences for the default stream 'All message' so that only it stores it in the index of pfsense.
|
||||
|
||||

|
||||
|
||||
# Cerebro
|
||||
# 5. Cerebro
|
||||
|
||||
This part might be a little bit confusing, so read carefully!
|
||||
|
||||
@@ -182,12 +164,48 @@ We go to the Remote Logging Options section and in Remote log servers we specify
|
||||
|
||||
We save the configuration.
|
||||
|
||||
# Graylog
|
||||
# Check Graylog
|
||||
|
||||
We now go to graylog by selecting the pfsense stream and we will see how it is parsing the log messages creating the fields.
|
||||
|
||||

|
||||
|
||||
# Grafana
|
||||
# Check Grafana
|
||||
|
||||
Dashboards and Datasource are auto-provisioned to Grafana. Log in at http://localhost:9000 with admin/admin and you should see your Firewall Logs pouring in.
|
||||
|
||||
# DPI
|
||||
|
||||
Now that we have the Firewall logs we want to get some Intel about legit Traffic on our Network.
|
||||
|
||||
- On your pfSense go to System->Package Manager->Available Packages and install ntopng.
|
||||
- Head to Diagnostics -> ntopng Settings and do basic Configuration
|
||||
- Update GeoIP Data there as well. (Install "PFSENSE-9211: Fix GeoIP DB" if it fails)
|
||||
- Go to Diagnostics -> ntopng Settings and log in to ntopng
|
||||
- Go to Settings -> Preferences -> timeseries
|
||||
|
||||
Configure according your needs, I propose following Settings:
|
||||
|
||||
| Setting | Value | remarks |
|
||||
| ------------- |:---------------------:|:---------------------:|
|
||||
| Timeseries Driver | InfluxDB ||
|
||||
| InfluxDB URL | http://yourdockerserverip:8086 | |
|
||||
| InfluxDB Datebase | ndpi ||
|
||||
| InfluxDB Authentication | off | unless you have enabled.|
|
||||
| InfluxDB Storage | 365d | |
|
||||
| Interface TS: Traffic | on | |
|
||||
| Interface TS: L7 Applications | per Protocol | |
|
||||
| Local Host Timeseries: Traffic | on | |
|
||||
| Local Host Timeseries: L7 Applications | per Protocol | |
|
||||
| Device Timeseries: Traffic | on | |
|
||||
| Device Timeseries: L7 Applications | per Category | |
|
||||
| Device Timeseries: Retention | 30d | |
|
||||
| Other Timeseries: TCP Flags | off | |
|
||||
| Other Timeseries: TCP OfO,Lost,Retran | off | |
|
||||
| Other Timeseries: VLANs | on | |
|
||||
| Other Timeseries: Autonomous Systems | on | |
|
||||
| Other Timeseries: Countries | on | |
|
||||
| Datebase Top Talker Storage | 365d | |
|
||||
|
||||
|
||||
That should do it. Check your DPI Dashboard and enjoy :)
|
||||
|
||||
Reference in New Issue
Block a user