My VM can connect to internet using static  but not using dhcp
my server is with hetzner
i followed this
https://community.hetzner.com/tutorials/install-and-configure-proxmox_ve
and setup like it says in Masquerading (NAT) with iptables
	
	
	
		
				
			my server is with hetzner
i followed this
https://community.hetzner.com/tutorials/install-and-configure-proxmox_ve
and setup like it says in Masquerading (NAT) with iptables
		Code:
	
	source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
auto eno1
iface eno1 inet static
        address 127.180.246.94/24
        gateway 127.180.246.65
        #post-up iptables -t nat -A PREROUTING -i eno1 -p tcp -m multiport ! --dports 22,8006 -j DNAT --to 172.16.246.2
        #post-down iptables -t nat -D PREROUTING -i eno1 -p tcp -m multiport ! --dports 22,8006 -j DNAT --to 172.16.246.2
iface eno1 inet6 static
        address 2a02:4f9:3070:3ed7::2/64
        gateway fe90::1
auto vmbr0
iface vmbr0 inet static
        address 172.16.246.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 '172.16.246.0/24' -o eno1 -j MASQUERADE
        post-down iptables -t nat -D POSTROUTING -s '172.16.246.0/24' -o eno1 -j MASQUERADE
#NAT/Masq