F5F Stay Refreshed Power Users Networks Proxmox VM bridging VLANs setup

Proxmox VM bridging VLANs setup

Proxmox VM bridging VLANs setup

R
RizapS
Member
135
07-06-2016, 08:16 AM
#1
Proxmox VM - OPNsense interface via Opt1 Updated Info! Welcome! Thank you for joining these discussions. I’m eager to learn and assist whenever possible! Recently, I converted my old gaming setup into a Proxmox server. My goal is to host OPNsense, Pihole, Local LLMs, Webservers, etc., in separate virtual machines. Some aspects of the project are outside my expertise, so I’m reaching out for guidance. My current hardware: • Intel i7 6700k • 16GB RAM • 500GB SSD • LAN port on motherboard is inactive. • Three PCIe LAN cards (each about $8) • GTX 970 Current Proxmox configuration: Enp7s0 = Proxmox Control Vmbr0 = Proxmox Control Bridge Enp6s0 = WAN Vmbr1 = WAN Bridge Enp3s0 = LAN Vmbr2 = LAN Bridge OPNsense shows interfaces: Vmbr1 = vtnet0 Vmbr2 = vtnet1 Vmbr3 = opt1. Details: I’m trying to set up OPNsense as a transparent filtering bridge and need to strip the IP from the LAN interface. Usually, the web GUI is accessed via the LAN IP, but after removing that IP for the bridge, access disappears. My question: How can I reach the OPNsense GUI through Opt1 → Vmbr3? I’d like to create a Vmbr3 bridge that keeps me connected to the GUI even when the LAN IP is disabled in OPNsense for the transparent mode. If you have more details, feel free to share. Any support would mean a lot!
R
RizapS
07-06-2016, 08:16 AM #1

Proxmox VM - OPNsense interface via Opt1 Updated Info! Welcome! Thank you for joining these discussions. I’m eager to learn and assist whenever possible! Recently, I converted my old gaming setup into a Proxmox server. My goal is to host OPNsense, Pihole, Local LLMs, Webservers, etc., in separate virtual machines. Some aspects of the project are outside my expertise, so I’m reaching out for guidance. My current hardware: • Intel i7 6700k • 16GB RAM • 500GB SSD • LAN port on motherboard is inactive. • Three PCIe LAN cards (each about $8) • GTX 970 Current Proxmox configuration: Enp7s0 = Proxmox Control Vmbr0 = Proxmox Control Bridge Enp6s0 = WAN Vmbr1 = WAN Bridge Enp3s0 = LAN Vmbr2 = LAN Bridge OPNsense shows interfaces: Vmbr1 = vtnet0 Vmbr2 = vtnet1 Vmbr3 = opt1. Details: I’m trying to set up OPNsense as a transparent filtering bridge and need to strip the IP from the LAN interface. Usually, the web GUI is accessed via the LAN IP, but after removing that IP for the bridge, access disappears. My question: How can I reach the OPNsense GUI through Opt1 → Vmbr3? I’d like to create a Vmbr3 bridge that keeps me connected to the GUI even when the LAN IP is disabled in OPNsense for the transparent mode. If you have more details, feel free to share. Any support would mean a lot!

S
Stuji27
Junior Member
42
07-20-2016, 09:03 PM
#2
I resolved the issue, I’m glad this helps. The best method is to set several IP addresses directly on the main interface or bridge without relying on aliases. By giving extra IPs to the interface, you can insert one of those addresses into the VM via the connected port. Here’s how to adjust and set up the correct configuration. Solution: Use Multiple IPs Without Aliases Edit the Proxmox Network Configuration : nano /etc/network/interfaces #Modify the Configuration for the Interface/Bridge: If you’re using vmbr0 as the bridge linked to enp3s0, include several address lines to assign additional IPs. For example: auto vmbr0 iface vmbr0 inet static address 192.168.1.100/24 gateway 192.168.1.1 bridge_ports enp3s0 bridge_stp off bridge_fd 0 # Additional IPs on the same subnet post-up ip addr add 192.168.1.101/24 dev vmbr0 post-up ip addr add 192.168.1.102/24 dev vmbr0 pre-down ip addr del 192.168.1.101/24 dev vmbr0 pre-down ip addr del 192.168.1.102/24 dev vmbr0 #Replace vmbr0 with enp3s0 etc Explanation: post-up adds the IPs to the bridge once the interface is up. pre-down removes them when the interface is down. Save and Restart Networking
S
Stuji27
07-20-2016, 09:03 PM #2

I resolved the issue, I’m glad this helps. The best method is to set several IP addresses directly on the main interface or bridge without relying on aliases. By giving extra IPs to the interface, you can insert one of those addresses into the VM via the connected port. Here’s how to adjust and set up the correct configuration. Solution: Use Multiple IPs Without Aliases Edit the Proxmox Network Configuration : nano /etc/network/interfaces #Modify the Configuration for the Interface/Bridge: If you’re using vmbr0 as the bridge linked to enp3s0, include several address lines to assign additional IPs. For example: auto vmbr0 iface vmbr0 inet static address 192.168.1.100/24 gateway 192.168.1.1 bridge_ports enp3s0 bridge_stp off bridge_fd 0 # Additional IPs on the same subnet post-up ip addr add 192.168.1.101/24 dev vmbr0 post-up ip addr add 192.168.1.102/24 dev vmbr0 pre-down ip addr del 192.168.1.101/24 dev vmbr0 pre-down ip addr del 192.168.1.102/24 dev vmbr0 #Replace vmbr0 with enp3s0 etc Explanation: post-up adds the IPs to the bridge once the interface is up. pre-down removes them when the interface is down. Save and Restart Networking