Hi,
I have been struggling to get this network setup working properly for a while now and I've got it half working.
I have a dedicated server within the Hetzner network which has two IP addresses. One of which is used for Proxmox and the other is to be used for my VMs.
I have a pfSense vm and a Ubuntu vm at the moment. My pfSense vm seems to be connected to the internet perfectly fine now, however my Ubuntu one works now and then with the majority of packets getting lost.
The purpose of the pfSense instance is to allow me to setup a site to site vpn connection from the server I have at home, this would allow me to connect to all my other virtual machines as if they were on my local lan, at least that's the end goal.
This is the proxmox host
xxx = proxmox ip
yyy = additional ip for VMs
My ubuntu vm is the one not working so here is the netplan file
I have been struggling to get this network setup working properly for a while now and I've got it half working.
I have a dedicated server within the Hetzner network which has two IP addresses. One of which is used for Proxmox and the other is to be used for my VMs.
I have a pfSense vm and a Ubuntu vm at the moment. My pfSense vm seems to be connected to the internet perfectly fine now, however my Ubuntu one works now and then with the majority of packets getting lost.
The purpose of the pfSense instance is to allow me to setup a site to site vpn connection from the server I have at home, this would allow me to connect to all my other virtual machines as if they were on my local lan, at least that's the end goal.
This is the proxmox host
xxx = proxmox ip
yyy = additional ip for VMs
Code:
# /etc/network/interfaces
### generated using Proxmox-Setup Tool 1.1 from schaal @it UG
### https://schaal-it.com/script-to-install-proxmox-5-x-and-6-x-on-a-dedicated-hetzner-server/
###
### Network-Type routed
# loopback device
auto lo
iface lo inet loopback
iface lo inet6 loopback
# network device
auto enp3s0
iface enp3s0 inet static
address 5.9.98.xxx
netmask 255.255.255.255
gateway 5.9.98.161
pointopoint 5.9.98.161
iface enp3s0 inet6 static
address 2a01:4f8:162:30ea::1
netmask 128
gateway fe80::1
up sysctl -p
auto vmbr0
iface vmbr0 inet static
address 5.9.98.xxx
netmask 255.255.255.255
bridge_ports none
bridge_stp off
bridge_fd 0
up ip route add 5.9.98.yyy/32 dev vmbr0
iface vmbr0 inet6 static
address 2a01:4f8:162:30ea::2
netmask 64
My ubuntu vm is the one not working so here is the netplan file
Code:
network:
version: 2
ethernets:
ens18:
addresses:
- 5.9.98.yyy/32
gateway4: 5.9.98.xxx
routes:
- to: 5.9.98.xxx/32
via: 0.0.0.0
scope: link