Giter Club home page Giter Club logo

Comments (16)

stamparm avatar stamparm commented on July 29, 2024

@unixfox but you already can do that. Can you please be more specific what you need/want.

from maltrail.

unixfox avatar unixfox commented on July 29, 2024

I want to analyse logs from multiple sensors in the main web interface (Server) but I didn't found any documentation about that.

from maltrail.

stamparm avatar stamparm commented on July 29, 2024

Are multiple sensors (e.g. one sensor per interface) being run on same machine or different? If on different, you can use the LOG_SERVER for setting the collecting address where sensors should send their data to. That should be the same machine as the server itself.

from maltrail.

stamparm avatar stamparm commented on July 29, 2024

Minor update:

  1. LOG_SERVER should point to the collecting machine (same where server.py is being run)
  2. UDP_ADDRESS should be the listening address (leave it to 0.0.0.0)

from maltrail.

unixfox avatar unixfox commented on July 29, 2024

Two sensor on two different machine and one main web interface on one machine.
I'll try, thank you !

from maltrail.

stamparm avatar stamparm commented on July 29, 2024

I'll most probably rename UDP_ADDRESS to something like: LOG_ADDRESS

from maltrail.

unixfox avatar unixfox commented on July 29, 2024

I tried to configure sensors and server but web interface returns null informations.
Chrome console returns me : Failed to load resource: the server responded with a status of 404 (Not Found) : https://x.x.x.x:8338/events?date=2015-12-18
Config file on the first machine (one sensor) : https://paste.unixfox.eu/ixegupuvob.
Config file on the second machine (with one sensor and the web interface) : https://paste.unixfox.eu/vetejumora.
What I have done wrong?

from maltrail.

stamparm avatar stamparm commented on July 29, 2024

Looks ok. That 404 just means that there are no events for that date.

Can you please do the test ping on the remote sensor (https://paste.unixfox.eu/ixegupuvob) and recheck the web interface on the server:

ping -c 1 136.161.101.53

from maltrail.

unixfox avatar unixfox commented on July 29, 2024

I've already tried it but the web interface don't find any event.
When I do cat /var/log/maltrail/$(date +"%Y-%m-%d").log, the terminal returns me strange logs :

"2015-12-17 19:09:42.923035" vps07 x.x.x.x 30640 x.x.x.x 25900 TCP IP x.x.x.x "potential port scanning" (heuristic)
"2015-12-17 19:09:43.019070" vps07 x.x.x.x 36626 x.x.x.x 25901 TCP IP x.x.x.x "potential port scanning" (heuristic)
"2015-12-17 19:09:42.843072" vps07 x.x.x.x 26071 x.x.x.x 25501 TCP IP x.x.x.x "potential port scanning" (heuristic)
My logs are full of false positives because the ip of the attacker comes from the machine hosting my second sensor.

from maltrail.

stamparm avatar stamparm commented on July 29, 2024

When you set up the remote sensor and server then the server's log files should be filled. I don't know in your case where did you find that /var/log/maltrail/$(date +"%Y-%m-%d").log. Also, the ping I've mentioned should produce the conficker warning at the server logs.

As of false positives, I am not sure that I understand what's going on in your case. From what I can see there are lots of connections on different ports going on in those logs

from maltrail.

unixfox avatar unixfox commented on July 29, 2024

Ok I found a strange bug, sensors are using UTC but python server is using default time zone (CEST) so when I visited the web interface returns it for me 2015-12-18 date.
Is it possible to whitelist an IP on the sensors ?

from maltrail.

stamparm avatar stamparm commented on July 29, 2024

whitelisting is possible. first please update to the latest revision.

there is a new option in maltrail.conf called USER_WHITELIST. just add the IPs there.

p.s. with the latest revision there should not be 404s any more for empty date event data

from maltrail.

stamparm avatar stamparm commented on July 29, 2024

@unixfox please update now (haven't pushed till this moment)

from maltrail.

unixfox avatar unixfox commented on July 29, 2024

@stamparm Okay I'll try new update !

from maltrail.

stamparm avatar stamparm commented on July 29, 2024

@unixfox ok now?

from maltrail.

unixfox avatar unixfox commented on July 29, 2024

@stamparm Everything is working good, thank you so much !

from maltrail.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.