Hetzner and private network

Seti

New Member
Apr 5, 2021
4
0
1
38
Hello everyone, I am new to Proxmox, I have been trying to configure the network with private IPs for several days but I cannot get the VMs to go to the internet I have been testing but nothing, does anyone know the failure? Greetings and thank you.


auto enp2s0
iface enp2s0 inet static
address xxx.xxx.xxx.xxx
netmask 255.255.255.255
gateway xxx.xxx.xxx.86
pointopoint xxx.xxx.xxx.86
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up echo 1 > /proc/sys/net/ipv4/conf/enp2s0/proxy_arp



auto vmbr1
iface vmbr1 inet static
address 172.26.100.1
netmask 255.255.255.0
bridge-ports none
bridge-stp off
bridge-fd 0


post-up iptables -t nat -A POSTROUTING -s ’172.26.100.0/24’ -o enp2s0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s ’172.26.100.0/24’ -o enp2s0 -j MASQUERADE
 
is the VM get the IP from your private network?
have you tried to ping the 172.26.100.1 from your VM?
what does it look like the VM config? qm config <VMID>
 
Hello, the VM has static ip 172.26.100.10, netmask 255.255.255.0 and gateway 172.26.100.1 (dns ...) and from the VM it correctly pings the ip 172.26.100.1 (Windows VM), but it does not come out to Internet
 
Yes, the firewall is disabled and I have separated the MAC from the IP, I have assigned the MAC to the Windows network card
 
Please provide us the VM config as well, to get the config use the following command:

Bash:
qm config <VMID>
 
root@Proxmox-VE ~ # qm config 125
bios: ovmf
boot: order=sata1
cores: 2
memory: 8192
name: Windows10x64
net0: e1000=00:50:56:01:0F:21,bridge=vmbr1
sata1: local:125/vm-125-disk-0.raw
smbios1: uuid=b85c5ff6-6139-448e-a4f4-c55fde39c11b
vmgenid: 909b4539-a6b7-4605-878a-61ffbe53201b