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