Hetzner Proxmox routed configuration halfway working

Retuas

New Member
Aug 31, 2019
2
1
3
Hello,

i recently bought (or rent) myself my first Hetzner Root Server. I did install Proxmox on it and configured two bridges vmbr0 and vmbr1. With vmbr0 i want to route my second public ip address to my first virtualized host. I have searched the whole internet now and could not find a solution for my problem.

I managed to get a internet connection on my virtual host. I can ssh it with the additional ip address i routet onto vmbr0. But if i try to connect to it via browser and http/https i get somthing like a redirect to my main ip (Or basically the server on the main ip - which is the proxmox server- answers that connection)? So im not able to install a web server there for example. Another strange thing is, that if i try to update the virt machine with dnf (or wget a file from the www) i get a strange error where certificate is not the right one which leads me to the thesis that im talking to the proxmox host which acts like a proxy. Can you please help me here? Did i miss something maybe?

PVEVERION = pve-manager/6.0-6/c71f879f (running kernel: 5.0.21-1-pve)
OS = Debian Buster

### Config of Proxmox Server ###

# /etc/network/interfaces
auto lo
iface lo inet loopback
iface lo inet6 loopback

auto enp2s0
iface enp2s0 inet static
address <MAIN IP>
netmask 255.255.255.255
gateway <GATEWAY OF MAIN IP>
pointopoint <GATEWAY OF MAIN IP>

auto vmbr0
iface vmbr0 inet static
address <MAIN IP>
netmask 255.255.255.255
bridge_ports none
bridge_stp off
bridge_fd 0
up ip route add <ADDITIONAL IP>/32 dev vmbr0

auto vmbr1
iface vmbr1 inet static
address 10.20.30.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up iptables -t nat -A POSTROUTING -s '10.20.30.0/24' -o eth0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.20.30.0/24' -o eth0 -j MASQUERADE

### Config of Guest (Fedora 30 Server) ###

# /etc/sysconfig/network-scripts/ifcfg-ens18
TYPE=Ethernet
BOOTPROTO=none
NAME=ens18
UUID=0970dc53-3b3b-3035-bdad-f403d398bd23
DEVICE=ens18
ONBOOT=yes
AUTOCONNECT_PRIORITY=-999
IPADDR=<ADDITIONAL IP>
NETMASK=255.255.255.255
GATEWAY=<MAIN IP>
DNS=1.1.1.1
 

Richard

Proxmox Staff Member
Staff member
Mar 6, 2015
761
26
48
Austria
i recently bought (or rent) myself my first Hetzner Root Server. I did install Proxmox on it and configured two bridges vmbr0 and vmbr1. With vmbr0 i want to route my second public ip address to my first virtualized host. I have searched the whole internet now and could not find a solution for my problem.

I managed to get a internet connection on my virtual host. I can ssh it with the additional ip address i routet onto vmbr0. But if i try to connect to it via browser and http/https i get somthing like a redirect to my main ip (Or basically the server on the main ip - which is the proxmox server- answers that connection)? So im not able to install a web server there for example. Another strange thing is, that if i try to update the virt machine with dnf (or wget a file from the www) i get a strange error where certificate is not the right one which leads me to the thesis that im talking to the proxmox host which acts like a proxy. Can you please help me here? Did i miss something maybe?
AFAICS not (according to providers how-to) - but note that it's the providers responsibility. Note that the "routed" version is a little bit tricky. Try rather use the "bridged" method https://wiki.hetzner.de/index.php/Netzkonfiguration_Debian/en#Bridged - all you need is to order an additional MAC. Then you have clear conditions. If it's still not working it's maybe caused by wrong webserver configuration.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE and Proxmox Mail Gateway. We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!