It has been easy to assign via venet, an OVH failover public IP via the webGUI tool which is very quickly picked up.But now having read the Network Model wiki..
I use the below to establish connection from the KVM VPS to the host proxmox server.
post-up echo 1 > /proc/sys/net/ipv4/ip_forward # These are important for NAT access to internet for VMs
post-up iptables -t nat -A POSTROUTING -s '0.0.0.0/24 -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '0.0.0.0/24 -o vmbr0 -j MASQUERADE
My question now is.. how can one allocate a public IP to a KVM based VPs. Can this assign be automated ?
I use the below to establish connection from the KVM VPS to the host proxmox server.
post-up echo 1 > /proc/sys/net/ipv4/ip_forward # These are important for NAT access to internet for VMs
post-up iptables -t nat -A POSTROUTING -s '0.0.0.0/24 -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '0.0.0.0/24 -o vmbr0 -j MASQUERADE
My question now is.. how can one allocate a public IP to a KVM based VPs. Can this assign be automated ?