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

    OPenVPN and IP change

    Scheduled Pinned Locked Moved OpenVPN
    4 Posts 3 Posters 2.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.
    • F Offline
      frankkahle
      last edited by

      We are switching our backbone provider.  Of course this means new external IP addresses.  What do I need to do to make the VPN work, I assume the old config has the old IP of the pfsense box, but changing the ip on the client does not make it work.

      Any suggestions would be really helpful.

      Sincerely,
      Frank

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

        The IP the openvpn server is listening to is stored in /var/etc/openvpn/server(x).conf and this file wouldn't be rewritten if you change the interface IP.
        To get the new IP stored into the config file, just open the server configuration in the GUI, ensure that the correct interface IP is selected and click the Save button.

        1 Reply Last reply Reply Quote 0
        • F Offline
          frankkahle
          last edited by

          I created a new 'server' for openvpn, and attached certificates etc.  I have a connection running to the pfsense, and I see the routes being sent to my client, but it just doesn't let me route or seem to, I cannot get to the LAN side, I created the same set of rules that the old interface has but cant see the LAN.

          1 Reply Last reply Reply Quote 0
          • DerelictD Offline
            Derelict LAYER 8 Netgate
            last edited by

            While you're making the change, get a domain, free DNS hosting on HE.net, and change your clients to connect to a hostname instead of an IP address.

            Then to change your clients in the future you make one change to DNS and you're done.

            Chattanooga, Tennessee, USA
            A comprehensive network diagram is worth 10,000 words and 15 conference calls.
            DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
            Do Not Chat For Help! NO_WAN_EGRESS(TM)

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