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
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