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