Minemeld behind corporate proxy?

Reply
Highlighted
L1 Bithead

Minemeld behind corporate proxy?

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.

Tags (2)
L7 Applicator

Re: Minemeld behind corporate proxy?

Hi @ArildSaether,

please see my answer to your previous thread, /etc/default/minemeld is honored (just remember the "export" command before the vars).

 

luigi

L1 Bithead

Re: Minemeld on CentOS behind corporate proxy?

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.

L7 Applicator

Re: Minemeld on CentOS behind corporate proxy?

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

 

L1 Bithead

Re: Minemeld on CentOS behind corporate proxy?

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.

 

 

L7 Applicator

Re: Minemeld on CentOS behind corporate proxy?

Hi @ArildSaether,

yes, that's definitely a good point. We will add it to the docs.

 

Thanks!

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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 Live Community as a whole!

The Live Community thanks you for your participation!