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

    GRE over IPSEC in transport mode and NAT

    Scheduled Pinned Locked Moved IPsec
    4 Posts 2 Posters 1.9k 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
      jenus
      last edited by

      I have a setup with 2 pfsense boxes with a GRE tunnel over the internet. I use ipsec in transport mode to encrypt the tunnel. This all works fine, all traffic to local networks is routed trough the GRE tunnel and encrypted.

      LAN 1<–---> pfsense1 <------internet/gre tunnel----->pfsense2<----->LAN2

      I have one problem, when i try to ping the public ip of pfsense2 from LAN1 i get no response. I have captured the packets on pfsense2 and it looks like it does not encrypt the natted traffic from LAN1. The same happens with traffic from LAN2 to the public ip of pfsense1

      If i ping pfsense2 from pfsense1 (console) it works fine.

      Iḿ running pfsense 2.1.5 amd64

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

        Just tested with the latest 2.2 beta with the same result. When using ipsec in transport mode it does to envrypt traffic from the local lan that is natted.

        1 Reply Last reply Reply Quote 0
        • E
          eri--
          last edited by

          You have to create the nat rule yourself for ipsec.

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

            I have a static port nat rule in place, but this does not seem to help. Do i need to create a specific rule when using ipsec in transport mode? I have a rule in place on the WAN interface for the LAN network.

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