My main home router (Alpine Linux, nftables and dnsmasq) uses subnet 192.168.1.0/24, all working.
My Proxmox machine is on that subnet, but I have modified /etc/network/interfaces as follows:
If I create a VM using vmbr1 and IP in range 192.168.2.0/24, it can ping vmbr1 and other IPs in range 192.168.2.0/24
But it cannot access anything outside that range.
On my router, tshark sees ping requests from 192.168.2.0/24, but I'm guessing they are dropped?
I'm not sure how to modify /etc/nftables.nft (on my router, not Proxmox) to allow traffic from this "second" subnet. Ideas?
BTW, I'm doing this because I want to set up multiple VMs that require very specific hostname/dns rules, and I'd rather keep this configuration on the Proxmox machine than "pollute" my main router's configuration. Just want to make minimal changes there, once, to allow the traffic, if possible. So that if I "break" anything, it's just the Proxmox machine rather than my whole network.
My Proxmox machine is on that subnet, but I have modified /etc/network/interfaces as follows:
# Top lines are original as installed, subnet 192.168.1.0/24
auto lo
iface lo inet loopback
iface eno1 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.1.123/24
gateway 192.168.1.1
bridge-ports eno1
bridge-stp off
bridge-fd 0
# Added lines below, subnet 192.168.2.0/24, for VMs using vmbr1
auto vmbr1
iface vmbr1 inet static
address 192.168.2.1/24
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 '192.168.2.0/24' -o eno1 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.2.0/24' -o eno1 -j MASQUERADE
If I create a VM using vmbr1 and IP in range 192.168.2.0/24, it can ping vmbr1 and other IPs in range 192.168.2.0/24
But it cannot access anything outside that range.
On my router, tshark sees ping requests from 192.168.2.0/24, but I'm guessing they are dropped?
I'm not sure how to modify /etc/nftables.nft (on my router, not Proxmox) to allow traffic from this "second" subnet. Ideas?
BTW, I'm doing this because I want to set up multiple VMs that require very specific hostname/dns rules, and I'd rather keep this configuration on the Proxmox machine than "pollute" my main router's configuration. Just want to make minimal changes there, once, to allow the traffic, if possible. So that if I "break" anything, it's just the Proxmox machine rather than my whole network.