New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Proxmox + OPNSense Setup
Petey_Long
Member
Note: I'm terrible with networking
What I'm looking to accomplish seems simple in my head but given my terrible networking skills, it's seemingly more complex than it needs to be.
Here's my network interface list:
Name / Type / Active / Autostart / VLAN Aware / Ports-Slaves / Bond Mode / CIDR / Gateway
enp35s0 - Network Device - Yes - No - No - null - null - null - null
enp36s0 - Network Device - No - No - No - null - null - null - null
enxca0af1 - Network Device - No - No - No - null - null - null - null
vmbr0 - Linux Bridge - Yes - Yes - No - enp35s0 - null - a.a.a.a/29 - a.a.a.169
vmbr1 - Linux Brudge - Yes - Yes - No - null - null - 10.10.10.10.1/24 - null
I've got 2 public IP addresses
What I'd like to do is set up a.a.a.a to exclusively access/manage proxmox and set b.b.b.b to route external traffic to the VMs/containers
From what I gathered, I need to install an OPNSense VM accomplish the latter - but given I'm not even sure how to get the former working, that's a far and away step #2 for me.
Any help would be greatly appreciated!!!
Comments
Step 1: Configure Proxmox Management IP
Edit the Network Configuration:
/etc/network/interfaces
.Update the Configuration:
Ensure that
vmbr0
is configured with the IP addressa.a.a.a
for Proxmox management. Your configuration should look something like this:Restart Networking:
systemctl restart networking
or reboot the server.Step 2: Prepare for External Traffic Routing
Reserve the Second Public IP:
b.b.b.b
is not used by any other service or device and is reserved for routing traffic to your VMs/containers.Install OPNSense:
vmbr0
for WAN access and another NIC connected to a separate bridge (e.g.,vmbr1
) for LAN.Configure OPNSense:
b.b.b.b
.10.0.0.1/24
).b.b.b.b
to your VMs.Step 3: Configure VMs/Containers
Connect VMs to LAN Bridge:
vmbr1
) and have IPs in the same range as the OPNSense LAN interface.Set OPNSense as Gateway:
By following these steps, you should have Proxmox management traffic isolated to
a.a.a.a
and external traffic routed throughb.b.b.b
using OPNSense.In terms even I can understand. Really awesome of you man, thank you! Step #1 was the step seemingly getting into my way of accidentally stumbling into making things work.
Time to give it a spin!
Got what I could set up for the night (right up until the last step) and found a tutorial I think will get me the rest of the way down the road
https://www.zenarmor.com/docs/network-security-tutorials/how-to-configure-opnsense-nat (for anyone else who may be interested)