Hello,
Browsing the best practices tips, I install and enable Ngninx to avoid allowing access on port 8006 for everybody;
the idea was to offer https on port 443 for all quarantine links
and keep 8006 access from specific IP only for appliance management.
I run ngninx -t to test my configuration, need to change few points *
Then I restrict access on my frontal firewall to port 8006 for few public IPs.
I update my PMG configuration on GUI : Configuration > Spam Detector > Quarantine > Quarantine port : 443
So quarantine links are fine in the dailly report.
-> pointing to my https://MyPublicFQDN
but seems it's only readable from IP which are in my 'allowed-list' on port 8006 ...
other do get a blank page.
I propably miss something.
Any idea ?
Thanks
Browsing the best practices tips, I install and enable Ngninx to avoid allowing access on port 8006 for everybody;
the idea was to offer https on port 443 for all quarantine links
and keep 8006 access from specific IP only for appliance management.
I run ngninx -t to test my configuration, need to change few points *
Code:
server {
listen 80 default_server;
rewrite ^(.*) https://MyPublicFQDN permanent;
}
server {
listen 443 ssl;
server_name LocalServerName;
# * ssl on; > I had to remove this and add SSL on the first line
ssl_certificate /etc/pmg/pmg-api.pem;
ssl_certificate_key /etc/pmg/pmg-api.pem;
proxy_redirect off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header PVEClientIP $remote_addr;
proxy_buffering off;
client_max_body_size 0;
proxy_connect_timeout 3600s;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
send_timeout 3600s;
# proxy requests for static components
location ~ /proxmoxlib.js$|/favicon.ico$|/pve2/|/fontawesome/|/framework7/|/pwt/ {
proxy_pass https://localhost:8006;
}
location /quarantine {
proxy_pass https://localhost:8006;
}
location /api2 {
location ~ /api2/(extjs|json|htmlmail)/(access/ticket$|version$) {
proxy_pass https://localhost:8006;
}
location ~ /api2/(extjs|json|htmlmail)/nodes/.+/subscription$ {
proxy_pass https://localhost:8006;
}
location ~ /api2/(extjs|json|htmlmail)/quarantine {
proxy_pass https://localhost:8006;
}
return 403;
}
location / {
return 301 $scheme://www.facebook.com/MyPage;
}
}
Then I restrict access on my frontal firewall to port 8006 for few public IPs.
I update my PMG configuration on GUI : Configuration > Spam Detector > Quarantine > Quarantine port : 443
So quarantine links are fine in the dailly report.
-> pointing to my https://MyPublicFQDN
but seems it's only readable from IP which are in my 'allowed-list' on port 8006 ...
other do get a blank page.
I propably miss something.
Any idea ?
Thanks
Last edited: