# How to install discourse behind a firewall

**URL:** https://meta.discourse.org/t/how-to-install-discourse-behind-a-firewall/141092
**Category:** Support
**Created:** [February 9, 2020, 2:12am UTC](https://meta.discourse.org/t/how-to-install-discourse-behind-a-firewall/141092 "2020-02-09T02:12:30Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![LinuxSuRen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/linuxsuren/32/158139_2.png) [@LinuxSuRen](https://meta.discourse.org/u/LinuxSuRen)
#### Post date: [February 9, 2020, 2:12am UTC](https://meta.discourse.org/t/how-to-install-discourse-behind-a-firewall/141092/1 "2020-02-09T02:12:30Z")

</div>

I already installed discourse in a server behind a firewall. And an HTTP proxy server was set up by

```plaintext
export https_proxy=http://192.168.1.2:3128
export http_proxy=http://192.168.1.2:3128

```

But I found that the email sending function is not ok. It’s always timeout, so, I guess it caused by the network setting.

Thanks for your time to read my issues. Any hints are very appreciated.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [February 9, 2020, 2:26am UTC](https://meta.discourse.org/t/how-to-install-discourse-behind-a-firewall/141092/2 "2020-02-09T02:26:01Z")

</div>

Your SMTP server is also behind the same firewall?

---

<div class="post-metadata">

### Author: ![LinuxSuRen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/linuxsuren/32/158139_2.png) [@LinuxSuRen](https://meta.discourse.org/u/LinuxSuRen)
#### Post date: [February 9, 2020, 2:26am UTC](https://meta.discourse.org/t/how-to-install-discourse-behind-a-firewall/141092/3 "2020-02-09T02:26:53Z")

</div>

My SMTP server is the public service from the Internet. Do I need a sock proxy server?

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [January 4, 2024, 9:15am UTC](https://meta.discourse.org/t/how-to-install-discourse-behind-a-firewall/141092/4 "2024-01-04T09:15:50Z")

</div>


