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

    DYNAMIC PUBLIC IP in pfesense IPSEC?

    Scheduled Pinned Locked Moved IPsec
    2 Posts 2 Posters 1.3k 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.
    • S
      secad000
      last edited by

      I want to establish IPSec Tunnel using PFSense f but my problem is, we used broadband connection in one end which used Dynamic IP. Any suggestion on how to do this?

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

        It is possible to do this.

        Probably the easiest way is to ensure that you have resolvable DNS hostnames for each public facing endpoint interface. I use a DynamicDNS provider with pfSense. Get this working first.

        Don't use any public IP addresses in your Phase 1 config unless they are static IP addresses. Use the DynamicDNS hostnames instead.

        E.g. on one end…

        Remote Gateway: farfaraway.dynamic.dns
        My Identifier: Distinguished Name: thisbox.dynamic.dns
        Peer Identifier: Distinguished Name: farfaraway.dynamic.dns
        Pre-Shared Key: OurSecret

        on the other end...

        Remote Gateway: thisbox.dynamic.dns
        My Identifier: Distinguished Name: farfaraway.dynamic.dns
        Peer Identifier: Distinguished Name: thisbox.dynamic.dns
        Pre-Shared Key: OurSecret

        The Phase 2 configs will have the IP network addresses of your internal network, typically private addresses. No dynamic dns required here.

        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
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.