misp-modules icon indicating copy to clipboard operation
misp-modules copied to clipboard

Module settings / module for proxy settings

Open iglocska opened this issue 7 years ago • 5 comments

Have a way in tornado to set per module the proxy settings instead o just having a global setting.

iglocska avatar Oct 20 '16 15:10 iglocska

This issue seems to suggest there's a global setting for the proxy used by misp-modules. Please share where that is, how to set it, etc. Thanks in advance.

chrisinmtown avatar Apr 19 '21 15:04 chrisinmtown

I do that <- global by setting an environment variable in the startup script of the modules.

cudeso avatar Apr 19 '21 17:04 cudeso

Right now we use the following line in /etc/systemd/system/misp-modules.service:

/usr/bin/scl enable rh-python36 rh-ruby22 '/data/misp/venv/bin/misp-modules -l 127.0.0.1 -s'

I think you're suggesting I should create a shell script, add entries http_proxy and no_proxy, then invoke the /usr/bin/scl.. line from misp-modules.service in the script. I sure don't want to edit files that come from misp_modules.

chrisinmtown avatar Apr 19 '21 18:04 chrisinmtown

I have added this line in the systemd file of the modules service script.

Environment=http_proxy=http://PROXY:3128

cudeso avatar Apr 19 '21 18:04 cudeso

A nice solution @cudeso thank you! What is the syntax if you need to set TWO environment variables?

chrisinmtown avatar Apr 19 '21 19:04 chrisinmtown