Hello everyone,
I've been struggling for weeks to host websites through VMs and containers running Ubuntu, Nginx, and WordPress on my Proxmox server.
I replicated the usual Nginx configuration that works on standard cloud servers, but it doesn't seem to work properly.
Issue:
I am sure that part of the problems are caused by the fortigate firewall which is configured like this:the router (192.168.0.253) connects the firewall on the dmz port.
The firewall(192.168.0.253) contains the entire network inside. The IP of the machine with proxmox is 192.168.1.98/24 while statically I then assign an IP of this class for the VMs.
When I create a VM I set the network bridge to vmbr0 which refers to the network card with the server's IP.
My Questions:
I thank you in advance and hope for your help.
I've been struggling for weeks to host websites through VMs and containers running Ubuntu, Nginx, and WordPress on my Proxmox server.
I replicated the usual Nginx configuration that works on standard cloud servers, but it doesn't seem to work properly.
Issue:
- I cannot reach the website from outside my network using the configured domain name.
- When I try to obtain SSL certificates using Certbot, the process fails.
- I also tried setting up a container (CT) with the WordPress template. While I can access http://ip-host-ct/wp-admin, after logging in it redirects to the configured domain, which fails to load and returns an error page.
I am sure that part of the problems are caused by the fortigate firewall which is configured like this:the router (192.168.0.253) connects the firewall on the dmz port.
The firewall(192.168.0.253) contains the entire network inside. The IP of the machine with proxmox is 192.168.1.98/24 while statically I then assign an IP of this class for the VMs.
When I create a VM I set the network bridge to vmbr0 which refers to the network card with the server's IP.
My Questions:
- How should I configure the network on the VMs (bridge, NAT, or something else) to ensure the issue is isolated to the firewall and not Proxmox?
- Are there specific settings or forwarding rules I should focus on for Fortigate to ensure HTTP/HTTPS traffic reaches the VMs?
- Could the double NAT (router → Fortigate) be causing issues? If so, how can I verify and mitigate this?
I thank you in advance and hope for your help.