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

    Change IP server OpenVPN

    Scheduled Pinned Locked Moved OpenVPN
    4 Posts 3 Posters 470 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.
    • M
      mobydick426
      last edited by

      Hello,
      By default, "The first usable address in the IPv4 Tunnel Network will be assigned to the server virtual interface".
      But we would like to find a way to change this address.
      For example, we have configured an OpenVPN Server with the following IPv4 Tunnel Network: 10.8.0.0/16
      So the IP assigned to the OpenVPN interface is 10.8.0.1. We would like to assign the following IP : 10.8.254.254.
      We need this correction because this OpenVPN instance is the import of an already existing configuration configured as well.
      VPN clients are therefore all configured this way. And it would be easier for us to find this tip.
      Thank you.

      1 Reply Last reply Reply Quote 0
      • JeGrJ
        JeGr LAYER 8 Moderator
        last edited by JeGr

        AFAIK you can't assign the server itself any IP address manually. It always uses the first one of the supplied tunnel network. And as clients do DHCP on connection, there should be no problem with them.

        VPN clients are therefore all configured this way. And it would be easier for us to find this tip.

        VPN clients are configured - how? What's configured at a client that makes it want to use the last IP or 10.8.254.254 specifically as the OVPN server address? I know of no config that does that by default. Not even commercial ones.

        Can you provide a config snippet from a client? Or the old server configuration?

        Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

        If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

        1 Reply Last reply Reply Quote 0
        • M
          mobydick426
          last edited by

          Thanks for your help.

          There was the next instruction in the openvpn server conf :
          ifconfig 10.8.254.254 10.8.254.253

          But I guess it has not an impact on the clients, right ?

          They were generated on a openvpn linux server (not on pfsense).

          1 Reply Last reply Reply Quote 0
          • PippinP
            Pippin
            last edited by

            A server configured that way (non default) will be hard to "import" into pfSense.

            I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
            Halton Arp

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