Routing - 1 Nic - 2 Public IPs on Different Subnet

ThisIsCoolButTough

New Member
Sep 24, 2024
1
0
1
Good morning,

My dedicated server provider offered my 2 public IPs withing different subnets.
One public IP will be used for Proxmox host management, the other I would want to point to PFSense VM to configure port forwarding etc.

Here is the config I'm using on the host:
Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
    address IP_A/24
    gateway IP_A_GATEWAY
    post-up echo 1 > /proc/sys/net/ipv4/ip_forward
    post-up echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp

auto vmbr0
iface vmbr0 inet manual
    bridge-ports none
    bridge-stp off
    bridge-fd 0

auto vmbr1
iface vmbr1 inet manual
    bridge-ports none
    bridge-stp off
    bridge-fd 0
    bridge-vlan-aware yes
    bridge-vids 2-4094

Then I start a PFSense VM with two network interfaces (vmbr0 and vmbr1).
I configure vmbr0 as WAN with second public IP address, the mask, and gateway on different subnet that was given to me by server provider.
The problem is I don't have an internet connection from within PFSense VM nor I can ping anything. This setup basically doesn't work in my case.

Anyone would be able to help?
Thanks.