Routing openvpn client across ipsec tunnel
-
Never had to do this but now it has been requested.
Site A 10.0.0.0/24 <–--IPSEC P2P----> Site B 10.0.2.0/24
OpenVPN for client vpn 10.0.1.0/24
I want to be able to have openvpn client machines on the 10.0.1.0/24 network be able to connect to devices on the 10.0.2.0/24 subnet. Would I be better off using ipsec client rather than openvpn? Is this even possible?
-
All you need are phase 2 entries on IPsec to cover the additional traffic flows:
Site A gets an additional P2 for 10.0.1.0/24 to 10.0.2.0/24.
Site B gets an additional P2 for 10.0.2.0/24 to 10.0.1.0/24.OpenVPN server also needs 10.0.2.0/24 set as a local network so the client gets a route.
Then so long as the firewall rules allow the traffic it'll flow
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.