Weird behavior with networking

gmalenko

New Member
Sep 28, 2019
3
0
1
40
This my first try at proxmox and I'm running into an issue. I've been reading and trying different things but nothing seems to resolve the error.

My proxmox machine has 2 nics 1 for WAN (enp0s25) and other for LAN (enp5s0). It also has 2 bridges: vmbr0(wan) and vmbr1(lan)

The configuration I'm looking for is
Internet > Proxmox > PfSense > everything else

When I boot (or even reboot) the machine, everything connected to the host has an internet connection BUT the host cannot access the internet. It also doesn't seem to set the NAT rules for iptables (so I think).
When I do
Code:
service networking restart
then the host has access to the internet and nothing else can access it. I dont know of any commands that would help with debugging this. The only real solution to getting everything back online is to simply restart the host.

Here is my /etc/networking/interfaces file

Code:
auto lo
iface lo inet loopback

allow-hotplug enp0s25

auto enp0s25
iface enp0s25 inet manual
#internet

auto enp5s0
iface enp5s0 inet manual

auto vmbr0
iface vmbr0 inet dhcp
        hwaddress ether  00:11:22:33:44:55
        bridge_ports enp0s25
        bridge_stp off
        bridge_fd 0

auto vmbr1
iface vmbr1 inet static
        address 192.168.10.1
        netmask 255.255.255.0
        bridge_ports enp5s0
        bridge_stp off
        bridge_fd 0
        post-up echo 1 > /proc/sys/net/ipv4/ip_forward
        post-up   iptables -t nat -A POSTROUTING -s '192.168.10.0/24' -o vmbr0 -j MASQUERADE
        post-down iptables -t nat -D POSTROUTING -s '192.168.10.0/24' -o vmbr0 -j MASQUERADE

I'm at a total loss with this. Any help would be appreciated
 
Last edited:
Hi,

why do you set hwaddress?
Is the PFsense a VM or an External box?
 
Hi,

why do you set hwaddress?
Is the PFsense a VM or an External box?

At some point when I was playing with proxmox, it set the hardware address. I know I dont need it. I just never took it out. Its identical to the associated nic
PFsense is a VM
 

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!