Comments (10)
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.
No it hasn't been fixed even after updating to the latest code.
from mhn.
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.
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.
Okay, but it does seems like a problem with flag fetching still.
from mhn.
@ch40s try: https://geospray.threatstream.com/ip/A.B.C.D on your browser, and let us know the response.
from mhn.
@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.
Can be closed if there is nothing to be done to prevent this behavior.
from mhn.
Thanks for explaining the issue. Hopefully this conversation will help others with the same problems.
from mhn.
@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)
- Error during setup: ImportError: No module named collections_abc HOT 2
- mhn install fails on linux ubuntu 18.04.6:No such file or directory: '/opt/mhn/server/../../GeoLite2-City.mmdb' HOT 1
- mhn install fails on linux ubuntu 16.04.7 HOT 2
- mnemosyne fails to start HOT 1
- daily report of attacks
- Add new honeypot sensor HOT 1
- Cowrie deployment failure HOT 1
- Error in python file generateconfig.py ! HOT 1
- pcap import to mhn HOT 1
- Honeymap do not display a map HOT 1
- Running the Command Prompt in Ubuntu HOT 3
- Command errored out with exit status 1 HOT 1
- AssertionError: Filename /usr/bin/Python-3.10.12/Lib/os.py does not start with any of these prefixes: ['/usr/local', '/usr/local'] HOT 1
- Error: Python-pip has no installation candidate HOT 2
- Threatstream Repository for hpfeeds No Longer Exists - mnemosyne Installation Fails HOT 8
- Missing repositories at the threatstream HOT 1
- Cowrie FATAL Exited too Quickly HOT 3
- Upgrade to Python 3 HOT 1
- Changing Dashboard port HOT 1
- Too much alerts
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mhn.