Gentoo Archives: gentoo-user

From: thelma@×××××××××××.com
To: Gentoo mailing list <gentoo-user@l.g.o>
Subject: [gentoo-user] openvpn client IP address
Date: Thu, 18 Jan 2018 02:51:42
Message-Id: 5a2fa99a-131c-4b35-8aa3-7fc0eb1ec9ea@sys-concept.com
How openvpn client obtains IP address from the server?

On the sever in server.conf I had:
server 192.168.139.0 255.255.255.0
route 10.0.0.0  255.255.255.0 192.168.139.7

On server in ccd/ I had client.file:
ifconfig-push 192.168.139.3 255.255.255.0

When I connected to server my client IP address was:
192.168.139.7

So I modified the file on the server.conf
server 192.168.139.0 255.255.255.0
# route 10.0.0.0  255.255.255.0 192.168.139.7  (commenting this line out)

Restarted the openvpn on the server and when I established connection
from the client I still got the IP:
 192.168.139.7

I was under impression I should have IP:
192.168.139.3

Do I have to clear something else? Why am I getting IP: 192.168.139.7

-- 
Joseph

Replies

Subject Author
Re: [gentoo-user] openvpn client IP address Michael Orlitzky <mjo@g.o>