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

    LAN TO LAN WITH 4 VPN TUNNEL (REDUNDANT)

    Scheduled Pinned Locked Moved IPsec
    28 Posts 5 Posters 19.6k 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.
    • H
      hoba
      last edited by

      Try "prefer old IPSEC SA" setting at system>advanced at all ends and see if that makes a difference. If that doesn't help try using smaller lifetimes (like 300 seconds). This way a tunnel should expire after 5 minutes and the backupmachine then will hopefully be able to connect though this means some downtime until the tunnel will be estblished again on failover.

      1 Reply Last reply Reply Quote 0
      • S
        sbyoon
        last edited by

        Noted, I will try and let you know of the result. Thank you, Hoba.

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

          I test it and run fine, work's tunnel in OPT-WAN Interface !

          LAN
                |
            (PfSense 1)
            |              |
          ISP1(WAN)  ISP2 (OPT-WAN)
            |              |
            |              |
          (  Internet )
                |   
                |   
                ISP3
                |   
                |   
              pfSense2 (waiting for mobile clients)
                |
                LAN

          I test this configuration and run ok, but don't automatically.

          1. Both pfsense have static ip.
          2. pfsense 1 have load-balancer
          3. The tunnel is stablish with ISP1 and ISP3 using in pfsense3 mobile clients.
          4. If ISP1 is down i enter in pfsense1 and only change in ipsec WAN Interface to OPT-WAN Interface, and in WAN Gateway write the
                OPT-WAN GATEWAY
          5. save and go to diagnostic-ping and all run fine, now vpn is stablished from OPT-WAN PFsense1 to WAN movile client of PFsense 2

          the unique problem in this configuration is thats is manuall, but for now work's for me

          1 Reply Last reply Reply Quote 0
          • H
            hoba
            last edited by

            Might be easier to have both tunnels configured and just disable the one or the other tunnel for the manual failover.

            1 Reply Last reply Reply Quote 0
            • S
              sbyoon
              last edited by

              I've not tested ipsec redundant with carp and ifdepd because I need it at Wrap but the package of ifdepd is not available at embedded system. I'm waiting 1.0 version which will be available package installation at embedded system.

              And according to Martinc_77's message the IPsec problem at OPT1 interface was already solved. I tested it with Wrap but IPsec at OPT1 interface does not work yet. Is there anyone who tested it with Wrap? I'd like to know whether only I have this problem. I used pfsense RC2 for testing.

              Thank you.

              1 Reply Last reply Reply Quote 0
              • H
                hoba
                last edited by

                pfSense 1.0 won't have packagesupport on embedded platforms. Where did you read that? I have tested IPSEC on OPT Interfaces during the hackathon, however I have not tested with hosts coming not from the OPT subnet. In that case it might be possible to add a static route for the remote IPSEC endpoint through the OPT interface gateway.

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

                  Dear hoba, IPSEC at OPT Interfase works but only if i add static route! This is a bug ? This is solve in RC3 ??

                  Tks

                  1 Reply Last reply Reply Quote 0
                  • H
                    hoba
                    last edited by

                    What kind of rule do you need to make this work? Please provide an example.

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

                      I need add the next rule in STATIC RUTE HOBA:

                      –---------------------------------------------------------------------------------------
                      INTERFASE              NETWORK                                          GATEWAY

                      OPT1        <the other="" end-point="" of="" vpn="">                    <the opt1="" gateway="">-----------------------------------------------------------------------------------------

                      NOTE: OPT1 AND WAN INTERFASE ARE IN MODE LOAD BALANCER

                      EXAMPLE:

                      VPN IS RUN IN WAN INTERFASE, THEN, WAN INTERFASE IS DOWN AND I CHANGE IN VPN-IPSEC THE RULE. MANUALLY CHANGE THE WAN INTERFASE WITH OPT1 INTERFASE AND ANY HAPPEND BUT IF I ADD THE PREVIUS STATIC ROUTE VPN IS UP AGAIN WITH OPT1 INTERFASE.

                      THE QUESTION IS:
                        BECAUSE NEED ADD THE STATIC ROUTE IF THE RULE IN VPN-IPSEC CONFIGURATION HAS ALL THE  INFORMATION THAT PFSENSE NEED ??

                      THIS IS A BUG??</the></the>

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

                        Thear hoba:

                        Plz need help, cant resolve this problem.I will become crazy
                        My config is the next.

                        LAN
                              |
                          (PfSense 1)
                          |              |
                        ISP1
                        (WAN)    ISP2 (OPT-WAN)
                          |              |
                          |              |
                        (  Internet )
                              |   
                              |   
                              ISP3
                              |   
                              |   
                            pfSense2 (waiting for mobile clients)
                              |
                              LAN

                        1. Both pfsense have static ip.
                        2. pfsense-1 have load-balancer & squid
                        3. The tunnel is stablish with ISP1 and ISP3 using in pfsense3 mobile clients. At less ISP1 is down then Switch to ISP2

                        The nexts problem happend

                        when ISP1 is down:

                        A) I change manually the IPSEC VPN Start Point to ISP2, (Now Tunnel is between ISP2 and 
                                      ISP), but not connection is stablish at less add the next static route : 
                                              <opt1>      <destination 32="" end="" point="">      <opt1-gw>B) PFSENSE Can't resolve DNS at less add the next statis route:
                                              <opt1>      <destination 32="" dns="" server="">      <opt1-gw>C) Squid (Running in pfsense 1) don't work any form.

                        Problems A & B resolve with staric route, C can't but when ISP1 is up again, i need change again the IPSEC VPN Start Point (because isp1 is better)  and delete all static route. The really problem is write and delete a static continuously with time I criticize of production that this uses.

                        My Idea is only change the ISP START POINT MANUALLY (ONLY CHANGE COMBO IN IPS-VPN) and all work fine. It is there possible? Is not, know u other solution. Any solution for squid when WAN is DOWN?</opt1-gw></destination></opt1></opt1-gw></destination></opt1>

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