docs: openvpn-data -> $OVPN_DATA
* Easier to work with.
This commit is contained in:
		@@ -11,8 +11,8 @@ TL;DR Protect the resulting archive file, by ensure there is very limited access
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
## Backup to Archive
 | 
					## Backup to Archive
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    docker run --volumes-from openvpn-data --rm busybox tar -cvf - -C /etc openvpn | xz > openvpn-backup.tar.xz
 | 
					    docker run --volumes-from $OVPN_DATA --rm busybox tar -cvf - -C /etc openvpn | xz > openvpn-backup.tar.xz
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Retore to New Image
 | 
					## Retore to New Image
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    xzcat openvpn-backup.tar.xz | docker run --name openvpn-data -v /etc/openvpn -i busybox tar -xvf - -C /etc
 | 
					    xzcat openvpn-backup.tar.xz | docker run --name $OVPN_DATA -v /etc/openvpn -i busybox tar -xvf - -C /etc
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,19 +6,19 @@ The docker image is setup for static client configuration on the 192.168.254.0/2
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
1. Create a client specific configuration:
 | 
					1. Create a client specific configuration:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $ echo "ifconfig-push 192.168.254.1 192.168.254.2" | docker run --volumes-from openvpn-data -i --rm kylemanna/openvpn tee /etc/openvpn/ccd/CERT_COMMON_NAME
 | 
					        $ echo "ifconfig-push 192.168.254.1 192.168.254.2" | docker run --volumes-from $OVPN_DATA -i --rm kylemanna/openvpn tee /etc/openvpn/ccd/CERT_COMMON_NAME
 | 
				
			||||||
        ifconfig-push 192.168.254.1 192.168.254.2
 | 
					        ifconfig-push 192.168.254.1 192.168.254.2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
2. Wait for client to reconnect if necessary
 | 
					2. Wait for client to reconnect if necessary
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Advanced Admin
 | 
					## Advanced Admin
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Login to the openvpn-data volume with a `bash` container, note only changes in /etc/openvpn will persist:
 | 
					Login to the data volume with a `bash` container, note only changes in /etc/openvpn will persist:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    docker run --volumes-from openvpn-data -it --rm kylemanna/openvpn bash -l
 | 
					    docker run --volumes-from $OVPN_DATA -it --rm kylemanna/openvpn bash -l
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Upgrading from Old OpenVPN Configurations
 | 
					## 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:
 | 
					If you're running an old configuration and need to upgrade it to pull in the ccd directory run the following:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    docker run  --volumes-from openvpn-data --rm kylemanna/openvpn ovpn_genconfig
 | 
					    docker run  --volumes-from $OVPN_DATA --rm kylemanna/openvpn ovpn_genconfig
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user