Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Routing openvpn client across ipsec tunnel

    Scheduled Pinned Locked Moved Routing and Multi WAN
    2 Posts 2 Posters 635 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K Offline
      kapara
      last edited by

      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?

      Skype ID:  Marinhd

      1 Reply Last reply Reply Quote 0
      • jimpJ Offline
        jimp Rebel Alliance Developer Netgate
        last edited by

        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

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.