@@ -6,10 +6,9 @@ Feel free to contribute to this project.
66
77Sections:
88
9- - [ Example configs & hooks] ( root/defaults/example /README.md )
9+ - [ Example configs & hooks] ( root/usr/local/share/docker-openvpn /README.md )
1010- [ Guides] ( docs/README.md )
1111- [ Helper Scripts] ( root/app/README.md )
12- - [ Modules] ( root/defaults/module/README.md )
1312
1413## Syntax
1514
@@ -18,34 +17,41 @@ Sections:
1817
1918## Directory structure of project
2019
21- ```
20+ ``` text
2221/config # Configuration dir (all config is here, generated on container start)
23- backup # Folder where backups are generated
24- example # Example configs (see root/defaults/example/README.md)
25- module # Modules for openvpn
26- openvpn # Openvpn configuration
27- ccd # OpenVPN client-specific configuration directory (applied when client connects)
28- client # Client configuration directory (for generation of .ovpn files)
29- <clientconffile>.conf # Base for building client config (all files merged)
30- config # Running config (server/client)
31- <name>.conf # Config files (all files merged)
22+ backup # Generated backups
23+ client-configs # Generated client configs
24+ hooks
25+ finish # Deinit container
26+ init # Init container
27+ openvpn # OpenVPN directory
28+ ca.crt (*) # CA public key (when pki is setup)
29+ ccd # client-specific configuration directory (applied when client connects)
30+ crl.pem (**) # Certificate revocation list
31+ dh.pem (*) # Server crypto
32+ hook.sh # Hook script runner
3233 hooks # Put your custom scripts in one of subfolders
33- auth # On authentication (needs to be enabled in config)
34- client-connect # Client connected
35- client-disconnect # Client disconnected
34+ auth # Server: On authentication (needs to be enabled in config)
35+ client-connect # Server: Client connected
36+ client-disconnect # Server: Client disconnected
3637 down # After interface is down
37- finish # Deinit container
38- init # Init container
39- learn-address
38+ ipchange # Client: our remote IP initially authenticated or changes
39+ learn-address # Server: when IP, route, MAC added to OpenVPN internal routing table
4040 route-up # After routes are added
4141 route-pre-down # Before routes are removed
42+ start # Before service start
43+ stop # After service stop
4244 up # After interface is up
4345 tls-verify # Check certificate
44- system.conf # System OpenVPN config file (do not edit, unless instructed)
45- system-server.conf # System OpenCPN server specific file (do not edit, unless instructed)
46- system-client.conf # System OpenCPN client specific file (do not edit, unless instructed)
47- dynamic.conf # File that links all config files together (automatically generated)
48- pki
46+ include.conf # Container specific settings (must be included)
47+ openvpn.conf or *.ovpn file # Main configuration file
48+ openvpn-template.conf # Template configuration for creating .ovpn and .pkg
49+ pid # OpenVPN PID (automatically written)
50+ server.crt (*) # Server public key
51+ server.key (*) # Server private key
52+ tmp # Temporary directory
53+ persistent-interface # Make used interface persistent
54+ pki (**) # Public key infrastructure directory (KEEP IT SAFE, specialy ca.key)
4955 ca.crt # CA certificate
5056 certs by serial # Certs by Serial ID
5157 <serial-id-cert>.pem
@@ -61,10 +67,10 @@ Sections:
6167 secret.key # Static key (if not using real PKI)
6268 serial # The current serial number
6369 ta.key # Secret for tls-auth, tls-crypt
64- ssl
65- safessl -easyrsa.cnf
66- vars
67- tmp # Temporary folder
70+ tmp # Temporary directory
71+ openssl -easyrsa.conf
72+ safessl-easyrsa.conf
73+ vars
6874/defaults # Default configuration, which is copied into config on full setup
6975 ...
7076/etc # System config
0 commit comments