Page 1 of 1

how to set ifconfig-pool in openvpn?

Posted: Wed Sep 09, 2015 3:48 am
by dharanikumarsrvn
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?

Re: how to set ifconfig-pool in openvpn?

Posted: Mon Sep 14, 2015 12:02 pm
by Traffic
--ifconfig-pool is set by the --server directive and so you cannot override this.