[SOLVED] Proxmox and Hetzner Impossible to configure

glibao

Member
Mar 29, 2020
13
0
6
45
Good afternoon, I've been trying to configure the network for several days, I have read all the posts and tried multiple configurations, some even KO the server like this https://forum.proxmox.com/threads/proxmox-network-config-on-hetzner .36245 / page-2 # post-380458, I have read the official proxmox admin guide along with the one offered by Hetzner there is no way to give internet to my VMs, I currently have a VM with W10, one of the last tests is with Private IP subnet and using tablet IP as indicated and neither, I have PVE 6.3, what am I doing wrong? In the post indicated above, which says it works, the physical server is unavailable, I had to go into rescue mode and load old conf. Greetings and thanks for your help.
 
Can you show your /etc/network/interfaces and the output of ip a? Make public IP addresses anonymous!
 
source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

iface lo inet6 loopback

auto enp2s0
iface enp2s0 inet static
address 144.76.xxx.xxx/32
gateway 144.76.xxx.xxx
pointopoint 144.76.xxx.xxx

iface enp2s0 inet6 static
address -----------
gateway ------------

#post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up echo 1 > /proc/sys/net/ipv4/conf/enp2s0/proxy_arp

auto vmbr0
iface vmbr0 inet static
address 144.76.xxx.xxx
netmask 255.255.255.255
bridge-ports none
bridge-stp off
bridge-fd 0
up ip route add 144.76.xxx.xxx/32 dev vmbr0

auto vmbr1
iface vmbr1 inet static
address 10.10.10.1
netmask 255.255.255.0
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 vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s ’10.10.10.0/24’ -o vmbr0 -j MASQUERADE



****************In windows VM IP 10.10.10.10 / 24 gateway 10.10.10.1 dns Hetzner
 
Last edited:
Have you tried it without blank lines before the `post-up` lines? They should be right after the interfaces they belong to without a blank line AFAIU.

#post-up echo 1 > /proc/sys/net/ipv4/ip_forward
Why is this commented out? For routing to work, IP forwarding needs to be enabled.
 
Hello, I was doing tests, that's why I was commenting, it already works for me, it was because of the separation of the MAC-IP that Hetzner does, I have deactivated it and it already works, peljl has also helped me. Thank you very much, now I am still testing to combine bridge and router mode. Greetings
 
Thanks for sharing what caused the problem. I went ahead and marked the thread as solved :)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!