fixed by issueing this command: sudo setsebool httpd_can_network_connect on
-P
and this [/etc/nginx/nginx.conf]
...
http {
...
server {
...
location /tunnel/ {
proxy_pass http://127.0.0.1:6033;
}
}
}
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,288756,288763#msg-288763
___
* 192.168.1.100 (reverse proxy and ssh tunnel server) : centos 8 + sshd 8 +
nginx 1.14.1 + firewalld disabled
* 192.168.1.101 (local web server) : windows 10 + web App (port 80)
exposed to remote access with SSH reverse tunnel (port 6033)
* 192.168.1.102 (remote machine) : Ubuntu + curl