Subject: Configuring Dual OpenVPN Tunnels on Rutx12 Router for Redundancy
I’m using a Rutx12 router at my remote sites, configured as an OpenVPN client to connect to my VyOS router in a colocation facility. I’m looking to add a second OpenVPN tunnel connects to the same VyOS router, but on a different port. The goal is to setup two openvpn connections to the vyos utilizing two modems, each connected to a different SIM and provider.
Tried few things and failed.
I initially tried using mwan3 (web interface), but it doesn’t allow me to specify different ports for same destination IP. Since both tunnels connect to the same public IP on my VyOS router, this approach isn’t feasible.
Then I attempted to manually mark packets using iptables and direct them through two separate routing tables (table 2 for qmimux0 and table3 for qmimux1) using IP rules. However, this isn’t working as expected because the routing rules configured in my OpenVPN client files add routes to both tables when the interfaces come up.
I don’t need dynamic routing; I simply want two OpenVPN tunnels connecting through two different providers.
Is this configuration possible? If so, how can I achieve it?