Container NAT Prerouting?

vispa

Well-Known Member
Feb 20, 2016
34
0
46
42
Hi All,

We’re building a proxy server using squid and need an iptables rule which redirects port 80 to 3128.

Is this even possible on a CT as it doesn’t appear to work when we add the iptables rule via command line.

Any suggestions would be appreciated.

James
 
We’re building a proxy server using squid and need an iptables rule which redirects port 80 to 3128.

Is this even possible on a CT as it doesn’t appear to work when we add the iptables rule via command line.


iptables work in containers without problems. Check inside the container if your rule disappears and in case of yes why. Otherwise investigate packet flow/transformation via tcpdump.
 

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!