1/ define vmbr1 in proxmox interface :
192.168.0.254
255.255.255.0
2/ execute in host :
Get access to the outside
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o vmbr0 -j SNAT --to xxx.xxx.xxx.xxx
get access from the outside
iptables -t nat -A PREROUTING -p tcp -d xxx.xxx.xxx.xxx --dport xxx -i vmbr0 -j DNAT --to-destination 192.168.0.1:xxx
or
iptables -t nat -A PREROUTING -p tcp -d xxx.xxx.xxx.xxx --dport 10000:10100 -i vmbr0 -j DNAT --to-destination 192.168.0.1
iptables -t nat -A PREROUTING -p udp -d xxx.xxx.xxx.xxx --dport 10000:10100 -i vmbr0 -j DNAT --to-destination 192.168.0.1
[[https://openvz.org/Using_NAT_for_container_with_private_IPs|Source]]
[[http://ungeek.be/comment-rendre-accessible-sur-internet-un-vps-ayant-une-ip-privee-faire-du-nat/|Source]]
[[http://opensimulator.org/wiki/NAT_Loopback_Routers|Source]]
{{tag>vps nat proxmox openvz}}