Hey together, I'm searching the whole day for a solution but I can't find anything. I'm fairly new to Proxmox and Networking. So, the following situation: I habe 3 Public IPs, one for my reverse proxy, one for my mail server (for convenience) and one for my proxmox host (Just used for the Webinterface of proxmox and nothing else)
Here is my
So, 148.251.13.xxx is my Proxmox main IP, 148.251.13.yy/32 belongs to my nginx and 148.251.13.zz/32 to the mail server. I use vmbr0 to "distribute" these IP addresses to the mail and nginx LXD containers. All of the other LXD containers are connected to vmbr1 and they can access the public internet via that bridge. Now to the main problem: I would like to create a VM, not a container, that can connect to vmbr1 and access the public internet like those containers do. But when I do so (I'm using a ubuntu iso for that VM) I'm just able to ping the other containers on vmbr1, but I can not ping e.g. google.com or so. For the VM I entered the gateway 10.10.10.1 and the subnet 255.255.255.0 (/24).
Does anyone know how to possibly get that working? I'm very thankful for every answer. Have a great day!
Here is my
/etc/network/interfaces
data:
Code:
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
iface lo inet6 loopback
auto enp2s0
iface enp2s0 inet static
address 148.251.13.xxx/27
gateway 148.251.13.97
up route add -net 148.251.13.96 netmask 255.255.255.224 gw 148.251.13.97 dev enp2s0
# route 148.251.13.96/27 via 148.251.13.97
iface enp2s0 inet6 static
address 2a01:4f8:201:724a::2/64
gateway fe80::1
auto vmbr0
iface vmbr0 inet static
address 148.251.13.xxx
netmask 255.255.255.255
bridge_ports none
bridge_stp off
bridge_fd 0
bridge_maxwait 0
pre-up brctl addbr vmbr0
up ip route add 148.251.13.yy/32 dev vmbr0
up ip route add 148.251.13.zz/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 enp2s0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o enp2s0 -j MASQUERADE
So, 148.251.13.xxx is my Proxmox main IP, 148.251.13.yy/32 belongs to my nginx and 148.251.13.zz/32 to the mail server. I use vmbr0 to "distribute" these IP addresses to the mail and nginx LXD containers. All of the other LXD containers are connected to vmbr1 and they can access the public internet via that bridge. Now to the main problem: I would like to create a VM, not a container, that can connect to vmbr1 and access the public internet like those containers do. But when I do so (I'm using a ubuntu iso for that VM) I'm just able to ping the other containers on vmbr1, but I can not ping e.g. google.com or so. For the VM I entered the gateway 10.10.10.1 and the subnet 255.255.255.0 (/24).
Does anyone know how to possibly get that working? I'm very thankful for every answer. Have a great day!
Last edited: