# Basic question:Why is nginx listening at 80 and 443?

**URL:** <https://forum.gl-inet.com/t/basic-question-why-is-nginx-listening-at-80-and-443/35688>\
**Category:** Router\
**Created:** [November 30, 2023, 7:19pm UTC](https://forum.gl-inet.com/t/basic-question-why-is-nginx-listening-at-80-and-443/35688 "2023-11-30T19:19:34Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![soyunplayer](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/s/e19adc/32.png) [@soyunplayer](https://forum.gl-inet.com/u/soyunplayer)\
**Post date:** [November 30, 2023, 7:19pm UTC](https://forum.gl-inet.com/t/basic-question-why-is-nginx-listening-at-80-and-443/35688/1 "2023-11-30T19:19:34Z")

</div>

Hi mates

I have a Flint and I don’t have the ddns 80 http nor https enable so I wonder why is nginx listening.

What does flint use nginx for?

Thanks in advance 😀

---

<div class="post-metadata">

**Author:** ![admon](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/admon/32/32880_2.png) [@admon](https://forum.gl-inet.com/u/admon)\
**Post date:** [November 30, 2023, 7:22pm UTC](https://forum.gl-inet.com/t/basic-question-why-is-nginx-listening-at-80-and-443/35688/2 "2023-11-30T19:22:30Z")

</div>

For the webinterface.

---

<div class="post-metadata">

**Author:** ![bring.fringe18](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/bring.fringe18/32/11777_2.png) [@bring.fringe18](https://forum.gl-inet.com/u/bring.fringe18)\
**Post date:** [November 30, 2023, 7:31pm UTC](https://forum.gl-inet.com/t/basic-question-why-is-nginx-listening-at-80-and-443/35688/3 "2023-11-30T19:31:28Z")

</div>

What @admon said.

The GL GUI & underlying OpenWrt OS LuCI interface (GL GUI → System → Advanced Settings) both use it.

```auto
root@flint:~# netstat -natp | grep nginx
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 4527/nginx.conf -g
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 4527/nginx.conf -g
tcp 0 0 :::443 :::* LISTEN 4527/nginx.conf -g
tcp 0 0 :::80 :::* LISTEN 4527/nginx.conf -g

```

```auto
root@flint:~# ps -w | grep -v grep | grep nginx
 4527 root 6876 S nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf -g daemon off;
 4738 root 10080 S nginx: worker process
 4739 root 9440 S nginx: worker process
 4740 root 9592 S nginx: worker process
 4741 root 9656 S nginx: worker process

```

```auto
root@flint:~# ps -w | grep -v grep | grep gl-ngx-session
10326 root 3760 S {gl-ngx-session} /usr/bin/lua /usr/sbin/gl-ngx-session

```

---

<div class="post-metadata">

**Author:** ![soyunplayer](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/s/e19adc/32.png) [@soyunplayer](https://forum.gl-inet.com/u/soyunplayer)\
**Post date:** [November 30, 2023, 7:43pm UTC](https://forum.gl-inet.com/t/basic-question-why-is-nginx-listening-at-80-and-443/35688/4 "2023-11-30T19:43:01Z")

</div>

Well I feel quite stupid 🤣🤣🤣

Obviously the web interface 🤦🤦

Are this ports configurables? Just to learn. Should I change them?

And the opposite. Could I listen only in the 80 if y don’t use HTTPS in my LAN?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![admon](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/admon/32/32880_2.png) [@admon](https://forum.gl-inet.com/u/admon)\
**Post date:** [November 30, 2023, 7:44pm UTC](https://forum.gl-inet.com/t/basic-question-why-is-nginx-listening-at-80-and-443/35688/5 "2023-11-30T19:44:24Z")

</div>

> [@soyunplayer](#):
>
> Are this ports configurables? Just to learn. Should I change them?

Yes and no. Don’t do it if you are a newbie.  
Play around with some linux VM or sth. like that.

And I can predict the answer of @bring.fringe18 which will be … yes you can change and yes you should change because of security. 🤭

---

<div class="post-metadata">

**Author:** ![bring.fringe18](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/bring.fringe18/32/11777_2.png) [@bring.fringe18](https://forum.gl-inet.com/u/bring.fringe18)\
**Post date:** [November 30, 2023, 7:46pm UTC](https://forum.gl-inet.com/t/basic-question-why-is-nginx-listening-at-80-and-443/35688/6 "2023-11-30T19:46:38Z")

</div>

_NOOOOOO!_ Don’t even _think_ about touching those nginx confs. At best you’ll lock yourself out of the UIs, at worst you’ll be kicked offline until you attempt recovery via U-boot.

---

<div class="post-metadata">

**Author:** ![bring.fringe18](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/bring.fringe18/32/11777_2.png) [@bring.fringe18](https://forum.gl-inet.com/u/bring.fringe18)\
**Post date:** [November 30, 2023, 7:53pm UTC](https://forum.gl-inet.com/t/basic-question-why-is-nginx-listening-at-80-and-443/35688/7 "2023-11-30T19:53:55Z")

</div>

> [@admon](#):
>
> And I can predict the answer of @bring.fringe18 which will be … yes you can change and yes you should change because of security. 🤭

Those confs pull system critical lua scripts including interfacing w/ the RPC daemon. There's a fine line between bravery & stupidity. I'm not that stupid.

```auto
root@flint:~# cat /etc/nginx/conf.d/gl.conf
index gl_home.html;

lua_shared_dict shmem 12k;
lua_shared_dict nonces 16k;
lua_shared_dict sessions 16k;
lua_code_cache off;

init_by_lua_file /usr/share/gl-ngx/oui-init.lua;

server {
    listen 80;
    listen [::]:80;

    listen 443 ssl;
    listen [::]:443 ssl;

    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_prefer_server_ciphers on;
    ssl_ciphers "EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH:DHE+AESGCM:DHE:!RSA!aNULL:!eNULL:!LOW:!RC4:!3DES:!MD5:!EXP:!PSK:!SR P:!DSS:!CAMELLIA:!SEED";
    ssl_session_tickets off;

    ssl_certificate /etc/nginx/nginx.cer;
    ssl_certificate_key /etc/nginx/nginx.key;

    resolver 127.0.0.1 ipv6=off;

    rewrite ^/index.html / permanent;

    location = /rpc {
        content_by_lua_file /usr/share/gl-ngx/oui-rpc.lua;
    }

    location = /upload {
        content_by_lua_file /usr/share/gl-ngx/oui-upload.lua;
    }

    location = /download {
        content_by_lua_file /usr/share/gl-ngx/oui-download.lua;
    }

    location /cgi-bin/ {
        include fastcgi_params;
        fastcgi_read_timeout 300;
        fastcgi_pass unix:/var/run/fcgiwrap.socket;
    }

    location ~.*\.(html|png|jpg|svg)$ {
        add_header Cache-Control "private, no-store, no-cache, must-revalidate, proxy-revalidate";
    }

    include /etc/nginx/gl-conf.d/*.conf;
}

```

---

<div class="post-metadata">

**Author:** ![soyunplayer](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/s/e19adc/32.png) [@soyunplayer](https://forum.gl-inet.com/u/soyunplayer)\
**Post date:** [November 30, 2023, 8:09pm UTC](https://forum.gl-inet.com/t/basic-question-why-is-nginx-listening-at-80-and-443/35688/8 "2023-11-30T20:09:47Z")

</div>

Jajaja

Thanks both of you 👏👏👏👏

I’m not exactly a newbie, I’m a Linux administrator so I would do everything via SSH keeping the original files to reverse everything via SSH.

Anycase I don’t interfiere with the flint scripts so I will remain everything in peace 😀

The goal is simple but useful for my.

In my company the proxy only allows me outgoings connection to 80 and 443 so this is the reason I would like to change.  
At this moment sometimes y use a SSH túnel to my raspberry in order to navigate using a shocks5 server.

I connect to 443 port and I do s NAT to 22 in the router.  
I would like to do it directly using flint and shutdown the Raspi.

I know that is a pedestrian trick but it works 😀

I hope I could explain correctly. Sorry for my English.

I din’t tell your before because it difficult to explain for me in English.

Again thanks to both of you. You have feel me very comfortable here 😀

---

<div class="post-metadata">

**Author:** ![bring.fringe18](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/bring.fringe18/32/11777_2.png) [@bring.fringe18](https://forum.gl-inet.com/u/bring.fringe18)\
**Post date:** [November 30, 2023, 8:15pm UTC](https://forum.gl-inet.com/t/basic-question-why-is-nginx-listening-at-80-and-443/35688/9 "2023-11-30T20:15:03Z")

</div>

> [@soyunplayer](#):
>
> I’m not exactly a newbie, I’m a Linux administrator so I would do everything via SSH keeping the original files to reverse everything via SSH.

Throw this in your crontab (`/etc/crontabs/root`). `/etc/sysupgrade.conf` will let you add addn’l dirs/confs to the tarball… assuming you have a drive in that USB3 port mounted, of course.

```auto
0 3 1 * * find "/mnt/sda1/backup/tarballs" -type f -name "backup-*.tar.gz" | sort -r | awk 'NR > 52' | xargs rm -f; sysupgrade -b "/mnt/sda1/backup/tarballs/backup-${HOSTNAME}-$(cat /sys/class/net/eth0/address | tr '[:lower:]' '[:upper:]' | tr -d ':')-$(date).tar.gz"

```

---

<div class="post-metadata">

**Author:** ![admon](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/admon/32/32880_2.png) [@admon](https://forum.gl-inet.com/u/admon)\
**Post date:** [November 30, 2023, 8:23pm UTC](https://forum.gl-inet.com/t/basic-question-why-is-nginx-listening-at-80-and-443/35688/10 "2023-11-30T20:23:29Z")

</div>

Are you sure that no other ports are allowed?  
Often there are a few other ports because of daily business.

Possibilities:  
UDP 53  
TCP 21  
TCP 3389  
UDP 161  
TCP 8080  
TCP 8443

Would be interesting to check those as well. 🕶

---

<div class="post-metadata">

**Author:** ![bring.fringe18](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/bring.fringe18/32/11777_2.png) [@bring.fringe18](https://forum.gl-inet.com/u/bring.fringe18)\
**Post date:** [November 30, 2023, 8:26pm UTC](https://forum.gl-inet.com/t/basic-question-why-is-nginx-listening-at-80-and-443/35688/11 "2023-11-30T20:26:19Z")

</div>

> [@soyunplayer](#):
>
> In my company the proxy only allows me outgoings connection to 80 and 443 so this is the reason I would like to change.  
> At this moment sometimes y use a SSH túnel to my raspberry in order to navigate using a shocks5 server.
> 
> I connect to 443 port and I do s NAT to 22 in the router.  
> I would like to do it directly using flint and shutdown the Raspi.

So you’re currently using a RPi as a jump box because of the restricted network environment. Okay, wanting to take ngnix off :443 makes perfect sense then. Yeah, I’d do it in your particular case. LuCI is just a front end to `uci` anyways but I hate `uci` so I just go straight for editing the confs.

Don’t forget `vim-full` & `vim-fuller` are available in the opkg repos… so’s `emacs` but who in their right mind would run _that?!_ /s

> [@soyunplayer](#):
>
> I din’t tell your before because it difficult to explain for me in English.

Your English is fine.

> [@soyunplayer](#):
>
> Again thanks to both of you. You have feel me very comfortable here 😀

Cheers. It’s fun to ‘shoot the sh!t’ with you.

> **[Jump server](https://en.wikipedia.org/wiki/Jump_server)**
>
> A jump server, jump host or jump box is a system on a network used to access and manage devices in a separate security zone. A jump server is a hardened and monitored device that spans two dissimilar security zones and provides a controlled means of access between them. The most common example is managing a host in a DMZ from trusted networks or computers.
> In the 1990s when co-location facilities became more common there was a need to provide access between dissimilar security zones. The jump se...

> **[The UCI system](https://openwrt.org/docs/guide-user/base-system/uci)**
>
> The UCI system See also: UCI defaults, Network scripting The abbreviation UCI stands for Unified Configuration Interface, and is a system to centralize the configuration of OpenWrt services. UCI is the successor to the NVRAM-based configuration...

---

<div class="post-metadata">

**Author:** ![bruce](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/bruce/32/35649_2.png) [@bruce](https://forum.gl-inet.com/u/bruce)\
**Post date:** [October 29, 2025, 4:27am UTC](https://forum.gl-inet.com/t/basic-question-why-is-nginx-listening-at-80-and-443/35688/12 "2025-10-29T04:27:41Z")

</div>


