Hetzner with Subnet not working

Crakila

Member
Oct 5, 2018
4
0
21
32
Ireland
Hey guys. First time user of Proxmox after hearing about it from a friend.

There has been multiple threads on this forum with no resolutions and some outdated tutorials that is not helping.

My situation is this:
I have Proxmox working but when I spin up any VM and try to configure it, it can't talk to the outside world.

Running Proxmox VE: 5.2-9

Code:
Main Server IP: 144.XX.XXX.198

Gateway: 144.XX.XXX.193
Netmask: 255.255.255.224
Broadcast: 144.XX.XXX.223

Subnet: 136.XXX.XXX.144 / 29

Gateway: 144.XX.XXX.198
Netmask: 255.255.255.248
Broadcast: 136.XXX.XXX.151

and the /etc/network/interfaces file is as follows:
Code:
### Hetzner Online GmbH installimage

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback
iface lo inet6 loopback

# device: enp2s0
auto enp2s0
iface enp2s0 inet static
        address 144.XX.XXX.198
        netmask 255.255.255.224
        gateway 144.XX.XXX.193
        # default route to access subnet
        up route add -net 144.XX.XX.64 netmask 255.255.255.224 gw 144.XX.XXX.193 enp2s0

auto vmbr0
iface vmbr0 inet static
        address 144.XX.XXX.198
        netmask 255.255.255.255
        bridge_ports none
        bridge_stp off
        bridge_fd 0
        up ip route add 144.XX.XXX.204/32 dev vmbr0

auto vmbr1
iface vmbr1 inet static
        address 136.XXX.XXX.150
        netmask 255.255.255.248
        bridge_ports none
        bridge_stp off
        bridge_fd 0

Is there anyone that is willing to provide any help on how to get this working correctly?
Is there any Hetzner customers that are in the same boat as myself when it comes to this?

Thanks in advance.
 
Did you manage to solve the problem?
I did but I had to resort to spinning up a pfSense VM and routing everything through it. I had to get my friend to help me, so I apologise if I am missing out on key steps

the /etc/network/interfaces file is like this:

Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug ens18
iface ens18 inet dhcp

Then in pfSense go to: Firewall/NAT/1:1 and associate your external IP address with the internal IP address:

Replace your external subnet IP with your own Subnet range.

Qb61vwK.png

Hopefully this is the basis for what you need to do. Apologies again.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, 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 yours easily in our online shop.

Buy now!