Minemeld behind corporate proxy?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Please sign in to see details of an important advisory in our Customer Advisories area.

Minemeld behind corporate proxy?

L2 Linker

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.

1 accepted solution

Accepted Solutions

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.

 

 

View solution in original post

5 REPLIES 5

L7 Applicator

Hi @ArildSaether,

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

 

luigi

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.

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

 

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.

 

 

Hi @ArildSaether,

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

 

Thanks!

  • 1 accepted solution
  • 10267 Views
  • 5 replies
  • 0 Likes
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 LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!