Hello, guys! I have a very strange problem which I don't know how to solve.
I have LXC container on my Proxmox server with two interfaces:
- public IP which is accessible on Internet
- private IP for inter-container network
I also configured this container for:
- SNAT for traffic from internal network (other non-public containers)
- DNAT for certain ports e.g. route HTTP traffic (port 80) to my Nginx container in inter-container network
All works very good! But after some idle time (may be several hours) the container drops all incoming traffic (SSH, HTTP, etc).
The strange thing is that if I open terminal for this container in Proxmox GUI, login as root and execute `iptables -L -t nat` command all traffic goes back and I can SSH into container from the Internet again! I can't understand how to fix that!
I appreciate any help or advice! Please, ask any questions, I can give you more details.
Thank you!
I have LXC container on my Proxmox server with two interfaces:
- public IP which is accessible on Internet
- private IP for inter-container network
I also configured this container for:
- SNAT for traffic from internal network (other non-public containers)
- DNAT for certain ports e.g. route HTTP traffic (port 80) to my Nginx container in inter-container network
All works very good! But after some idle time (may be several hours) the container drops all incoming traffic (SSH, HTTP, etc).
The strange thing is that if I open terminal for this container in Proxmox GUI, login as root and execute `iptables -L -t nat` command all traffic goes back and I can SSH into container from the Internet again! I can't understand how to fix that!
I appreciate any help or advice! Please, ask any questions, I can give you more details.
Thank you!