Hi,
I want to use the Proxmox VE firewall to prevent my VMs on the NAT network (vmbr1) from accessing my local network.
My first thought was to use the firewall, but after enabling it, my NAT setup collapsed.
I'm pretty sure I did something wrong, but I just can't see it.... I'm not a networking guy, I work in software development :/
When I enable the firewall, DHCP discovery is no longer possible. I tried allowing DHCP ports on the host, but it still didn't work.
And for some reason, no requests from the vmbr1 interface are logged in the firewall when I open the firewall logs (I have all incoming connections set to info).
Does anyone have any idea what I have done wrong?
My current setup:
I have configured a new interface for my NAT network and I also configured dnsmasq to act as a DHCP server for dynamic IPv4 assignments.
My interfaces:
My dnsmasq configuration:
I want to use the Proxmox VE firewall to prevent my VMs on the NAT network (vmbr1) from accessing my local network.
My first thought was to use the firewall, but after enabling it, my NAT setup collapsed.
I'm pretty sure I did something wrong, but I just can't see it.... I'm not a networking guy, I work in software development :/
When I enable the firewall, DHCP discovery is no longer possible. I tried allowing DHCP ports on the host, but it still didn't work.
And for some reason, no requests from the vmbr1 interface are logged in the firewall when I open the firewall logs (I have all incoming connections set to info).
Does anyone have any idea what I have done wrong?
My current setup:
I have configured a new interface for my NAT network and I also configured dnsmasq to act as a DHCP server for dynamic IPv4 assignments.
My interfaces:
Code:
auto lo
iface lo inet loopback
iface enp0s25 inet manual
auto vmbr0
iface vmbr0 inet static
address x.x.x.10/24
gateway x.x.x.1
bridge-ports enp0s25
bridge-stp off
bridge-fd 0
#Bridged Network
auto vmbr1
iface vmbr1 inet static
address 10.0.0.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.0.0.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.0.0.0/24' -o vmbr0 -j MASQUERADE
post-up iptables -t raw -I PREROUTING -i fwbr+ -j CT --zone 1
post-down iptables -t raw -D PREROUTING -i fwbr+ -j CT --zone 1
#NAT Network
source /etc/network/interfaces.d/*
My dnsmasq configuration:
Code:
interface=vmbr1
dhcp-range=10.0.0.2,10.0.0.253,255.255.255.0
dhcp-option=option:router,10.0.0.1
dhcp-option=option:dns-server,x.x.x.1