# Graylog behind external reverse proxy

**URL:** <https://community.graylog.org/t/graylog-behind-external-reverse-proxy/30045>\
**Category:** Graylog Central (peer support)\
**Created:** [September 7, 2023, 4:49pm UTC](https://community.graylog.org/t/graylog-behind-external-reverse-proxy/30045 "2023-09-07T16:49:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Linedo](https://avatars.discourse-cdn.com/v4/letter/l/c89c15/32.png) [@Linedo](https://community.graylog.org/u/Linedo)\
**Post date:** [September 7, 2023, 4:49pm UTC](https://community.graylog.org/t/graylog-behind-external-reverse-proxy/30045/1 "2023-09-07T16:49:01Z")

</div>

Hi,

I am trying to configure Graylog behind an external reverse proxy - it is a feature built into our remote access system (RAS). However I dont know if it uses apache or nginx, are other reverse proxy methods compatible with Graylog?

I know the reverse proxy in the RAS only uses HTTPS (port 443), graylog only seems to have configurations for HTTP (port 80).

Lets say the normal URI to access Graylog is “[logs.graylog.com:9000](http://logs.graylog.com:9000)” I have configured a second URI “[proxylogs.graylog.com](http://proxylogs.graylog.com)” which points to the RAS system, which then forwards this request to “[logs.graylog.com](http://logs.graylog.com)” (this is what the RAS guide says to do).

bind\_address = 0.0.0.0:9000  
http\_publish\_uri = [http://logs.it4a.co.uk:9000/](http://logs.it4a.co.uk:9000/)

However Graylog seems to be rejecting the incoming port 443 TCP packets.

I am running Graylog 4.1.14 on Ubuntu 20.24 (I know I need to upgrade).

Does anyone know what I am doing wrong? I would greatly appreciate any help, thank you in advance!

---

<div class="post-metadata">

**Author:** ![drewmiranda-gl](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/drewmiranda-gl/32/13376_2.png) [@drewmiranda-gl](https://community.graylog.org/u/drewmiranda-gl)\
**Post date:** [September 7, 2023, 7:24pm UTC](https://community.graylog.org/t/graylog-behind-external-reverse-proxy/30045/2 "2023-09-07T19:24:34Z")

</div>

This page is somewhat verbose but has a lot of good info on it:  
[https://go2docs.graylog.org/5-1/setting\_up\_graylog/web\_interface.htm](https://go2docs.graylog.org/5-1/setting_up_graylog/web_interface.htm)

One of the most important things though is making sure you have the following 3 settings appropriately configured:

- http\_bind\_address
  - This is the address that graylog will bind to, can be 0.0.0.0 or a specific IP

- http\_publish\_uri
  - this is the URI that graylog nodes use to talk to each other and should be the fully qualified domain name (FQDN) of the node (e.g. glnode1.domain.tld)

- http\_external\_uri
  - This is the external public facing URL you use to access graylog web interface

Let us know if you have any specific questions.

---

<div class="post-metadata">

**Author:** ![gsmith](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/gsmith/32/1222_2.png) [@gsmith](https://community.graylog.org/u/gsmith)\
**Post date:** [September 9, 2023, 3:49am UTC](https://community.graylog.org/t/graylog-behind-external-reverse-proxy/30045/3 "2023-09-09T03:49:37Z")

</div>

Hey @Linedo

> [@Linedo](#):
>
> I know the reverse proxy in the RAS only uses HTTPS (port 443), graylog only seems to have configurations for HTTP (port 80).

Graylog listens to port 9000, as for a reverse proxy you need to create a block with a **proxy\_pass**  
For example this is part of Nginx configuration.

```auto
erver {
  listen *:443 ssl;
  server_name logs.example.com;

  ssl_certificate /etc/nginx/ssl/fullchain.pem;
  ssl_certificate_key /etc/nginx/ssl/privkey.pem;
  ssl_session_cache shared:SSL:10m;
  ssl_session_timeout 5m;
  ssl_protocols TLSv1.2;
  ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS;
  ssl_prefer_server_ciphers on;

  index index.html index.htm index.php;

  access_log /var/log/nginx/ssl-logs.example.com.access.log combined;
  error_log /var/log/nginx/ssl-logs.example.com.error.log;

  location / {
    proxy_pass http://logs.example.com:9000;
 - - - 
- - - 

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [September 23, 2023, 3:50am UTC](https://community.graylog.org/t/graylog-behind-external-reverse-proxy/30045/4 "2023-09-23T03:50:02Z")

</div>

Closed on September 23, 2023, 3:50am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
