1
0
Fork 0
mirror of https://github.com/Nyr/openvpn-install.git synced 2025-04-12 13:40:53 +00:00
openvpn-install/ipPoolMigration.sh

9 lines
217 B
Bash
Executable file

#!/bin/bash
ip_pool="/etc/openvpn/server/ipp.txt"
while IFS="," read -ra line; do
name="${line[0]}"
address="${line[1]}"
echo "ifconfig-push $address 255.255.0.0" > /etc/openvpn/server/ccd/$name
done <"$ip_pool"