Giter VIP home page Giter VIP logo

Comments (10)

jatrost avatar jatrost commented on September 28, 2024

Please update to the latest code. I believe this is due to an error in how we were geo locating IPs (and causing timeouts if the IP was rfc1918). This was just fixed yesterday and merged this morning (https://github.com/threatstream/mhn/pull/30). If that works please close this issue.

from mhn.

ch40s avatar ch40s commented on September 28, 2024

No it hasn't been fixed even after updating to the latest code.

from mhn.

jatrost avatar jatrost commented on September 28, 2024

Do be sure, can you try this?

cd /opt/mhn
sudo git stash  # if this errors out then u may need to set some git config options and try again
sudo git pull
sudo git stash pop
sudo supervisorctl restart all

Reload the webapp in your browser.

If it still fails, can you provide the last 20 lines of your mhn.log file as well as the the output of this: git log | head run from your /opt/mhn dir?

from mhn.

ch40s avatar ch40s commented on September 28, 2024

It still fails.

sudo git log | head
commit 0adced4
Merge: f51b7fc 3684eff
Author: Jason Trost [email protected]
Date: Fri Jul 18 13:14:42 2014 -0400
Merge pull request #33 from threatstream/better-snort-logging
added year and UTC conversion to snort logging
commit f51b7fc

mhn.log:
2014-07-18 16:47:05,611 - /opt/mhn/server/mhn/tasks/rules.py - Fetching sources from 1 sources.
2014-07-18 16:47:05,612 - /opt/mhn/server/mhn/tasks/rules.py - Downloading from "http://rules.emergingthreats.net/open/snort-2.9.0/emerging-all.rules".
2014-07-18 16:48:03,262 - /opt/mhn/server/mhn/tasks/rules.py - Bulk importing 13856 rules.
2014-07-18 16:50:21,545 - /opt/mhn/server/mhn/tasks/rules.py - Rendering rules.
2014-07-18 16:51:35,271 - /opt/mhn/server/mhn/tasks/rules.py - Finished rendering rules.
2014-07-18 17:00:00,215 - ./mhn/ui/utils.py - Could not determine flag for ip: A.B.C.D (public IP)
2014-07-18 17:02:07,446 - ./mhn/ui/utils.py - Could not determine flag for ip: A.B.C.D
2014-07-18 17:17:10,743 - ./mhn/ui/utils.py - Could not determine flag for ip: A.B.C.D
2014-07-18 17:19:18,123 - ./mhn/ui/utils.py - Could not determine flag for ip: A.B.C.D
2014-07-18 17:32:44,588 - ./mhn/ui/utils.py - Could not determine flag for ip: A.B.C.D
2014-07-18 17:34:51,820 - ./mhn/ui/utils.py - Could not determine flag for ip: A.B.C.D
2014-07-18 17:36:59,180 - ./mhn/ui/utils.py - Could not determine flag for ip: A.B.C.D
2014-07-18 22:48:28,332 - ./mhn/ui/utils.py - Could not determine flag for ip: A.B.C.D
2014-07-18 22:52:27,308 - ./mhn/ui/utils.py - Could not determine flag for ip: A.B.C.D

from mhn.

serpulga avatar serpulga commented on September 28, 2024

Okay, but it does seems like a problem with flag fetching still.

from mhn.

serpulga avatar serpulga commented on September 28, 2024

@ch40s try: https://geospray.threatstream.com/ip/A.B.C.D on your browser, and let us know the response.

from mhn.

ch40s avatar ch40s commented on September 28, 2024

@serpulga geolocation works fine. I just noticed the geo_api in utils.py, the server is behind a web proxy so as soon as I specified the proxy in utils.py everything works fine. :)
I was hoping that the variables from /etc/environment would be used, but seems that they don't.

from mhn.

ch40s avatar ch40s commented on September 28, 2024

Can be closed if there is nothing to be done to prevent this behavior.

from mhn.

serpulga avatar serpulga commented on September 28, 2024

Thanks for explaining the issue. Hopefully this conversation will help others with the same problems.

from mhn.

crypt0b0y avatar crypt0b0y commented on September 28, 2024

@ch40s thank you for finding solution! Can you please give an example code utils.py with proxy? I dont understand where i need to specified it 👍

from mhn.

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.