Proxmox host traffic routing issue

proless8

New Member
Jan 9, 2025
1
0
1
I have an issue with my current network setup that for some reason is preventing the Proxmox host traffic to be routed back correctly to a Linux bridge.

Network.png
I have OPNsense virtualized and behind it a private internal LAN network. I am using HAProxy to proxy my services externally using a private domain (lab.home) that is being forwarded to the Proxmox host, and it is working fine when connecting from my Home LAN (Laptop).

The issue is that when I try to access a service from the pve host itself, e.g. "curl https://app.lab.home/ --verbose" this returns the error below, and it is not an SSL error or Certificate issue, my custom root ca is already installed and trusted by the pve host. I am assuming that the pve host first is querying the DNS on my Home Router for the domain "lab.home" and it being redirected to itself but not forwarded to vmbr1 (OPNsense WAN) anymore ?!

What is wrong with my setup, and what am I missing here ? Any help is appreciated.

Curl error
Code:
* Trying 192.168.100.1:443...
* connect to 192.168.100.1 port 443 failed: Connection refused
* Failed to connect to app.lab.home port 443 after 1 ms: Couldn't connect to server
* Closing connection 0
curl: (7) Failed to connect to app.lab.home port 443 after 1 ms: Couldn't connect to server

/etc/network/interfaces
Code:
auto lo
iface lo inet loopback

iface enp1s0 inet manual

auto vmbr0
iface vmbr0 inet dhcp
        bridge-ports enp1s0
        bridge-stp off
        bridge-fd 0
        post-up echo 1 > /proc/sys/net/ipv4/ip_forward
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp -m multiport ! --dport 22,8006 -j DNAT --to 172.16.1.1
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p udp -m multiport ! --dport 22,8006 -j DNAT --to 172.16.1.1
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp -m multiport ! --dport 22,8006 -j DNAT --to 172.16.1.1
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p udp -m multiport ! --dport 22,8006 -j DNAT --to 172.16.1.1

auto vmbr1
iface vmbr1 inet static
        address 172.16.1.0/31
        bridge-ports none
        bridge-stp off
        bridge-fd 0
        post-up iptables -t nat -A POSTROUTING -s '172.16.1.1/31' -o vmbr0 -j MASQUERADE
        post-down iptables -t nat -D POSTROUTING -s '172.16.1.1/31' -o vmbr0 -j MASQUERADE
# OPNsense WAN

auto vmbr2
iface vmbr2 inet static
        bridge-ports none
        bridge-stp off
        bridge-fd 0
# OPNsense LAN

source /etc/network/interfaces.d/*
 

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!