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

[solved] IPSec concentrator behind a Netgate box

Scheduled Pinned Locked Moved NAT
ipsecnatforwarding
2 Posts 1 Posters 573 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
    Frankye
    last edited by Frankye Apr 2, 2019, 7:04 AM Mar 26, 2019, 11:49 AM

    We have an IPSec concentrator (a random box with pfsense on, nothing fancy) behind our main firewall (a netgate box). Said IPsec concentrator is supposed to connect to other people's and bring up lan to lan tunnels.

    other people's LAN
        |
    remote concentrator
       |||
       www
       |||
    MultiWAN HA Netgate firewall 
    (tunnel should pass through)
       |||
     Our LAN
       |||
    Pfsense box
    (does the IPsec)
        |
    DMZ for other people's stuff
    

    I did have multiple tunnels up at once. But that was with the old non-HA netgate box. It has been just one tunnel for a year or so.

    Until last week when I tried to configure another tunnel and failed miserably.

    It seems that ISAKMP traffic from the remote Fortigate unit is correctly translated and forwarded to the internal box.
    However the responses are not translated back. Or at least that's what I seem to get from packet captures on the firewall.

    I am translating ESP, AH, ISAKMP and NAT-T...

    inbound:
    20190326-inbound_redirection.png

    outbound:
    20190326-outbound_redirection.png

    The aliases point to the internal box (ipsecgw) and the external concentrators' public IPs.
    The IP address the whole thing is natted on is a CARP VIP (not sure if useful, but before it was a normal IP alias)

    I have firewall rules on both interfaces allowing the traffic and redirecting it to the right gateway. No NAT reflection.

    A dump on both interfaces does not show much I'm afraid:
    (external above, LAN below)
    20190326-packet_capture_both_ifs.png

    The most maddening thing is: the other IPSec tunnel on the concnetrator works like a charm.

    Only differences that I can see are:

    • working one is aggressive mode to a cisco unit
    • not working one is main mode to a fortigate unit

    .
    Could anyone give me an idea on where to check? So far I read all the documentation I could find but did not find anything to help.

    1 Reply Last reply Reply Quote 0
    • F
      Frankye
      last edited by Apr 2, 2019, 7:03 AM

      I managed to ... sort of solve it.

      Netgate support told me to try and put each tunnel on a different internal IP alias.
      After doing that (and creating the relative NAT and firewall rules on the border box) the second tunnel got up.

      I still have no idea why this is the case exactly, but I'll take the working tunnel over understanding pfsense's IPSec and/or NAT mechanics for now.

      1 Reply Last reply Reply Quote 0
      1 out of 2
      • First post
        1/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received