Hi
I'll make it very simple, I've been stuck on Proxmox for a very long time, I'm desperate.
Currently, I have a network configuration with a physical card in DHCP and a vmbr0 virtual card which is in NAT on enp2s0
I then set up a DHCP server on the Proxmox so that an ip was automatically assigned to a VM on the 192.168.124.X site.
The DHCP connection is fine when installing a VM all you want, I can ping the hypervisor, BUT, I don't don't have internet.
I thought it was a DNS problem at first but obviously it's not.
Please help me...
I am OBLIGED to do NAT, I have absolutely no right to bridge
my file interfaces
One of my theories would be that the packet goes out and reaches the server, but does not come back... Maybe I'm wrong, I'm really not good at it...
I'll make it very simple, I've been stuck on Proxmox for a very long time, I'm desperate.
Currently, I have a network configuration with a physical card in DHCP and a vmbr0 virtual card which is in NAT on enp2s0
I then set up a DHCP server on the Proxmox so that an ip was automatically assigned to a VM on the 192.168.124.X site.
The DHCP connection is fine when installing a VM all you want, I can ping the hypervisor, BUT, I don't don't have internet.
I thought it was a DNS problem at first but obviously it's not.
Please help me...
I am OBLIGED to do NAT, I have absolutely no right to bridge
my file interfaces
Code:
auto lo
iface lo inet loopback
auto enp2s0
iface enp2s0 inet dhcp
dns-nameservers 192.168.X.X
post-up ip route add default via 192.168.X.Xdev enp2s0 proto dhcp src 192.168.X.X metric 100
auto vmbr0
iface vmbr0 inet static
address 192.168.124.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '192.168.124.0/24' -o enp2s0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.124.0/24' -o enp2s0 -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
One of my theories would be that the packet goes out and reaches the server, but does not come back... Maybe I'm wrong, I'm really not good at it...
Last edited: