How to assign statis ip for certain OpenVPN users?

  • Hello,

    I have posted this question on OpenVPN section about a week ago, but didn't get any reply, so I posted it here.

    I have OpenVPN that is working okay. But I want to assign statis ip for some of our vpn users.
    In OpenVPN Server / Clients Settings/ Toloplogy - Subnet - One IP address per client in a common subnet.
    In Client Specific Overrides I entered these:
    Common name of vpn user certificate - user
    Pv4 Tunnel Network - (which I want to get this ip)
    IPv4 Local Network/s - (user can see our network)
    Redirect Gateway - Force all client generated traffic through the tunnel.

    User gets ip but can't see our network and can't ping (vpn virtual network)

    I also added ifconfig-push; to Advanced. But couldn't get what we want. Please help me to solve this.

  • You were close.  You were missing the proper subnet mask.

    Leave IPv4 Local Networks(s) blank and add your custom stuff under IPv4 Tunnel Network like this:


    For example, one of my users is set to which means (I think) .4 for the network address, .5 for the gateway address, .6 for the actual IP address and .7 for the broadcast address.  My next user is which gives him an IP address of  Separate each user by 4.

Log in to reply