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

    IPSec tunnel problems after pfSense 2.2.3 upgrade

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    64 Posts 17 Posters 27.7k 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.
    • J
      jdp0418
      last edited by

      Yeah, seems you might be getting smacked with a bug since others are experiencing the same thing.

      You stated you rebuilt your tunnels… did you try rebuilding the rules?  Maybe the rules somehow became dis-associated with the IPSEC tunnel.

      1 Reply Last reply Reply Quote 0
      • D
        dharrigan
        last edited by

        Hi,

        Having the same issue too. VPN up (to Amazon), but no traffic flowing.

        -=david=-

        1 Reply Last reply Reply Quote 0
        • RMBR
          RMB
          last edited by

          I have created some new allow-any-any rules above all existing rules to check if it was rule related, but that didn't help. So I think it is not rule related….
          OpenVPN is still running fine, it is purely IPSec related.

          1 Reply Last reply Reply Quote 0
          • J
            jdp0418
            last edited by

            Hmm, gremlins perhaps…

            I have 2 PFSense units I just upgraded today to 2.2.3 (i386).  I have a tunnel between them.  I did have to "manually" start the tunnel, but these are units I use specifically for testing, so they don't really send traffic over the tunnel unless I create it.

            Anyway, I just manually started the tunnel and it came up and I am able to ping across the tunnel.  I am using fairly standard settings and seems pretty close to your build.

            
             config setup
                    uniqueids = yes
                    charondebug=""
            
             conn bypasslan
                    leftsubnet = 192.168.1.11/32
                    rightsubnet = 192.168.1.0/24
                    authby = never
                    type = passthrough
                    auto = route
            
             conn con1000
                    fragmentation = yes
                    keyexchange = ikev1
                    reauth = yes
                    forceencaps = no
                    mobike = no
                    rekey = yes
                    installpolicy = yes
                    type = tunnel
                    dpdaction = none
                    auto = route
                    left = x.x.x.x
                    right = y.y.y.y
                    leftid = x.x.x.x
                    ikelifetime = 28800s
                    lifetime = 28800s
                    ike = aes256-sha256-modp1024!
                    esp = aes256-sha256-modp1024!
                    leftauth = psk
                    rightauth = psk
                    rightid = y.y.y.y
                    aggressive = no
                    rightsubnet = 192.168.230.0/24
                    leftsubnet = 172.16.100.1|192.168.1.0/24
            
            

            Granted, this is between 2 PFS hosts.  I can't speak to how IPSEC is working to other firewalls under 2.2.3.

            1 Reply Last reply Reply Quote 0
            • J
              jdp0418
              last edited by

              Silly question, but do you see any "blocked" packets the WAN of your firewall for packets coming from the far end firewalls (and vice versa)?  I don't mean IPSEC in particular, I am just curious since the enc0 interface isn't reporting any received packets, are any of those packets actually reaching the firewall and getting blocked.

              1 Reply Last reply Reply Quote 0
              • yuljkY
                yuljk
                last edited by

                Just want to chime in and say I am also experiencing this issue after a successful upgrade to 2.2.3 - IPSec working fine before the upgrade.

                Chris

                1 Reply Last reply Reply Quote 0
                • F
                  frmpf
                  last edited by

                  Another "me too".  I've got a pair so I updated only the secondary.  The primary, still on 2.2.2, works fine for all tunnels.  The secondary on 2.2.3 has dead tunnels.  ESP traffic is going both directions, DPD packets exchanged, but nothing makes it to the remote LAN at either end.

                  The remote endpoints are a Cisco (no access for me) and an OpenBSD host (full access).  I have taken a lot of notes, verbose outputs of "ipsec statusall" and "ipsecctl -sa -v" from each end, and traffic captures to try to compare the difference between the working 2.2.2.<->OpenBSD and the broken 2.2.3<->OpenBSD, but nothing jumps out to my relatively untrained eye.

                  The Cisco tunnel is also dead when on 2.2.3, I just can't troubleshoot from the Cisco end.  It works great on 2.2.2 though.

                  It's not well organized or anything but if it helps someone else help us all figure out what's broken, it's ZeroBin'ed at: http://sebsauvage.net/paste/?1659557931393c28#Rt+LFQvj5kP8L0Bhv5D/8N7ZNypDZ9Wz7y9fMPXnuZU=

                  1 Reply Last reply Reply Quote 0
                  • D
                    Darkk
                    last edited by

                    Glad I am not the only one with this exactly same problem.  We use WatchGuard at the office and been working great right up to PfSense 2.2.2.  Soon as I upgraded it to 2.2.3 IPSec stopped working.  Far as I can tell Phase 1 and Phase 2 are working.  Just it's not passing traffic over the tunnel like it should.  On my PfSense I do have the pings to hit a sever at work to keep the tunnel alive.  That is not even working.

                    Then I thought it's a firewall rules / routing issue since I actually don't have IPSec rules setup and didn't need to since I only want to access the servers from my house and not the other way around.  I created the pass rules anyway.  No luck.

                    I don't have any packages installed that would account for this.  I may have to roll back to 2.2.2 until it's been fixed.  Bummer.  Love the added features in IPSec but at this point can't use it.

                    1 Reply Last reply Reply Quote 0
                    • P
                      pbnet
                      last edited by

                      • 1
                        After upgrading from PFSense 2.2.2 to 2.2.3 (X64), my IPsec VPNs between PFSense and 2 Cisco RV042 (version 2 hardware) are now down.
                        The IPsec status show up as:

                      ADI_VPN  xxx.isp.com  188.27.x.x
                      Port: 500  Any identifier  5.12.y.y
                      Port: 500  IKEv1
                      initiator  3DES_CBC:0
                      HMAC_SHA1_96:0
                      PRF_HMAC_SHA1
                      MODP_768

                      connecting

                      Connect

                      ADI_VPN  xxx.isp.com 188.27.x.x
                      Port: 500  5.12.y.y  5.12.y.y
                      Port: 500  IKEv1
                      responder  47 minutes  3DES_CBC:0
                      HMAC_SHA1_96:0
                      PRF_HMAC_SHA1
                      MODP_768

                      established
                      5 seconds ago

                      Local LAN class: 172.77.17.0/24
                      Remote LAN class: 172.24.96.0/24

                      Thanks for any suggestion.
                      I will be coming later with screenshots if required.

                      1 Reply Last reply Reply Quote 0
                      • nodauN
                        nodau
                        last edited by

                        Same here with local ipsec tunnel between vmware horizon view connection and security server. pfsense somehow blocks ipsec traffic although the udb ports 500/4500 are open in nat.

                        until this is fixed, i will use 2.2.2.

                        :(

                        Norman

                        virtualized pfSense 2.7.2 HA-Cluster on vsphere 8

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

                          It appears as though this maybe an error decrypting traffic from the remote host. Though we have not replicated it here yet, we use IPSec extensively and have been running 2.2.3 for some time internally.
                          Has anyone tried an encryption type other than AES?
                          Where exactly is this traffic being lost and are you all seeing the same thing?
                          Run a ping from behind pfSense 2.2.3 to to some host on the other side of the tunnel.
                          Run a packet capture on the ipsec interface in pfSense. I expect to see only the leaving echo requests there if the ping is failing.
                          If you can, run a packet capture at the other end. Do you see the ping requests and replies?
                          Run a packet capture on the pfSense WAN interface. Do you see the ESP (or UDP 4500 if you're using NAT-T) traffic leaving and returning from the remote tunnel end IP?

                          From the evidence we have gathered so far into this it seems as though the encrypted traffic is returning but not being decrypted correctly so never leaving the ipsec interface internally.
                          If any of you can confirm or refute that it would be very helpful.

                          Steve

                          1 Reply Last reply Reply Quote 0
                          • V
                            vbentley
                            last edited by

                            I am using 3DES with Broadcom hardware crypto cards. On 2.2.2 everything is fine.
                            Updating to 2.2.3 the phase 1 cannot be established as mutual RSA certificate authentication fails. After restoring 2.2.2, all of my tunnels authenticate again.

                            Trademark Attribution and Credit
                            pfSense® and pfSense Certified® are registered trademarks of Electric Sheep Fencing, LLC in the United States and other countries.

                            1 Reply Last reply Reply Quote 0
                            • V
                              vbentley
                              last edited by

                              I just looked on the pfSense bug tracker and there are no issues yet for 2.2.3
                              https://redmine.pfsense.org/projects/pfsense/issues?query_id=49
                              Does this one qualify?

                              Trademark Attribution and Credit
                              pfSense® and pfSense Certified® are registered trademarks of Electric Sheep Fencing, LLC in the United States and other countries.

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

                                It definitely will when/if we have it narrowed down to something. Or eliminated it in some other way.

                                Steve

                                1 Reply Last reply Reply Quote 0
                                • yuljkY
                                  yuljk
                                  last edited by

                                  I've just switched across to 3DES from AES and the issue is still present :/

                                  Shrewsoft VPN client throws a 'Gateway authentication error'

                                  Chris

                                  1 Reply Last reply Reply Quote 0
                                  • F
                                    frmpf
                                    last edited by

                                    If any of you can confirm or refute that it would be very helpful.

                                    Hi Steve,

                                    Did you take a look at the pastebin I posted?  I show captures both directions while on 2.2.3.  When pinging from the pfSense side, you do see encrypted pings leave pfSense and arrive at the far end (OpenBSD).  The OpenBSD end shows the encrypted packets arriving on the WAN interface, but never anything on enc0.  When you try the same test, but pinging from the far OpenBSD side back to pfSense, the symptoms are exactly the same.  You see encrypted pings leave OpenBSD's WAN, arrive at pfSense's WAN, but never anything at all on pfSense's enc0.

                                    On 2.2.2 the same setup works, the only thing changing is 2.2.2->2.2.3 on the pfSense side.  It's almost like on both ends they refuse to decrypt the packet from the other side?

                                    1 Reply Last reply Reply Quote 0
                                    • F
                                      frmpf
                                      last edited by

                                      I notice from a WAN-side capture of working pings on 2.2.2 vs non-working on 2.2.3 that the packets from the pfSense side are 4 bytes larger than expected?

                                      2.2.2 working, 132 bytes both directions:
                                      –---------------
                                      1.001710 esp 2.2.2.80 > 1.1.1.251 spi 0xad9827e8 seq 2 len 132
                                      0.002942 esp 1.1.1.251 > 2.2.2.80 spi 0xc5197ced seq 2 len 132
                                      0.998066 esp 2.2.2.80 > 1.1.1.251 spi 0xad9827e8 seq 3 len 132
                                      0.002869 esp 1.1.1.251 > 2.2.2.80 spi 0xc5197ced seq 3 len 132

                                      2.2.3 broken, 136 bytes when initiated from pfSense side, still 132 bytes trying from OpenBSD side

                                      1.003313 esp 2.2.3.80 > 1.1.1.251 spi 0xd258f6d0 seq 8 len 136
                                      1.001410 esp 2.2.3.80 > 1.1.1.251 spi 0xd258f6d0 seq 9 len 136
                                      1.002726 esp 2.2.3.80 > 1.1.1.251 spi 0xd258f6d0 seq 10 len 136
                                          ... obviously no replies from OpenBSD end, but I can initiate a ping from that LAN:
                                      0.066538 esp 1.1.1.251 > 2.2.3.80 spi 0xc2be6e0e seq 2 len 132 (DF)
                                      0.999772 esp 1.1.1.251 > 2.2.3.80 spi 0xc2be6e0e seq 3 len 132 (DF)
                                      1.000032 esp 1.1.1.251 > 2.2.3.80 spi 0xc2be6e0e seq 4 len 132 (DF)

                                      Is it a red herring, or unexpected for a known, fixed-length ping to be 4 bytes larger coming from 2.2.3?  Maybe this results in decryption failures, hence the lack of any traffic ever on enc0 from the respective remote LANs?

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

                                        @yuljk What version of pfSense did you come from?
                                        Can you get any more info from the screwsoft debug console?

                                        @frmpf Checking that now. Thanks.

                                        Steve

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

                                          seems like an MTU issue somehow ? packets get fragmentented ….

                                          could someone try: https://doc.pfsense.org/index.php/IPsec_Troubleshooting#Packet_Loss_with_Certain_Protocols

                                          1 Reply Last reply Reply Quote 0
                                          • J
                                            jdp0418
                                            last edited by

                                            I reverted one of my 2.2.3 NanoBSD firewalls back to 2.2.2.  This gives me a setup similar to what some have described here… having one firewall on 2.2.3 and one on 2.2.2.  And my IPSEC... still works.  :-\

                                            I've hit the weird issues before so I can appreciate what you guys are dealing with... but I can't seem to replicate the issue.  If I have time today, I might try to fire up a tunnel on an ASA to a PFS 2.2.2 and 2.2.3 and see what results I get.

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