Hi, I have a host server with a PROXMOX installation, then I've created a VM machine, but I can't reach an IP so far from my host machine.
This is my network configuration:
With this configuration I can ping the host public ip address, but i can't ping anyother external IP
This is my network configuration:
Code:
- HOST
-vmbr0 with the Public IP
- vmbr1
auto vmbr1iface vmbr1 inet static
address 192.168.0.254
netmask 255.255.255.0
bridge_ports vmbr0
bridge_stp off
bridge_fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_foward
post-up iptables -t nat -A POSTROUTING -s '192.168.0.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.0.0/24' -o vmbr0 -j MASQUERADE
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 2222 -j DNAT --to 192.168.0.1:22
post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 2222 -j DNAT --to 192.168.0.1:22
- VM
bridge with vmbr1
IP 192.168.0.1
netmask 255.255.255.0
gateway 192.168.0.254
With this configuration I can ping the host public ip address, but i can't ping anyother external IP