OPNSense High Availability - 1 VM, 1 IP!

  Рет қаралды 9,363

Jim's Garage

Jim's Garage

Күн бұрын

In this video I show how to perform OPNSense 'HA' using a single VM and 1 IP. This technique makes use of homogenous network setups across identical nodes where failover in Proxmox comes into effect.
Recommended Hardware: github.com/JamesTurland/JimsG...
Discord: / discord
Twitter: / jimsgarage_
Reddit: / jims-garage
GitHub: github.com/JamesTurland/JimsG...
00:00 - Introduction to High Availability
01:18 - Network Overview
04:05 - Proxmox Overview
11:51 - Physical Overview
13:02 - Testing and Failover
15:12 - Ping During Failover
17:26 - Speed Tests
21:47 - Testing Migration in Real Time
23:43 - Outro

Пікірлер: 72
@PingPong-em5pg
@PingPong-em5pg 12 күн бұрын
Hey Jim, awesome material as usual. As for the hiccup - switches learn mac addresses and assign them to specific physical port so when you fail-over to a new physical machine there is some timeout happening on both WAN and LAN switches. Additionally many switches have mac spoofing protections so that might explain it as well. Not sure how to walk around this though. I would hope managed switches would have some functionality to allow "jumping" mac addresses.
@Jims-Garage
@Jims-Garage 12 күн бұрын
Thanks. All the VMs and physical machines should still have the same MACs though. Suspect it could be ARP related as the ports for LAN Trunk and WAN do change. I'll do some more digging. Either way, I can deal with a few seconds of outage for the bonus of this setup.
@johnwalshaw
@johnwalshaw 13 күн бұрын
Nice one. I do exactly this also. I agree with plan to eliminate the small switch and trunk the ISP VLAN to the pve hosts. That's what I do.
@Jims-Garage
@Jims-Garage 13 күн бұрын
Awesome, thanks for sharing!
@substandard649
@substandard649 13 күн бұрын
Jeez that seems like a lot of moving parts and nail biting 😉 I went with Unifi shadow mode so i can sleep at night. Proxmox for everything else though. Great video as always Jim
@Jims-Garage
@Jims-Garage 13 күн бұрын
@@substandard649 thanks, yeah I'm really glad they've finally created HA! If I had a udm I would probably go the same route, quite expensive though for me to buy 2 off the bat
@substandard649
@substandard649 13 күн бұрын
@@Jims-Garage you can't put a price on a good nights sleep Jim 😀 And that hair transplant you'll inevitably need will cost way more!
@JavierPerez-fq2fi
@JavierPerez-fq2fi 13 күн бұрын
Outstanding content as usual Jim! way different than regular installation of software/hardware... Thanks for sharing with enough detail to make it understandable and aplicable! Keep good job
@Jims-Garage
@Jims-Garage 13 күн бұрын
My pleasure! Glad it was useful 😃
@PlatyBZH
@PlatyBZH 13 күн бұрын
I'm using basicaly the same setup, but with pfSense and different hardware. It has been rock solid for over a year, no outage of any kind and great performance, can recommend !
@Jims-Garage
@Jims-Garage 13 күн бұрын
@@PlatyBZH that's reassuring to hear, thanks for commenting
@hyperprotagonist
@hyperprotagonist 14 күн бұрын
Hi Jim. Would love to see a video of you explaining how you’ve managed to keep all of your hair through this journey with the MS-01 workstations. Keep up the great work 👋
@Jims-Garage
@Jims-Garage 14 күн бұрын
Haha! It hasn't been simple, lots of work has gone into this behind the scenes.
@emanuelpersson3168
@emanuelpersson3168 14 күн бұрын
Stop scaring me.. Mine is on backorder.
@Jims-Garage
@Jims-Garage 14 күн бұрын
@@emanuelpersson3168 ha, don't worry. You don't need to go mad like I have 😂
@emanuelpersson3168
@emanuelpersson3168 14 күн бұрын
@@Jims-Garage The end game for me is to go down that route just like you. But i don't think i will ever be able to... My dream is to learn Kubernetes and to get a "Proxmox HA CEPH" cluster and in that a "K3s HA Cluster".
@Jims-Garage
@Jims-Garage 14 күн бұрын
@@emanuelpersson3168 awesome, well hopefully I've done enough to document my trials and tribulations and help you along the way!
@mikekane9734
@mikekane9734 14 күн бұрын
F8ck strikes! Your content deserves more likes and attention
@Jims-Garage
@Jims-Garage 13 күн бұрын
Thank you. Just need to keep plugging away
@woe2you2
@woe2you2 9 күн бұрын
@@Jims-Garage Was it an automated strike for something like "fag packet maths"? I don't think the septics' content filters speak proper English...
@frankb.8560
@frankb.8560 13 күн бұрын
Just moved to proxmox. In my previous VMware setup, I used Starwind vSan to HA pfsense. I plan on doing that again in proxmox or just use clustered ZFS and replication to make it even simpler.
@Jims-Garage
@Jims-Garage 13 күн бұрын
Nice, that should work well.
@organon69
@organon69 14 күн бұрын
I'm sure you've considered it, but with CARP on the various WAN/LAN segments and using OPNsense's internal HA scheme - inclusive of state via 'pfsync' - you have HA in a way that allows you to patch/reboot/put into maintenance one or the other without taking an outage. OPNsense's HA is pretty tolerant of version disparity, too - allowing you to have the "backup" instance behind / ahead of where the "prod" instance is per your preferences. If you won't want to have *2* instances taking up resources, however, it's not a fit.
@Jims-Garage
@Jims-Garage 14 күн бұрын
@@organon69 thanks for that, it's a good suggestion and something that I considered. Ultimately I wanted to try what I believe to be the easiest option first,. especially given my cluster is identical. Fortunately this seems to work well albeit it's not perfect.
@organon69
@organon69 14 күн бұрын
@@Jims-Garage Totally get it. Get "The Now" working, noodle on "The Next". One thing to watch if you consider an OPNsense-driven HA setup is how your ISP device allows DMZ/IP Passthrough to the firewall. Generally they allow a single IP (which would ostensibly be the CARP-based VIP) but sometimes don't like MAC-change shenanigans for the same IP. That is, CARP VIPs aren't discrete MACs - the VIP is an additional IP on the same int/MAC - so in an HA failover scenario the ARP behaviour on the ISP device needs to not freak out that the MAC behind that "DMZ" IP has changed all of a sudden. That dynamic alone may make you stick with the setup you walked through in the vid.
@mike6715b
@mike6715b 14 күн бұрын
I've been looking for a video series where someone actually uses the MS-01s as their main homelab with proxmox. The more videos i watch and the more i read about all this, the more i want to buy 3 myself and essentially replicate your setup. What has you power consumption been like with all of these? Do you still use a seperate clasic rack server for mass storage?
@Jims-Garage
@Jims-Garage 14 күн бұрын
It's running all 3 at around 150W which is a huge improvement over my old setup. These run my workloads but I also have a TrueNAS NAS attached to the network for long term storage.
@amosgiture
@amosgiture 14 күн бұрын
A lot of 'yeah-nah-yeah' moments in this one
@Jims-Garage
@Jims-Garage 14 күн бұрын
@@amosgiture not sure what that means, but I did state that it was live.
@WilsonVelez
@WilsonVelez 14 күн бұрын
Hey Jim, can you list the hardware that you have used in this video such as the switch where your ISP is connected to? Awesome video which game me some ideas or just blow up my network😆. Thank you.
@Jims-Garage
@Jims-Garage 14 күн бұрын
@@WilsonVelez hey, please check out my earlier MS-01 videos, I believe it's linked on there, cannot remember off hand. To be honest any basic switch will do for that part.
@WilsonVelez
@WilsonVelez 14 күн бұрын
@@Jims-Garage Yeah, my apologies, after writing the comment I noticed your "Recommended Hardware" link. Again, thank you for your videos.
@wstrake
@wstrake 14 күн бұрын
Is the reason CARP won't work that you can't specify the MAC address of the WAN CARP virtual IP, so the fibre ONT won't talk to the new MAC when it fails over?
@oli1505
@oli1505 14 күн бұрын
Great video. Ur network seems a bit complicated. I'm working on my own atm. I've no clue how I should make some things :D especially thinking about upgrading to 10gig. I saw u had no sophos instance. Are u not using sophos anymore?
@Jims-Garage
@Jims-Garage 14 күн бұрын
@@oli1505 no, this video is about OPNSense. Sophos is still good though
@oli1505
@oli1505 14 күн бұрын
@Jims-Garage so u're using both? That would be an interesting video of how that's working.. I'd also appreciate another sophos video. 🤟 There is not much out there. It's hard to get things done without any practice. So general best practice videos how things should be designed/work together would also be nice 😁
@Jims-Garage
@Jims-Garage 14 күн бұрын
@@oli1505 no, I moved completely to OPNSense. Long story but it was to do with my new internet (I explained it in a video). Long story short, I could go back to Sophos now but I'm enjoying OPNSense at the moment.
@oli1505
@oli1505 13 күн бұрын
@@Jims-Garage ohh I guess I missed that one.. I'm gonna watch it 👍
@russellmm
@russellmm 14 күн бұрын
just a quick couple of comments. I am doing something like this but what I do is have a small 4 port switch where I have 1 WAN in and 2 WAN out. I only have a single copy of OPNSense running which I failover to 2 different Proxmox Machines. I can also easily live migrate between the two. One last VERY important note for MS-01 owners. The 2.5G LANport with Management abilities WILL NOT work as the LAN port in OPNSense as it does DHCP does not work on it for some reason.
@johnwalshaw
@johnwalshaw 13 күн бұрын
@russellmm My guess is that is vpro related and a workaround is likely to disable vpro in the bios.
@russellmm
@russellmm 13 күн бұрын
@@johnwalshaw yes, it is related but there is no way to turn that off in the MS-01 BIOS that I am aware of. Minisforum does not have the best BIOS support.
@johnwalshaw
@johnwalshaw 13 күн бұрын
@russellmm On my 3xLenovo P340 towers running Proxmox, in addition to the 2x10Gbps I use for primary, I use the onboard 1Gbps vpro nic. It is configured as a linux bridge. From memory, the vpro and host IP required it to be native vlan and tagged (trunked) vlans for everything else works fine. I also use this as a secondary path for CEPH. I have not tested PCIe passthrough of a vPRO NIC. I think vPRO is configured as static and not DHCP in this case. I checked my notes but not sure where I documented all this. I was very happy with the serial over IP feature and reccommend this.
@MrakCZ
@MrakCZ 13 күн бұрын
​@@russellmm It is, mine came with vPro off. I tried it, it sucks, so I turné it off again. Unfortunately no time to tell you exactly, where it is, but it's there.
@russellmm
@russellmm 12 күн бұрын
@@MrakCZ i'll check again, thanks
@Arduous52
@Arduous52 13 күн бұрын
What is the technology supporting the 10.0.0.1/29? Thunderbolt? Thank you.
@Jims-Garage
@Jims-Garage 13 күн бұрын
Yes, it's a thunderbolt ring network.
@mike6715b
@mike6715b 14 күн бұрын
Also why didnt you go with a mikrotik switch that has the required SFP ports? Something like the CRS310-1G-5S-4S+IN Since you have OPNSense, you arent using a dream machine or something like that so would it not be easier/cheaper to go Mikrotik?
@Jims-Garage
@Jims-Garage 14 күн бұрын
The original switch was bought around 5 years ago when I also had a UDM Pro. Cheapest option I could think of was to add the USW-Agg.
@billedwardz
@billedwardz 13 күн бұрын
Are you avoiding using LXC containers for any particular reason? The question is unrelated to OPNsense. Also I gotta ask, is your YT guidelines strike related to your AI thumbnails?
@Jims-Garage
@Jims-Garage 13 күн бұрын
I prefer VMs for security and simplicity, although I've covered LXCs in the past and have used them. The strike was for Plex. Apparently that's against their policy (for me at least).
@SharkBait_ZA
@SharkBait_ZA 13 күн бұрын
What happened to the other HA setup you had with the 2 opnsense vms? I am still using that setup, way faster failover.
@Jims-Garage
@Jims-Garage 13 күн бұрын
@@SharkBait_ZA I wanted to avoid double NAT and I only have a single IP.
@SharkBait_ZA
@SharkBait_ZA 13 күн бұрын
@@Jims-Garage Sorry, I forgot about that. My setup has public IPs, so only single NAT for me. 🙂
@sku2007
@sku2007 14 күн бұрын
isn't ceph running on your thunderbold connection? last time you showed it had frequent paket loss, I would expect this causing a performance penalty
@Jims-Garage
@Jims-Garage 14 күн бұрын
It is, but even with the retries it was able to hit 2.5GB/s. My understanding is that the performance I see is typical of Ceph as it's not designed with raw performance in mind.
@sku2007
@sku2007 14 күн бұрын
@@Jims-Garage i think an opnsense update is more like 4k iops than sequential writes what 2.5GB/s seems to be
@johnwalshaw
@johnwalshaw 13 күн бұрын
@sku2007 i run ceph and guest vlans on shared 2x10Gbps LACP LAG for each host and not aware of any issues. I would think tb links would outperform, but maybe it's a driver issue?
@xgod978
@xgod978 14 күн бұрын
kind of a noob question, this doesnt put you under double nat right? even with your future plan by not using the small switch?
@Jims-Garage
@Jims-Garage 14 күн бұрын
No, there's no double NAT here.
@Jack-yv3po
@Jack-yv3po 14 күн бұрын
It might be helpful for you to say why you think that this would add an extra level of NAT, as it's likely just a misunderstanding. All this does is add a switch between the incoming WAN connection and the routers, so a packet from WAN hits the switch and whichever node is currently acting as the router receives the packet. The other 2 aren't listening for it and don't respond. As far as the devices (both ISP on WAN side and on LAN side) using the router are concerned, this is exactly the same as having just one machine permanently acting as the router.
@antoniomax3163
@antoniomax3163 12 күн бұрын
Tell us a little about an defguard - open-source solution with real WireGuard MFA/2FA & integrated OpenID Connect SSO. I have a vps with a white address, as well as a domain that is linked to cloudflare.
@shephusted2714
@shephusted2714 13 күн бұрын
you are really making this much more complicated than necessary and conflating things - opnsense will run fine on 50 dollar boxes - break down and make the opnsense HA setup on 2 separate boxes and leave proxmox and ceph to do their own thing - running db and load balanced applications - this way you keep things much simpler and discrete
Heartwarming moment as priest rescues ceremony with kindness #shorts
00:33
Fabiosa Best Lifehacks
Рет қаралды 11 МЛН
아이스크림으로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 56 МЛН
Русалка
01:00
История одного вокалиста
Рет қаралды 6 МЛН
Don't Use A Firewall, Use 2! OpnSense High Availability Guide
28:30
Our BIG network upgrade! - OPNsense DEC4280
18:03
ShortCircuit
Рет қаралды 533 М.
100+ Linux Things you Need to Know
12:23
Fireship
Рет қаралды 777 М.
Building a 26TB Offsite Backup Server! ft. Tailscale
23:48
Wolfgang's Channel
Рет қаралды 146 М.
Migrating From OPNsense To Mikrotik
19:11
Mircea Anton
Рет қаралды 17 М.
Why I Chose Rust Over Zig
33:18
ThePrimeTime
Рет қаралды 31 М.
Virtualizing OPNsense on Proxmox as Your Primary Router
41:08
Home Network Guy
Рет қаралды 42 М.
Don’t run Proxmox without these settings!
25:45
Christian Lempa
Рет қаралды 137 М.
Downsizing my Home Lab to a SINGLE PC
17:56
Raid Owl
Рет қаралды 310 М.
Planning A Homelab - Cluster Time! Minis Forum MS-01
16:22
Jim's Garage
Рет қаралды 35 М.
Мой инст: denkiselef. Как забрать телефон через экран.
0:54
Что не так с раскладушками? #samsung #fold
0:42
Battery  low 🔋 🪫
0:10
dednahype
Рет қаралды 6 МЛН
Cheapest gaming phone? 🤭 #miniphone #smartphone #iphone #fy
0:19
Pockify™
Рет қаралды 2,8 МЛН
iPhone socket cleaning #Fixit
0:30
Tamar DB (mt)
Рет қаралды 12 МЛН