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

    Make a Túnnel trought IPSSEC and OpenVPN using PFSense

    Scheduled Pinned Locked Moved General pfSense Questions
    pfsenseopen vpnipsectunnels
    4 Posts 2 Posters 751 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.
    • F
      felipefonsecabh
      last edited by felipefonsecabh

      Hi!
      I have this network topology:
      Untitled Diagram.drawio.png

      My intention is that the devices on network "external access" see the DVC1, for example. I can make changes in PFSense and Mikrotik.

      The túnnel IPSEC between pfsense and external access is

      Phase 2:
      Local Network: 172.25.148.0/24
      Remote Network: 192.168.15.0/24

      And in Mikrotik (the OpenVPN Túnel is working, i can see the DVC1 through all devices in PFSense LAN for example), in IP -> Routes i set:

      dst-address: 192.168.15.0/24
      Gateway: (Gateway of OpenVPN Túnel on side PfSense).

      But didn't work. I need the pfsense act as túnnel between two networks.

      Any ideas? Thanks a lot!

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        That should work as long as there are firewall rules to pass it.

        You will also need a route to 192.168.15.0/24 in the Mikrotik so it can reply.

        Steve

        F 1 Reply Last reply Reply Quote 0
        • F
          felipefonsecabh @stephenw10
          last edited by

          @stephenw10

          So, as I said, I created a static route in Mikrotik.
          IP -> Routes
          dst-address: 192.168.15.0/24
          Gateway: (pfsense address of ovpn tunnel)

          In Firewall, i mark, accept all connections for testing.

          In PFSense, in Firewall -> Rules -> Ipsec, i added:

          Action: Pass
          Interface: IPSec
          Address Family: IPv4
          Protocol: Any
          Source: Network: 192.168.15.0/24
          Destination Network: 172.25.148.0/24
          

          In Firewall -> OpenVPN i allow all packets

          After this, i have this situation:

          Router of External Access can ping DVC1
          IPs on LAN of External Access can't ping DVC1
          Any Device in Mikrotik LAN (included the router) can't ping devices in External Access Network.

          I missing any detail?

          stephenw10S 1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator @felipefonsecabh
            last edited by

            @felipefonsecabh said in Make a Túnnel trought IPSSEC and OpenVPN using PFSense:

            Router of External Access can ping DVC1

            What source IP does it use for that?
            To pass the IPSec tunnel it must be in he 192.168.15.0/24 subnet.
            In which case it can only be the External Access router blocking traffic clients on it's LAN. Or potentially redirecting traffic past the IPSec tunnel?
            What is that device?

            Steve

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