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

    Route OPENVPN through IPSEC Encryption domain

    Scheduled Pinned Locked Moved IPsec
    2 Posts 1 Posters 959 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.
    • G
      grumling
      last edited by

      Hi,

      Need some tips if someone have the time.
      My setup

      pfSense 2.2.5-RELEASE (amd64)
      LAN: 172.16.246.0/24
      IPSEC Phase 2
      172.16.246.8/29 <-> 172.16.42.24/30
      Server1: 172.16.246.10

      This works perfect, Server1 can access 172.16.42.25 and 172.16.42.26

      Now here comes the problem. Have a OPENVPN: 10.0.0.0/24

      Is it possible to NAT OPENVPN through a virtual IP, lets say 172.16.246.9/32?
      So if I try to access 172.16.42.25 it will go over the IPSEC and connect to the remote server?

      Been testing a lot of ways, but I cant get it to work. The OPENVPN still goes out via standard GW and I cant see that the NAT to the VIRTUAL IP i have created even works. Feels like a route or nat issue :(

      Dont want to add another IPSEC Phase2, so that is not a solution.

      Thanks in advance

      1 Reply Last reply Reply Quote 0
      • G
        grumling
        last edited by

        Think I found the problem.
        Adding a secunday phase 2 with the OPENVPN range and then set the NAT/BINAT option to 172.16.246.9/32 seems to have fixed it.

        If anyone else have the same problem

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