how to set ifconfig-pool in openvpn?

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
dharanikumarsrvn
OpenVpn Newbie
Posts: 12
Joined: Wed Sep 09, 2015 3:39 am

how to set ifconfig-pool in openvpn?

Post by dharanikumarsrvn » Wed Sep 09, 2015 3:48 am

I have openvpn server with ip 10.8.0.1 and netmask 255.255.0.0 and two clients. I am trying to assign static ip 10.8.0.2 to client1. But in the man page it is mentioned that the ip assigned as static should be excluded from ip pool. And ip pool can be altered by using

Code: Select all

ipconfig-pool 10.8.0.3 10.8.255.255 255.255.0.0
in server config. But when i tried it, i am getting error

Code: Select all

ipconfig pool is already assigned by server directive. you cannot reassign using ipconfig-pool
What is the way to set the ipconfig pool and why i am getting the above error?

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: how to set ifconfig-pool in openvpn?

Post by Traffic » Mon Sep 14, 2015 12:02 pm

--ifconfig-pool is set by the --server directive and so you cannot override this.

Post Reply