Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    OpenVPN can't communicate with IPsec tunnel

    Scheduled Pinned Locked Moved OpenVPN
    8 Posts 3 Posters 1.9k 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.
    • M
      mjaydenc
      last edited by

      So i'm having an issue with my network
      i have a IPsec tunnel which works fine (192.168.40.0/24) with my local network (192.168.1.0/24)
      i have an openVPN which works (192.168.4.0/24)

      now … when i use openVPN, i can access the local network
      when i use local network i can access IPsec tunnel
      but i can not access IPsec tunnel when i use openVPN (ie from 192.168.4.2 -> 192.168.40.2)
      firewall or permissions aren't the problem because i can see it being allowed. i think there is a routing issue or setting issue of some sort

      any help would be appreciated

      1 Reply Last reply
      Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        Do you have an IPsec phase 2 entry for 192.168.4.0/24 <=> 192.168.40.0/24 on both ends of the IPsec tunnel?

        Do you have 192.168.40.0/24 listed as a local network on the OpenVPN server?

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply
        Reply Quote 0
        • M
          mjaydenc
          last edited by

          Yeh i do have a phase 2 entry for 192.168.4.0/24 on the local end, the other end is in another state
          i do recall it working at some point though so i'm not sure that is the issue.

          and yeh i have 192.168.40.0/24 listed as a local network on the OpenVpn server

          i'm trying to get in touch with the other side of the IPsec to see if they will add my 192.168.4.0/24 for it to work. do you think that is the problem?

          1 Reply Last reply
          Reply Quote 0
          • DerelictD
            Derelict LAYER 8 Netgate
            last edited by

            Without a phase 2 on the other side, traffic from there to your OpenVPN subnet will not be interesting to IPsec and will not be forwarded over the tunnel.

            Chattanooga, Tennessee, USA
            A comprehensive network diagram is worth 10,000 words and 15 conference calls.
            DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
            Do Not Chat For Help! NO_WAN_EGRESS(TM)

            1 Reply Last reply
            Reply Quote 0
            • M
              mjaydenc
              last edited by

              do you think it would be a good idea to assign 192.168.1.0/24 address to openVPN in order to get around this? so that openVPN traffic will appear as local traffic
              whenever i try assign static IPs to openVPN, it won't communicate with anything
              am i missing something or is it not possible?

              1 Reply Last reply
              Reply Quote 0
              • DerelictD
                Derelict LAYER 8 Netgate
                last edited by

                Since you asked what I think, I think if you want IPsec traffic over an IPsec tunnel the proper solution is to get the correct Phase 2 entries in place.

                Else you would have to bridge a tap-mode OpenVPN instance which you might be able to get to work but is not a recommended configuration.

                Chattanooga, Tennessee, USA
                A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                Do Not Chat For Help! NO_WAN_EGRESS(TM)

                1 Reply Last reply
                Reply Quote 0
                • M
                  mjaydenc
                  last edited by

                  just got it done. after 2 weeks of pulling my hair out. IT IS WORKING

                  thanks heaps for your expertise. need to shoot you a pack of tim tams ;)

                  1 Reply Last reply
                  Reply Quote 0
                  • A
                    aytacdede
                    last edited by

                    Dear sir can you explain how did you do it ?
                    please
                    many thanks

                    1 Reply Last reply
                    Reply Quote 0

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    • First post
                      Last post
                    Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
                    Privacy Policy · Cookie Policy