Http proxy for outgoing connection

I noticed that graylog needs to contact external services in order to access Illuminate content packs.

My server, by security policy, cannot surf directly on internet. It must use an http proxy in order to reach internet.

Where can I configure the http proxy? Is it possible?

I’m working on Graylog 6.0.8 Enterprise in a Linux environment.

You can configure a proxy at the JVM level. That would probably work.

Various types of proxies are supported and the docs describe relevant property settings – here’s Java 18: Java Networking

You can add property settings to graylog’s JVM various ways. I believe the standard approach (yum distros) is to put them in /etc/sysconfig/graylog-server

Hi, did you solve this problem?

Yes,

I edited this configuration this file:

/etc/graylog/server/server.conf

http_proxy_uri = http://proxy.example.com:3128
http_non_proxy_hosts = 10.0.*,*.example.com

Another working solution, suggested in previous post, JAVA OPTION in this file:

/etc/default/graylog-server

GRAYLOG_SERVER_JAVA_OPTS="$GRAYLOG_SERVER_JAVA_OPTS -Dhttp.proxyHost=proxy.example.com -Dhttp.proxyPort=3128 "

Thanks for following up. I never noticed the setting in the graylog config file. That is a simpler solution than the JVM setting I suggested.