Hi team !
Need some help, i don't know what i'm doing wrong, i followed the proxmox doc for NAT but i can't access internet from my VM
they can ping each other host/vm
host can ping google
VM can't
Need some help, i don't know what i'm doing wrong, i followed the proxmox doc for NAT but i can't access internet from my VM
they can ping each other host/vm
host can ping google
VM can't
Code:
HOST PROXMOX /etc/network/interfaces
auto enp2s2
#real IP address
iface enp2s2 inet static
address 192.168.10.10/24
gateway 192.168.10.254
auto vmbr0
iface vmbr0 inet static
address 10.10.10.1/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.10.10.0/24' -o enp2s2 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o enp2s2 -j MASQUERADE
# try with that to, even if i don't have firewall enable
post-up iptables -t raw -I PREROUTING -i fwbr+ -j CT --zone 1
Code:
in my VM /etc/network/interfaces
auto ens18
iface en18 inet static
address 10.10.10.2/24
gateway 10.10.10.1
Last edited: