Hello there,
after several days of googling, asking AI and trying various configurations, I am ready to throw in the towel, hoping some wise person would help me from my misery
The setup:
dedicated server from OVH's Kimsufi range (so only single interface available)
IP/28 block ordered for CT's / VM's that need to be publicly accessible
every available IP has a vMAC assigned
test CT that uses public IP's, has that vMAC-IP combo configured
The goal:
Some machines will be publicly accessible (hence the IP/28 block) and some won't. Those that won't, will still need to be able to access the internet to fetch updates etc (so they'll be NAT'ted).
The problem:
With PVE datacenter firewall disabled the CT can reach (and be reached) internet.
As soon as I enable the datacenter firewall, all WAN connectivity for that CT stops even though the firewall for it is NOT enabled.
I can still access the node and reach the CT console via PVE dashboard, but any in/out CT traffic fails.
When I disable the PVE datacenter firewall, the CT still has no connectivity. Restarting it does not help. Restarting the node interfaces does not help as well. The only way to get it working back again is to reboot the PVE node.
The node config:
The CT config:
I have also created a Debian12 VM, where I applied the exact same configuration and it won't connect even with firewall disabled, so that tells me my config must be botched.
What am I doing wrong?
after several days of googling, asking AI and trying various configurations, I am ready to throw in the towel, hoping some wise person would help me from my misery
The setup:
dedicated server from OVH's Kimsufi range (so only single interface available)
IP/28 block ordered for CT's / VM's that need to be publicly accessible
every available IP has a vMAC assigned
test CT that uses public IP's, has that vMAC-IP combo configured
The goal:
Some machines will be publicly accessible (hence the IP/28 block) and some won't. Those that won't, will still need to be able to access the internet to fetch updates etc (so they'll be NAT'ted).
The problem:
With PVE datacenter firewall disabled the CT can reach (and be reached) internet.
As soon as I enable the datacenter firewall, all WAN connectivity for that CT stops even though the firewall for it is NOT enabled.
I can still access the node and reach the CT console via PVE dashboard, but any in/out CT traffic fails.
When I disable the PVE datacenter firewall, the CT still has no connectivity. Restarting it does not help. Restarting the node interfaces does not help as well. The only way to get it working back again is to reboot the PVE node.
The node config:
Code:
auto lo
iface lo inet loopback
iface enp5s0f0 inet manual
#Public interface
auto vmbr0
iface vmbr0 inet static
# Main bridge for Proxmox host
address 135.xx.xx.138/24
gateway 135.xx.xx.254
bridge-ports enp5s0f0
bridge-stp off
bridge-fd 0
hwaddress aa:aa:aa:aa:aa:aa
dns-nameservers 1.1.1.1 1.0.0.1 8.8.8.8 8.8.4.4
auto vmbr1
iface vmbr1 inet static
# Internal bridge, no WAN
address 10.0.1.254/24
bridge_ports none
bridge_stp off
bridge_fd 0
post-up echo 0 > /proc/sys/net/ipv4/ip_forward
post-up iptables -P FORWARD DROP
auto vmbr2
iface vmbr2 inet static
# Internal bridge, NAT
address 10.0.2.254/24
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.2.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.0.2.0/24' -o vmbr0 -j MASQUERADE
source /etc/network/interfaces.d/*
The CT config:
Code:
auto lo
iface lo inet loopback
allow-hotplug eth0
auto eth0
iface eth0 inet static
address 217.xx.x.xx/32 # first available address from the /28 block
# --- BEGIN PVE ---
post-up ip route add 135.xx.xx.254 dev eth0 # gateway address of the server
post-up ip route add default via 135.xx.xx.254 dev eth0
pre-down ip route del default via 135.xx.xx.254 dev eth0
pre-down ip route del 135.xx.xx.254 dev eth0
# --- END PVE ---
allow-hotplug eth1
auto eth1
iface eth1 inet static
address 10.0.1.201/24
I have also created a Debian12 VM, where I applied the exact same configuration and it won't connect even with firewall disabled, so that tells me my config must be botched.
What am I doing wrong?