Assign DHCP only for one CCD

Need help configuring your VPN? Just post here and you'll get that help.
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
lumiere
OpenVpn Newbie
Posts: 1
Joined: Thu Jul 20, 2017 9:22 am

Assign DHCP only for one CCD

Post by lumiere » Tue Aug 13, 2019 11:14 am

Hi, I have a server that assign static IP address to single ccd configuration.
I need to modify the IP assignment to DHCP for only one ccd client in a different network range.
Normally the DHCP assigned address are:

10.210.0.x

I need only for one client (key), a DHCP assigned address in this range:

10.210.251.x

It is possible?

Thanks



This is my server.conf

Server Config
mode server
tls-server
proto udp
port 1194
tmp-dir /tmp

multihome
user openvpn
group openvpn

dev tun
topology subnet
server 10.210.0.0 255.255.0.0

;push VPN network splitted
push "route 10.210.128.0 255.255.128.0"
push "route 10.210.0.0 255.255.128.0"

comp-lzo
management localhost 5555

keepalive 10 60

persist-key
persist-tun

; logging and status
writepid /var/run/openvpn_server.pid
ifconfig-pool-persist /etc/openvpn/ipp.txt

status openvpn-status.log
status-version 3
verb 2

ca /etc/openvpn/easyrsa/pki/ca.crt
cert /etc/openvpn/easyrsa/pki/issued/server.crt
key /etc/openvpn/easyrsa/pki/private/server.key
dh /etc/openvpn/easyrsa/pki/dh.pem
crl-verify /etc/openvpn/easyrsa/pki/crl.pem

client-config-dir /etc/openvpn/ccd

max-clients 5000
client-to-client



This is a typical ccd config (static IP)

Code: Select all

ifconfig-push 10.210.251.1 255.255.0.0

Post Reply