Hi,
According to the following output nginx is running on port 80
sudo: netstat: command not found
[root@stbkp01 ~]# ss -tnlp | grep LISTEN
LISTEN 0 511 *:80 : users:((“nginx”,pid=756,fd=6),(“nginx”,pid=755,fd=6),(“nginx”,pid=754,fd=6),(“nginx”,pid=753,fd=6),(“nginx”,pid=752,fd=6),(“nginx”,pid=751,fd=6),(“nginx”,pid=750,fd=6),(“nginx”,pid=749,fd=6),(“nginx”,pid=748,fd=6),(“nginx”,pid=747,fd=6),(“nginx”,pid=746,fd=6),(“nginx”,pid=745,fd=6),(“nginx”,pid=744,fd=6),(“nginx”,pid=743,fd=6),(“nginx”,pid=742,fd=6),(“nginx”,pid=741,fd=6),(“nginx”,pid=740,fd=6),(“nginx”,pid=739,fd=6),(“nginx”,pid=738,fd=6),(“nginx”,pid=737,fd=6),(“nginx”,pid=736,fd=6),(“nginx”,pid=735,fd=6),(“nginx”,pid=734,fd=6),(“nginx”,pid=733,fd=6),(“nginx”,pid=732,fd=6),(“nginx”,pid=731,fd=6),(“nginx”,pid=730,fd=6),(“nginx”,pid=729,fd=6),(“nginx”,pid=728,fd=6),(“nginx”,pid=727,fd=6),(“nginx”,pid=726,fd=6),(“nginx”,pid=725,fd=6),(“nginx”,pid=724,fd=6),(“nginx”,pid=723,fd=6),(“nginx”,pid=722,fd=6),(“nginx”,pid=721,fd=6),(“nginx”,pid=720,fd=6))
LISTEN 0 128 :22 : users:((“sshd”,pid=503,fd=3))
LISTEN 0 511 :6400 : users:((“httpd”,pid=689,fd=3),(“httpd”,pid=688,fd=3),(“httpd”,pid=687,fd=3),(“httpd”,pid=686,fd=3),(“httpd”,pid=685,fd=3),(“httpd”,pid=684,fd=3))
LISTEN 0 4096 127.0.0.11:39267 :
LISTEN 0 511 [::]:80 [::]: users:((“nginx”,pid=756,fd=7),(“nginx”,pid=755,fd=7),(“nginx”,pid=754,fd=7),(“nginx”,pid=753,fd=7),(“nginx”,pid=752,fd=7),(“nginx”,pid=751,fd=7),(“nginx”,pid=750,fd=7),(“nginx”,pid=749,fd=7),(“nginx”,pid=748,fd=7),(“nginx”,pid=747,fd=7),(“nginx”,pid=746,fd=7),(“nginx”,pid=745,fd=7),(“nginx”,pid=744,fd=7),(“nginx”,pid=743,fd=7),(“nginx”,pid=742,fd=7),(“nginx”,pid=741,fd=7),(“nginx”,pid=740,fd=7),(“nginx”,pid=739,fd=7),(“nginx”,pid=738,fd=7),(“nginx”,pid=737,fd=7),(“nginx”,pid=736,fd=7),(“nginx”,pid=735,fd=7),(“nginx”,pid=734,fd=7),(“nginx”,pid=733,fd=7),(“nginx”,pid=732,fd=7),(“nginx”,pid=731,fd=7),(“nginx”,pid=730,fd=7),(“nginx”,pid=729,fd=7),(“nginx”,pid=728,fd=7),(“nginx”,pid=727,fd=7),(“nginx”,pid=726,fd=7),(“nginx”,pid=725,fd=7),(“nginx”,pid=724,fd=7),(“nginx”,pid=723,fd=7),(“nginx”,pid=722,fd=7),(“nginx”,pid=721,fd=7),(“nginx”,pid=720,fd=7))
LISTEN 0 128 [::]:22 [::]: users:((“sshd”,pid=503,fd=4))
[root@stbkp01 ~]#
the Question asks for following :
We have a backup management application UI hosted on Nautilus's
backup server in Stratos DC
. That backup management application code is deployed under Apache on the backup server itself, and Nginx is running as a reverse proxy on the same server. Apache and Nginx ports are 6400
and 8094
, respectively. We have iptables firewall installed on this server. Make the appropriate changes to fulfill the requirements mentioned below:
We want to open all incoming connections to Nginx’s port and block all incoming connections to Apache’s port. Also make sure rules are permanent.
It’s failing even after the right configuration.