Netgate SG-1000 microFirewall

Author Topic: How to assign statis ip for certain OpenVPN users?  (Read 79 times)

0 Members and 1 Guest are viewing this topic.

Offline emammadov

  • Jr. Member
  • **
  • Posts: 40
  • Karma: +0/-3
    • View Profile
How to assign statis ip for certain OpenVPN users?
« on: March 05, 2018, 07:29:43 am »

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.
« Last Edit: March 05, 2018, 02:06:20 pm by emammadov »

Offline KOM

  • Hero Member
  • *****
  • Posts: 5677
  • Karma: +696/-23
    • View Profile
Re: How to assign statis ip for certain OpenVPN users?
« Reply #1 on: March 05, 2018, 02:37:03 pm »
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.