- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
06-26-2017 03:42 AM - edited 06-26-2017 04:07 AM
Hi,
There doesn't seem to be anything official on how to set up Minemeld to use corporate proxies. When trying to contact external URLs from within minemeld, it does not respect the proxy settings in either /etc/profile or /etc/default. It tries to access the Internet directly, and fails miserably, of course.
How do I make Minemeld hit the proxies?
BTW, I am using CentOS for this installation, but I don't think that should matter much.
06-29-2017 02:42 AM
Thank you.
That worked perfectly. But maybe that should be included in the documentation for CentOS7/RHEL7 and Minemeld? It's hard to see how to make it work with a proxy without that nugget of insight.
I also needed to change the sudoers file in order to install behind a proxy, adding:
Defaults env_keep += "http_proxy"
Defaults env_keep += "https_proxy"
in order for the environment variables to be kept when ansible does something with elevated privileges.
06-27-2017 10:20 AM
Hi @ArildSaether,
please see my answer to your previous thread, /etc/default/minemeld is honored (just remember the "export" command before the vars).
luigi
06-29-2017 12:02 AM
As far as I can figure out, this is related to Minemeld on CentOS 7 only. Works great on Ubuntu.
Would like to hear if anyone has been able to make it work with CentOS and proxies.
06-29-2017 01:24 AM
Hi @ArildSaether,
CentOS 7 uses systemd, you can use a systemd override to supply environment variables to minemeld service. The following command creates an override for minemeld service and opens an editor where you can edit the override file:
$ sudo systemctl edit minemeld
Copy&paste the following content (change the proxy address first :-)):
[Service] Environment="HTTP_PROXY=http://192.168.55.1:8080" Environment="HTTPS_PROXY=http://192.168.55.1:8080"
And then:
$ sudo systemctl restart minemeld
06-29-2017 02:42 AM
Thank you.
That worked perfectly. But maybe that should be included in the documentation for CentOS7/RHEL7 and Minemeld? It's hard to see how to make it work with a proxy without that nugget of insight.
I also needed to change the sudoers file in order to install behind a proxy, adding:
Defaults env_keep += "http_proxy"
Defaults env_keep += "https_proxy"
in order for the environment variables to be kept when ansible does something with elevated privileges.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!