Hi all,
I have Nginx running and being used primarily as a reverse proxy. So far all is running well for web services, but I am having a problem proxying requests from/to an internal service running for Sophos message relaying. This service uses ports 8192-8194. I allowed these through the firewall on my box (Centos) and then setup the usual server blocks in my reverseproxy config which sends them on to the internal server. An example is below.
server {
listen 8192;
server_name My_Server;
access_log /etc/nginx/logs/sophos_relay_ports/access.log;
error_log /etc/nginx/logs/sophos_relay_ports/error.log debug;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://My_Internal_Server:8192;
proxy_read_timeout 150;
proxy_buffering off;
proxy_redirect off;
}
}
I can;'t seem to figure out why the traffic is not reaching the destination. Does anyone have a suggestion?
Thanks.
Regards,
R
I have Nginx running and being used primarily as a reverse proxy. So far all is running well for web services, but I am having a problem proxying requests from/to an internal service running for Sophos message relaying. This service uses ports 8192-8194. I allowed these through the firewall on my box (Centos) and then setup the usual server blocks in my reverseproxy config which sends them on to the internal server. An example is below.
server {
listen 8192;
server_name My_Server;
access_log /etc/nginx/logs/sophos_relay_ports/access.log;
error_log /etc/nginx/logs/sophos_relay_ports/error.log debug;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://My_Internal_Server:8192;
proxy_read_timeout 150;
proxy_buffering off;
proxy_redirect off;
}
}
I can;'t seem to figure out why the traffic is not reaching the destination. Does anyone have a suggestion?
Thanks.
Regards,
R