Connection Issue: Doesn't receive API requests

Matthew_js

New Member
Feb 25, 2024
1
0
1
I am using NetComm router, where I have set NAT to pass HTTP and HTTPS requests (from 80 and 443 ports to 80 and 443 ports respectively) to the internal IP 192.168.20.80 (as shown below) of Proxmox.
NAT.pngThis is the internal IP of my Proxmox which also I use to see the interface of Proxmox, like: 192.168.20.80:8006. Here is my Proxmox / Network set up:

Prox Network.png

In another trial, I had set the CIDR to 192.168.20.90/24 and gave to this IP - 192.168.20.90 to the VM in its /etc/netplan/xxxx.yaml file, but the issue mentioned below arise. Here is my /etc/netplan/xxxx.yaml file:

netplan.png

and /etc/hosts files:

hosts.png

I have turn off all firewalls in the router, then in the Node and in the VM for testing purposes. With the "iptables -L -n | grep -E ':)80|:443)' " command in the Linux firewall, I get the following:

Code:
root@xxxNode:~# iptables -L -n | grep -E '(:80|:443)'
ACCEPT     6    --  0.0.0.0/0            0.0.0.0/0            tcp dpt:443
ACCEPT     6    --  0.0.0.0/0            0.0.0.0/0            tcp dpt:80

By the way, in my VM I have Ubuntu server, in which I get access to the internet perfectly. The Ubuntu server hosts my website's backend application while frontend is hosted in another hosting service provider's server.

The issue is it that, using the browser of Ubuntu server inside the VM, when I send API request (for logging in in the client) to the backend, I can log in successfully, but when I use browser of any device in my network or in outside of my network, I get connection error: "net::ERR_CONNECTION_TIMED_OUT".

I have checked the LAN loopback in the router, I am aware of dynamic IP, my public IP is not static for now, but I wait for its propagation, try after its full propagation, still get the same error. I believe that the issue can derive from router settings, but I tried everything.

It is my 18th day that I am working on this issue, please, send any suggestion you can.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!