Hi,
It feels like I read the half of the internet including this forum, but the network config for Proxmox on a Hetzner server still doesn't work...
It was so easy with earlier versions and I don't get why it is so hard with the lastest ones.
Our aimed setup is actually nothing spectacular nor uncommon.
A host with its own IP, one or more container with their own public IP and some CT with private IPs.
To start simple we booked a server and bought an additional IP in the Hetzner Management Interface.
Proxmox is installed and we can login, download templates and create CTs.
Unfortunately no Container is reachable from the outside nor has access to internet.
After trying and testing several configs and following tutorials, threads etc. it still doesn't work.
Your help/tip/support is very welcome as we don't know what else we can do.
Let me share some config details with you:
Forwarding is enabled in /etc/sysctl.conf
These are the network details from Hetzner:
Given these network details, the settings in /etc/network/interfaces are as following:
We disabled IPv6 for the time being until we solved IPv4 first...
With these settings we create a new container with theses params
The container starts and can be attached via "lxc-attach -n 100", but it can't talk to the internet nor it can be reached from the internet.
As already said any advise is really appreciated.
Cheers
derkaan
It feels like I read the half of the internet including this forum, but the network config for Proxmox on a Hetzner server still doesn't work...
It was so easy with earlier versions and I don't get why it is so hard with the lastest ones.
Our aimed setup is actually nothing spectacular nor uncommon.
A host with its own IP, one or more container with their own public IP and some CT with private IPs.
To start simple we booked a server and bought an additional IP in the Hetzner Management Interface.
Proxmox is installed and we can login, download templates and create CTs.
Unfortunately no Container is reachable from the outside nor has access to internet.
After trying and testing several configs and following tutorials, threads etc. it still doesn't work.
Your help/tip/support is very welcome as we don't know what else we can do.
Let me share some config details with you:
Forwarding is enabled in /etc/sysctl.conf
Code:
net.ipv4.ip_forward=1
net.ipv6.conf.all.forwarding=1
These are the network details from Hetzner:
Code:
Mein-IP: 46.4.1.100
Gateway: 46.4.1.150
Broadcast: 46.4.1.190
Netmask: 255.255.255.224
Second-IP: 46.4.1.200
Separate Mac: 00:11:22:33:44
Given these network details, the settings in /etc/network/interfaces are as following:
We disabled IPv6 for the time being until we solved IPv4 first...
Code:
### Hetzner Online GmbH installimage
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
iface lo inet6 loopback
auto enp6s0
iface enp6s0 inet static
address 46.4.1.100
#original setting: netmask 255.255.255.224
netmask 255.255.255.255
gateway 46.4.1.150
pointopoint 46.4.1.150
up route add -net 46.4.1.149 netmask 255.255.255.224 gw 46.4.1.150 dev enp6s0
auto vmbr0
iface vmbr0 inet static
address 46.4.1.100 # Server Basis IP
netmask 255.255.255.255 # Netzmaske neu gesetzt
bridge_ports none
bridge_stp off
bridge_fd 0
up ip route add 46.4.1.200/32 dev vmbr0 # erste VM mit erster Zusatz-IP
#iface enp6s0 inet6 static
# address 2a03:5f7:123:123::2
# netmask 64
# gateway fe80::1
With these settings we create a new container with theses params
Code:
Bridge: vmbr0
IP (static): 46.4.1.200/32
MAC: 00:11:22:33:44
Gateway: 46.4.1.100
The container starts and can be attached via "lxc-attach -n 100", but it can't talk to the internet nor it can be reached from the internet.
As already said any advise is really appreciated.
Cheers
derkaan