Virtualizing my router - any experience to share? Pos/cons?
-
Without a 3rd they can get confused if they loose contact but both nodes are up. Like both are in charge as one vote is enough
-
my isp also does pppoe, i have a virtual pfsense, 1gbps up/down, it's never been an issue for me. ive had this setup for maybe three years.
-
Do a speed test and run htop... you'll see CPU usage only on one core spiking. Not a big deal if your CPU can handle it, but the AMD GX-412TC in the APU2 I was using is too slow.
-
Yeah, it's /etc/pve/corosync.conf you can set quorum votes to 2 for a device. But it's easy to get the file overwritten. Link
Or you can use pvecm expected 1 on both hosts or pvecm --votes 2 on one device.
-
That's it. Been a long time since I had to use that and I found it had it's issues so I moved to the qdevice without a third node.
-
I have 2 vcpu (host) for the pfsense vm, xeon e5-2667 3.2ghz, i see both cpu hit about 80% max during speed tests.
-
How fast is your internet?
-
1gbps symmetrical
-
Thanks, this is good data!
-
I considered something like this at one point, but I ended up installing OpenWRT on my existing router instead because what I ultimately wanted was more flexibility, and was concerned about a single point of failure. Now, I have the ability to do things like always run certain devices through a VPN, block specific devices from the internet with a firewall, as well as DNS for self-hosted stuff.
-
Yeah, this might be the way to go. OpenWRT supports hardware NAT with many of these ARM-based routers like many of the MediaTek-based ones, which gives them super high throughput at very low CPU usage. The efficiency blows x86 out of the water. The ability to migrate your OpenWRT config to new hardware (real or virtual) in the future means you kinda get the best of both worlds....
-
Wrapping up this thread, I really appreciate all the opinions and experiences everyone shared! Gave me lots of new perspectives to think about.