bsmithio / OPNsense-Dashboard

A functional and useful dashboard for OPNsense that utilizes InfluxDB, Grafana, Graylog, and Telegraf.
544 stars 68 forks source link

Docker OPNSense dashboard on DS920+ ( SOLVED ) #37

Closed ghost closed 1 year ago

ghost commented 1 year ago

Hello,

I followed the documentation and there are 2 things to adjust:

Configuring Graylog: Then download the database file, replace YOUR_LICENSE_KEY with the key you generated above.

Problem: Error write 'GeoLite2-Country.mmdb' to '/usr/share/graylog/data/data/'.

Solution: sudo docker exec -it graylog /bin/bash CD /usr/share/graylog/data/data/ chmod 775 GeoLite2-Country.mmdb rm GeoLite2-Country.mmdb

Execute: curl "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key=YOUR_LICENSE_KEY&suffix=tar.gz" -o GeoLite2-Country.tar.gz \ && tar -xzvf GeoLite2-Country.tar.gz \ && mv GeoLite2-Country_*/GeoLite2-Country.mmdb /usr/share/graylog/data/data/

Configure Additional Settings: Now, add your index set from earlier to the "OPNsense / filterlog" stream. Navigate to Streams -> More Actions -> Edit Stream -> select your index set and save.

Problem: Stream 'OPNsense / filterlog' not visible.

Solution: Open content-pack 'OPNSense Dashboard' Click 'Install'

Configure Variables There is no explanation how to change the interfaces, only that you can do it. Maybe some screenshots??

The dashboard is working now and I really like it.

Request:

ghost commented 1 year ago

I can't get the worldmap on the opnsense-dashboard working. How do I get the colored pointers on the worldmap?

ghost commented 1 year ago

Solved!

I used the latest docker-compose.yaml file that uses mongodb 6.0.4 and Graylog 5.0.2. I'm running Docker on a Synology DS920+ and Mongodb gives a warning that it needs a CPU with AVX support. The DS920+ does not support this.

The latest version of mongodb that not need a CPU with AVX support is v4.4.18 but can't be used with Graylog 5. The previous version of Graylog v4.3.11 does the trick.

I changed the docker-compose.yml to work with macvlans because I like it this way. Don't forget to change the IP-adresses (DNS-names) in 'OPNSense>Services>Telegraf>Output:Influx v2 URL', 'OPNSense>System>Settings>Logging/Targets:Hostname', 'Grafana>Configuration>Data Sources>ElasticSearch:URL' and 'Grafana>Configuration>Data Sources>InfluxDB:URL'.

version: '3' services: mongodb: container_name: OPNSense-dashboard-Mongodb image: mongo:4.4.18 volumes:

volumes: grafana_data: influxdb2_data: graylog_data: es_data: mongodb_data:

networks: macvlan-bridge: external: name: macvlan-bridge