Network setup for Hetzner

tahayildiz

New Member
Aug 28, 2023
2
0
1
Hello,
i hop you guys can i help me.
Currently i have proxmox in the hetzner cloud on a root server. I have 3 Public IP-Adresses.
1. Public IP: 138.XXX.XXX.126 (Proxmox Interface)
2. Public IP: 138.XXX.XXX.96 (pfSense WAN -> LAN)
3. Public IP: 138.XXX.XXX.105 (pfSense WAN -> Mailserver)

Hetzner Public IP Information:
Gateway: 138.XXX.XXX.65
Netmask: 255.255.255.192
Broadcast: 138.XXX.XXX.127


This is the current /etc/network/interfaces config on my proxmox:
Code:
source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

iface lo inet6 loopback

iface enp0s31f6 inet manual

auto vmbr0
iface vmbr0 inet static
        address 138.XXX.XXX.126/32
        gateway 138.XXX.XXX.65
        bridge-ports enp0s31f6
        bridge-stp off
        bridge-fd 0
        bridge_maxwait 0
        up route add-net 138.XXX.XXX.96 netmask 255.255.255.255 gw 138.XXX.XXX.65 dev vmbr0
#       up route add-net 138.XXX.XXX.105 netmask 255.255.255.255 gw 138.XXX.XXX.65 dev vmbr0 #if this is uncomment the private networks doesnt reach out to the internet. If its commented i can reach from the private network to the internet over the ip: 138.XXX.XXX.96

auto vmbr1
iface vmbr1 inet manual
        bridge-ports none
        bridge-stp off
        bridge-fd 0
#pfSense LAN

auto vmbr2
iface vmbr2 inet manual
        bridge-ports none
        bridge-stp off
        bridge-fd 0
#pfSense DMZ

auto vmbr3
iface vmbr3 inet manual
        bridge-ports none
        bridge-stp off
        bridge-fd 0
#pfSense Mailcow


And yes i put the mac adress of the host to the vmrb0 of my firewall.

I think that something doesnt work if vmbr0.
I hope someone can help and get this working.
Thank you
 
Last edited:
Have you enabled IP forwarding?

See "Enable IP Forwarding on the Host" in this documentation

Also, remember that the VM should have the IP address of the proxmox interface as the gateway.

Alternatively, use bridged networking, it's easier to set up.
 

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!