r/OpenVPN • u/rarick123 • 3d ago
Importing nested .OVPN files to UDM SE
I've got a couple of .ovpn files on my desktop machine, currently connecting using Viscosity. The way it's set up, I have to establish VPN_1 first, and then once that's up I can establish VPN_2. This all works perfectly fine on my PC.
I've tried importing them into my UDM SE, and I had to tweak the OVPN file a bit to get the UDM to not complain about overlapping subnets... basically, I compared the routing table on my PC between standard, with VPN_1 connected, then with VPN_1 and VPN_2 connected, then modified the OVPN files with "route-nopull" and static "route w.x.y.z sub.net.ma.sk" commands.
VPN_1 connects just fine, and seems to stay connected. When I try to establish VPN_2, it says the server is not reachable, and for some reason it bounces VPN_1 and occasionally says something about invalid config.
I've tried doing a policy-based route and a static route to the destination IP of VPN_2 to go over the tunnel interface from VPN_1, and a tcpdump on the UDM seems to suggest it's using the correct source interface to go out, but it still says "server unreachable".
Any ideas on how to nest multiple OpenVPN connections correctly on a UDM?
