Static ip



  • 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



  • 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



  • @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.


Log in to reply