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

    IPsec + Virtual IP issues in 2.2 Dec 1st build

    Scheduled Pinned Locked Moved 2.2 Snapshot Feedback and Problems - RETIRED
    3 Posts 2 Posters 2.2k 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.
    • W
      webstaff
      last edited by

      Doing a test with a client with 2 sites.

      Site 1:

      BT infinity -> PPPoE -> PFsense (1 dyn ip from PPPoE 81. + 5 static as VIP 217.)

      Site 2:

      BT ADSL -> PPPoE -> PFSense (1 static from PPPoE)

      IPSec from WAN (pppoe) to wan (pppoe) works fine but if you try to use a VIP address it fails.

      Issue is that using a VIP on Site one causes socket write errors and con2 routing errors, after manually creating IPSec firewall rules these change into the log below.

      Dec 9 11:54:32 ipsec_starter[30880]: charon stopped after 200 ms
      Dec 9 11:54:32 ipsec_starter[30880]: ipsec starter stopped
      Dec 9 11:54:46 ipsec_starter[14280]: Starting strongSwan 5.2.1 IPsec [starter]…
      Dec 9 11:54:46 ipsec_starter[14280]: no netkey IPsec stack detected
      Dec 9 11:54:46 ipsec_starter[14280]: no KLIPS IPsec stack detected
      Dec 9 11:54:46 ipsec_starter[14280]: no known IPsec stack detected, ignoring!
      Dec 9 11:54:46 charon: 00[DMN] Starting IKE charon daemon (strongSwan 5.2.1, FreeBSD 10.1-RELEASE, amd64)
      Dec 9 11:54:46 charon: 00[KNL] unable to set UDP_ENCAP: Invalid argument
      Dec 9 11:54:46 charon: 00[NET] enabling UDP decapsulation for IPv6 on port 4500 failed
      Dec 9 11:54:46 charon: 00[CFG] ipseckey plugin is disabled
      Dec 9 11:54:46 charon: 00[CFG] loading ca certificates from '/var/etc/ipsec/ipsec.d/cacerts'
      Dec 9 11:54:46 charon: 00[CFG] loading aa certificates from '/var/etc/ipsec/ipsec.d/aacerts'
      Dec 9 11:54:46 charon: 00[CFG] loading ocsp signer certificates from '/var/etc/ipsec/ipsec.d/ocspcerts'
      Dec 9 11:54:46 charon: 00[CFG] loading attribute certificates from '/var/etc/ipsec/ipsec.d/acerts'
      Dec 9 11:54:46 charon: 00[CFG] loading crls from '/var/etc/ipsec/ipsec.d/crls'
      Dec 9 11:54:46 charon: 00[CFG] loading secrets from '/var/etc/ipsec/ipsec.secrets'
      Dec 9 11:54:46 charon: 00[CFG] loaded IKE secret for x.x.x.x
      Dec 9 11:54:46 charon: 00[CFG] opening triplet file /var/etc/ipsec/ipsec.d/triplets.dat failed: No such file or directory
      Dec 9 11:54:46 charon: 00[CFG] loaded 0 RADIUS server configurations
      Dec 9 11:54:46 charon: 00[LIB] loaded plugins: charon unbound aes des blowfish rc2 sha1 sha2 md4 md5 random nonce x509 revocation constraints pubkey pkcs1 pkcs7 pkcs8 pkcs12 pgp dnskey sshkey ipseckey pem openssl fips-prf gmp xcbc cmac hmac curl attr kernel-pfkey kernel-pfroute resolve socket-default stroke smp updown eap-identity eap-sim eap-aka eap-aka-3gpp2 eap-md5 eap-mschapv2 eap-dynamic eap-radius eap-tls eap-ttls eap-peap xauth-generic xauth-eap whitelist addrblock unity
      Dec 9 11:54:46 charon: 00[LIB] unable to load 6 plugin features (5 due to unmet dependencies)
      Dec 9 11:54:46 charon: 00[JOB] spawning 16 worker threads
      Dec 9 11:54:46 ipsec_starter[14800]: charon (14974) started after 40 ms
      Dec 9 11:54:46 charon: 16[CFG] received stroke: add connection 'con2'
      Dec 9 11:54:46 charon: 16[CFG] added configuration 'con2'
      Dec 9 11:54:46 charon: 08[CFG] received stroke: route 'con2'
      Dec 9 11:54:46 ipsec_starter[14800]: 'con2' routed
      Dec 9 11:54:46 ipsec_starter[14800]:
      Dec 9 11:54:53 charon: 14[CFG] received stroke: terminate 'con2'
      Dec 9 11:54:53 charon: 14[CFG] no IKE_SA named 'con2' found
      Dec 9 11:54:53 charon: 16[CFG] received stroke: initiate 'con2'
      Dec 9 11:54:53 charon: 14[IKE] <con2|1>initiating Main Mode IKE_SA con2[1] to 217.34.198.145
      Dec 9 11:54:53 charon: 14[IKE] initiating Main Mode IKE_SA con2[1] to x.x.x.x
      Dec 9 11:54:53 charon: 14[ENC] generating ID_PROT request 0 [ SA V V V V V V ]
      Dec 9 11:54:53 charon: 14[NET] sending packet: from x.x.x.x[500] to x.x.x.x[500] (200 bytes)
      Dec 9 11:54:57 charon: 14[IKE] <con2|1>sending retransmit 1 of request message ID 0, seq 1
      Dec 9 11:54:57 charon: 14[IKE] sending retransmit 1 of request message ID 0, seq 1
      Dec 9 11:54:57 charon: 14[NET] sending packet: from x.x.x.x[500] to x.x.x.x[500] (200 bytes)
      Dec 9 11:55:04 charon: 14[IKE] <con2|1>sending retransmit 2 of request message ID 0, seq 1
      Dec 9 11:55:04 charon: 14[IKE] sending retransmit 2 of request message ID 0, seq 1
      Dec 9 11:55:04 charon: 14[NET] sending packet: from x.x.x.x[500] to x.x.x.x[500] (200 bytes)
      Dec 9 11:55:17 charon: 14[IKE] <con2|1>sending retransmit 3 of request message ID 0, seq 1
      Dec 9 11:55:17 charon: 14[IKE] sending retransmit 3 of request message ID 0, seq 1
      Dec 9 11:55:17 charon: 14[NET] sending packet: from x.x.x.x[500] to x.x.x.x[500] (200 bytes)
      Dec 9 11:55:40 charon: 14[IKE] <con2|1>sending retransmit 4 of request message ID 0, seq 1
      Dec 9 11:55:40 charon: 14[IKE] sending retransmit 4 of request message ID 0, seq 1
      Dec 9 11:55:40 charon: 14[NET] sending packet: from x.x.x.x[500] to x.x.x.x[500] (200 bytes)

      Which makes me think that the IPSec interface is just not coming up on the VIP address.

      Natting the first of the static addresses back to the LAN interface and tweaking the phase 1 proposal for the new details does work but what are the implications of such a messy setup?

      did I miss something?

      Regards

      Dave

      P.S.

      2.2 seems to work great with the Gigabyte J1900N-D3V FYI!</con2|1></con2|1></con2|1></con2|1></con2|1>

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Looks like a fix was put in for that already. Updating to a new snapshot should fix it.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • W
          webstaff
          last edited by

          Thanks for the heads up, I'll get it updated today and report back!

          Thanks for all the great work!

          Regards

          Dave

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