Port Fowarding Iptables

sambuka

New Member
Jun 17, 2020
2
0
1
45
Hello,

I'm using NAT'd LXC containers and have forwarded some ports from the host. That works as expected.
What doesn't work is when the container wants to connect to the forwarded host port.


iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 123-j DNAT --to 10.10.10.2:456

Is there any way to allow the container to connect to host:123? All I get is connection refused.

Thanks
 

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!