Hi,
I have created a test Web Server on a freshly installed Debian container, unprivileged one.
I have set up my firewall rules on my router to redirect http requests from the internet to my Web Server container which is using Nginx.
I can see the requests coming but the ACK is not sent back somehow (as can be seen below...)
If trying to access the Web Server from the LAN network, it works and I am getting the Nginx default webpage.
I have already restarted the VM, host and disable the "firewall" on the VM on it but it didn't help.
It's definitely a network issue as I've also tried routing the SSH port from the outside to my VM and same thing is happening, so not related to Nginx.
I have another Ubuntu unprivileged container on the same host running a Ubiquiti controller and the requests sent from the internet to port 7443 are working fine.
I can access my NVR from the outside with no issue.
What could I be missing?
root@WebServer:~# tshark -i eth0 'tcp port 80'
Running as user "root" and group "root". This could be dangerous.
Capturing on 'eth0'
1 0.000000000 XXX.XXX.XXX.XXX ? 10.0.2.251 TCP 66 5889 ? 80 [SYN] Seq=0 Win=4200 Len=0 MSS=1400 WS=16 SACK_PERM=1
2 0.000045510 10.0.2.251 ? XXX.XXX.XXX.XXX TCP 66 80 ? 5889 [SYN, ACK] Seq=0 Ack=1 Win=64240 Len=0 MSS=1460 SACK_PERM=1 WS=128
3 1.023869390 10.0.2.251 ? XXX.XXX.XXX.XXX TCP 66 [TCP Retransmission] 80 ? 5889 [SYN, ACK] Seq=0 Ack=1 Win=64240 Len=0 MSS=1460 SACK_PERM=1 WS=128
4 2.999228795 XXX.XXX.XXX.XXX ? 10.0.2.251 TCP 66 [TCP Retransmission] 5889 ? 80 [SYN] Seq=0 Win=4200 Len=0 MSS=1400 WS=16 SACK_PERM=1
5 2.999263818 10.0.2.251 ? XXX.XXX.XXX.XXX TCP 66 [TCP Retransmission] 80 ? 5889 [SYN, ACK] Seq=0 Ack=1 Win=64240 Len=0 MSS=1460 SACK_PERM=1 WS=128
6 5.023860819 10.0.2.251 ? XXX.XXX.XXX.XXX TCP 66 [TCP Retransmission] 80 ? 5889 [SYN, ACK] Seq=0 Ack=1 Win=64240 Len=0 MSS=1460 SACK_PERM=1 WS=128
7 5.998972742 XXX.XXX.XXX.XXX ? 10.0.2.251 TCP 66 [TCP Retransmission] 5889 ? 80 [SYN] Seq=0 Win=4200 Len=0 MSS=1400 WS=16 SACK_PERM=1
8 5.999007558 10.0.2.251 ? XXX.XXX.XXX.XXX TCP 66 [TCP Retransmission] 80 ? 5889 [SYN, ACK] Seq=0 Ack=1 Win=64240 Len=0 MSS=1460 SACK_PERM=1 WS=128
I have created a test Web Server on a freshly installed Debian container, unprivileged one.
I have set up my firewall rules on my router to redirect http requests from the internet to my Web Server container which is using Nginx.
I can see the requests coming but the ACK is not sent back somehow (as can be seen below...)
If trying to access the Web Server from the LAN network, it works and I am getting the Nginx default webpage.
I have already restarted the VM, host and disable the "firewall" on the VM on it but it didn't help.
It's definitely a network issue as I've also tried routing the SSH port from the outside to my VM and same thing is happening, so not related to Nginx.
I have another Ubuntu unprivileged container on the same host running a Ubiquiti controller and the requests sent from the internet to port 7443 are working fine.
I can access my NVR from the outside with no issue.
What could I be missing?
root@WebServer:~# tshark -i eth0 'tcp port 80'
Running as user "root" and group "root". This could be dangerous.
Capturing on 'eth0'
1 0.000000000 XXX.XXX.XXX.XXX ? 10.0.2.251 TCP 66 5889 ? 80 [SYN] Seq=0 Win=4200 Len=0 MSS=1400 WS=16 SACK_PERM=1
2 0.000045510 10.0.2.251 ? XXX.XXX.XXX.XXX TCP 66 80 ? 5889 [SYN, ACK] Seq=0 Ack=1 Win=64240 Len=0 MSS=1460 SACK_PERM=1 WS=128
3 1.023869390 10.0.2.251 ? XXX.XXX.XXX.XXX TCP 66 [TCP Retransmission] 80 ? 5889 [SYN, ACK] Seq=0 Ack=1 Win=64240 Len=0 MSS=1460 SACK_PERM=1 WS=128
4 2.999228795 XXX.XXX.XXX.XXX ? 10.0.2.251 TCP 66 [TCP Retransmission] 5889 ? 80 [SYN] Seq=0 Win=4200 Len=0 MSS=1400 WS=16 SACK_PERM=1
5 2.999263818 10.0.2.251 ? XXX.XXX.XXX.XXX TCP 66 [TCP Retransmission] 80 ? 5889 [SYN, ACK] Seq=0 Ack=1 Win=64240 Len=0 MSS=1460 SACK_PERM=1 WS=128
6 5.023860819 10.0.2.251 ? XXX.XXX.XXX.XXX TCP 66 [TCP Retransmission] 80 ? 5889 [SYN, ACK] Seq=0 Ack=1 Win=64240 Len=0 MSS=1460 SACK_PERM=1 WS=128
7 5.998972742 XXX.XXX.XXX.XXX ? 10.0.2.251 TCP 66 [TCP Retransmission] 5889 ? 80 [SYN] Seq=0 Win=4200 Len=0 MSS=1400 WS=16 SACK_PERM=1
8 5.999007558 10.0.2.251 ? XXX.XXX.XXX.XXX TCP 66 [TCP Retransmission] 80 ? 5889 [SYN, ACK] Seq=0 Ack=1 Win=64240 Len=0 MSS=1460 SACK_PERM=1 WS=128