2014-06-30 07:35:52 +00:00
# Static IP Addresses
2015-08-25 10:40:02 +00:00
The docker image is setup for static client configuration on the 192.168.254.0/24 subnet. To use it follow the Quick Start section below. Note that the IP addresses octets need to be picked special, see [OpenVPN Documentation ](https://openvpn.net/index.php/open-source/documentation/howto.html#policy ) for more details.
2014-06-30 07:35:52 +00:00
## Quick Start
1. Create a client specific configuration:
2016-09-03 23:08:49 +00:00
$ echo "ifconfig-push 192.168.254.1 192.168.254.2" | docker run -v $OVPN_DATA:/etc/openvpn -i --rm kylemanna/openvpn tee /etc/openvpn/ccd/CERT_COMMON_NAME
2015-08-26 11:12:18 +00:00
ifconfig-push 192.168.254.1 192.168.254.2
2014-06-30 07:35:52 +00:00
2. Wait for client to reconnect if necessary
## Advanced Admin
2014-07-09 19:09:27 +00:00
Login to the data volume with a `bash` container, note only changes in /etc/openvpn will persist:
2014-06-30 07:35:52 +00:00
2016-09-03 23:08:49 +00:00
docker run -v $OVPN_DATA:/etc/openvpn -it --rm kylemanna/openvpn bash -l
2014-06-30 07:35:52 +00:00
## Upgrading from Old OpenVPN Configurations
If you're running an old configuration and need to upgrade it to pull in the ccd directory run the following:
2016-09-03 23:08:49 +00:00
docker run -v $OVPN_DATA:/etc/openvpn --rm kylemanna/openvpn ovpn_genconfig