Hello everyone!
I've been trying all day to setup networking on my dedicated Hetzner server, but can't get it to work and it's driving me crazy. I bought one additional IP for the VM where I want to run a reverse proxy.
The Proxmox installation goes without problem and the host is perfectly connected to the internet. Where the problems start is with the VM. I've tried several guides (including the official Hetzner guide), but without success. The guide I followed on the setup below is this one sysorchestra.com/2017/11/03/proxmox-5-on-hetzner-root-server-with-ipv4/ (can't use hyperlinks because I'm a new user)
I've also tried (all with fresh setups):
e-tel.eu/2017/07/25/deploy-proxmox-hetzner-server/
blog.no-panic.at/2016/08/09/proxmox-on-debian-at-hetzner-with-multiple-ip-addresses/
wiki.hetzner.de/index.php/Proxmox_VE/en
I'll share my Hetzner IP's and my current setup:
Main IP: 136.243.19.43
Gateway: 136.243.19.1
Netmask: 255.255.255.192
Broadcast: 136.243.19.63
Additional IP: 136.243.31.94
Gateway: 136.243.31.81
Netmask: 255.255.255.240
Broadcast: 136.243.31.95
Separate MAC: 00:50:56:00:41:80
Host /etc/network/interfaces
auto lo
iface lo inet loopback
iface lo inet6 loopback
auto enp2s0
iface enp2s0 inet static
address 136.243.19.43
netmask 255.255.255.192
gateway 136.243.19.1
up route add -net 136.243.19.0 netmask 255.255.255.192 gw 136.243.19.1 dev enp2s0
auto vmbr0
iface vmbr0 inet static
address 136.243.19.43
netmask 255.255.255.192
bridge_stp off
bridge_ports none
bridge_fd 0
bridge_maxwait 0
up route add -host 136.243.31.94 dev vmbr0
Host /etc/sysctl.d/99-networking.conf
net.ipv4.ip_forward=1
net.ipv4.conf.enp2s0.send_redirects=0
net.ipv6.conf.all.forwarding=1
On Debian VM
# Loopback device:
auto lo
iface lo inet loopback
iface lo inet6 loopback
allow-hotplug ens18
iface ens18 inet static
address 136.243.31.94
netmask 255.255.255.255
gateway 136.243.19.43
pointopoint 136.243.19.43
IPv6 is left out on purpose, because I wanted to get IPv4 working first. If anyone knows what I'm doing wrong, please help me out of my misery
P.S. I hope the formatting is okay, first time posting here.
I've been trying all day to setup networking on my dedicated Hetzner server, but can't get it to work and it's driving me crazy. I bought one additional IP for the VM where I want to run a reverse proxy.
The Proxmox installation goes without problem and the host is perfectly connected to the internet. Where the problems start is with the VM. I've tried several guides (including the official Hetzner guide), but without success. The guide I followed on the setup below is this one sysorchestra.com/2017/11/03/proxmox-5-on-hetzner-root-server-with-ipv4/ (can't use hyperlinks because I'm a new user)
I've also tried (all with fresh setups):
e-tel.eu/2017/07/25/deploy-proxmox-hetzner-server/
blog.no-panic.at/2016/08/09/proxmox-on-debian-at-hetzner-with-multiple-ip-addresses/
wiki.hetzner.de/index.php/Proxmox_VE/en
I'll share my Hetzner IP's and my current setup:
Main IP: 136.243.19.43
Gateway: 136.243.19.1
Netmask: 255.255.255.192
Broadcast: 136.243.19.63
Additional IP: 136.243.31.94
Gateway: 136.243.31.81
Netmask: 255.255.255.240
Broadcast: 136.243.31.95
Separate MAC: 00:50:56:00:41:80
Host /etc/network/interfaces
auto lo
iface lo inet loopback
iface lo inet6 loopback
auto enp2s0
iface enp2s0 inet static
address 136.243.19.43
netmask 255.255.255.192
gateway 136.243.19.1
up route add -net 136.243.19.0 netmask 255.255.255.192 gw 136.243.19.1 dev enp2s0
auto vmbr0
iface vmbr0 inet static
address 136.243.19.43
netmask 255.255.255.192
bridge_stp off
bridge_ports none
bridge_fd 0
bridge_maxwait 0
up route add -host 136.243.31.94 dev vmbr0
Host /etc/sysctl.d/99-networking.conf
net.ipv4.ip_forward=1
net.ipv4.conf.enp2s0.send_redirects=0
net.ipv6.conf.all.forwarding=1
On Debian VM
# Loopback device:
auto lo
iface lo inet loopback
iface lo inet6 loopback
allow-hotplug ens18
iface ens18 inet static
address 136.243.31.94
netmask 255.255.255.255
gateway 136.243.19.43
pointopoint 136.243.19.43
IPv6 is left out on purpose, because I wanted to get IPv4 working first. If anyone knows what I'm doing wrong, please help me out of my misery
P.S. I hope the formatting is okay, first time posting here.