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

    Static ip

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 3 Posters 892 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
      sirbusby
      last edited by

      After upgrading to version 2.3.4-p1, static IP clients in openvpn do not work.
      Earlier I registered in the Custom options ifconfig-pool-persist /var/opvpn/ipstatic.list.
      The file specified the correspondence of IP addresses. Now after restarting openvpn in the file /var/opvpn/ipstatic.list, ip addresses are overwritten

      1 Reply Last reply Reply Quote 0
      • X
        xl
        last edited by

        Use Client Specific Overrides with ifconfig-push ip mask (for subnet) or ifconfig-push ip gate (for net30) in Advanced options.

        ifconfig-pool-persist file will be really persist only with option 0 - For example ifconfig-pool-persist /var/opvpn/ipstatic.list 0

        –ifconfig-pool-persist file [seconds]
        Persist/unpersist ifconfig-pool data to file, at seconds intervals (default=600), as well as on program startup and shutdown.
        The goal of this option is to provide a long-term association between clients (denoted by their common name) and the virtual IP address assigned to them from the ifconfig-pool. Maintaining a long-term association is good for clients because it allows them to effectively use the –persist-tun option.

        file is a comma-delimited ASCII file, formatted as ,.

        If seconds = 0, file will be treated as read-only. This is useful if you would like to treat file as a configuration file.

        Note that the entries in this file are treated by OpenVPN as suggestions only, based on past associations between a common name and IP address. They do not guarantee that the given common name will always receive the given IP address. If you want guaranteed assignment, use –ifconfig-push

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

          @sirbusby:

          After upgrading to version 2.3.4-p1, static IP clients in openvpn do not work.
          Earlier I registered in the Custom options ifconfig-pool-persist /var/opvpn/ipstatic.list.
          The file specified the correspondence of ip adresses. Now after restarting openvpn in the file /var/opvpn/ipstatic.list, ip addresses are overwritten

          Yes, some trouble were detected in Open VPN connexion.

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