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

    Pfsense behind nat: openvpn config export with RFC-1918 address

    OpenVPN
    3
    5
    1.0k
    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.
    • C
      crumpr
      last edited by

      Hi,

      I'm having my pfSense  behind a router so pfsense's WAN-IP is only a private (RFC1918) address.
      From the first router I've got a nat for openvpn from the public IP (the first router also has a dyndns record) to pfsense for "Remote Access (SSL/TLS)" and that works.

      When I export my openvpn config I get an .ovpn file that has
      "remote 192.168.4.3 1195 udp"
      while that's the WAN IP address of pfsense - due to the fact that it's sitting behind the frist router.

      My question is:
      Can I somewhere configure an alternative name that is used in the openvpn export instead of the WAN-IP?

      Thanks & KR
      Thomas

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        Have you tried the "Host Name Resolution" dropdown menu?

        1 Reply Last reply Reply Quote 0
        • C
          crumpr
          last edited by

          no, where to find that?
          (sorry, still noob in pfsense)

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

            Choose Other and enter your public IP or host name.

            ClientExportUtility.png
            ClientExportUtility.png_thumb

            1 Reply Last reply Reply Quote 0
            • C
              crumpr
              last edited by

              wow, thats exactly what I was looking for!
              thank you a lot!! :-) :-)

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