1 |
On 01/17/2018 09:51 PM, thelma@×××××××××××.com wrote: |
2 |
> How openvpn client obtains IP address from the server? |
3 |
> |
4 |
> On the sever in server.conf I had: |
5 |
> server 192.168.139.0 255.255.255.0 |
6 |
> route 10.0.0.0 255.255.255.0 192.168.139.7 |
7 |
> |
8 |
> On server in ccd/ I had client.file: |
9 |
> ifconfig-push 192.168.139.3 255.255.255.0 |
10 |
|
11 |
Two things to check: |
12 |
|
13 |
First, the client configuration directory needs to be specified in the |
14 |
server configuration file with the "client-config-dir" directive. In |
15 |
your case, it looks like you need |
16 |
|
17 |
client-config-dir ccd |
18 |
|
19 |
but try an absolute path if that doesn't work for you. |
20 |
|
21 |
The second is the naming convention for the client configuration files |
22 |
themselves. The files in "ccd" need to match the common names on the |
23 |
certificates of your clients exactly, IIRC. So instead of "client.file", |
24 |
you probably want just "client". |