hi,
I just rented a EX4 server from hetzner and my ovz machines can't reach internet.
I've read that openvz should work out of the box on hetzner (only kvm machines need some additional work) but I reinstalled 3 times without succes.
there's a lot of threads on this forum regarding hetzner bot none of them make my ovz containers ping nothing but main IP.
is there anyone facing same problem?
EDIT: Solved!
My problam was that I have only one public IP and all recipes I saw were talking about several IPs.
It was easier than I thought:
install Proxmox as explained in Hetzner docs and then edit /etc/network/interfaces
details of eth0 should be self-explanatori.
for vmbr0 you need to create a gateway for all your internal machines. I've choose network 192.168.50/24 but it's up to you.
just remember to create containers with veth (bridged) interfaces and configure with an IP within your range. you must also configure vmbr0 address as gateway for you container.
I just rented a EX4 server from hetzner and my ovz machines can't reach internet.
I've read that openvz should work out of the box on hetzner (only kvm machines need some additional work) but I reinstalled 3 times without succes.
there's a lot of threads on this forum regarding hetzner bot none of them make my ovz containers ping nothing but main IP.
is there anyone facing same problem?
EDIT: Solved!
My problam was that I have only one public IP and all recipes I saw were talking about several IPs.
It was easier than I thought:
install Proxmox as explained in Hetzner docs and then edit /etc/network/interfaces
### Hetzner Online AG - installimage
# Loopback device:
auto lo
iface lo inet loopback
# device: eth0
auto eth0
iface eth0 inet static
address 5.9.84.XXX
broadcast 5.9.84.YYY
netmask 255.255.255.255
pointopoint 5.9.84.ZZZ
gateway 5.9.84.ZZZ
# default route to access subnet
up route add -net 5.9.84.VVV netmask 255.255.255.224 gw 5.9.84.ZZZ eth0
auto vmbr0
iface vmbr0 inet static
address 192.168.50.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up iptables -t nat -A POSTROUTING -s '192.168.50.0/24' -o eth0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.50.0/24' -o eth0 -j MASQUERADE
details of eth0 should be self-explanatori.
for vmbr0 you need to create a gateway for all your internal machines. I've choose network 192.168.50/24 but it's up to you.
just remember to create containers with veth (bridged) interfaces and configure with an IP within your range. you must also configure vmbr0 address as gateway for you container.
Last edited: