User Tools

This is an old revision of the document!


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

<p>

Source Source Source

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also, you acknowledge that you have read and understand our Privacy Policy. If you do not agree, please leave the website.

More information