Whats the easiest way to forward public IP to container?

Lanlink

New Member
Jan 14, 2010
28
0
1
Hi

I've been playing around with the settings in proxmox for sometime now, and I can't seem to get my public IP to be directly attached to a container on the server.

Could someone please post a guide/instructions on how to do this?

I've tried bridging a connection to an ethernet port, but for some reason it doesnt 'fetch' an IP address from the ISP.

I've search the forums for an answer but as of yet unable to find a solution that works.


Thank you.
 
Thanks for your input - so just to confirm in /etc/network/interfaces add in at any point or in certain areas?
Eth0 is my public IP
eth1 is my private IP



iptables -t nat -A PREROUTING -p tcp -i eth1 --dport 80 -j DNAT --192.168.0.249:80

iptables -A FORWARD -i eth0 -p tcp --dport 80 -j ACCEPT
 

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!