Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    How to Store the Password in pfSense Permanently?

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 1.4k 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
      joako
      last edited by

      I have a VPN I connect to with pfSense OpenVPN client. It requires a username and password, and that requirement I can not change. How can I store the password in pfSense and have it survive updates? It is very frustrating that I can not upgrade the system flawlessly. It should be an option in the web UI to input the OpenVPN client username + password. If you say disable the password and only use the certificate, what is the point if the certificate is stored in pfSense anyways?

      Currently I have this in the manual configuration:

      auth-user-pass /etc/openvpn-password.txt

      But after an upgrade /etc/openvpn-password.txt is gone.

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

        That option exists on 2.2 in the OpenVPN client settings.

        On 2.1.x, place your file in /root/ or /conf/ and it should carry over between updates.

        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

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
        Privacy Policy · Cookie Policy