@@ -6,10 +6,9 @@ Feel free to contribute to this project.
6
6
7
7
Sections:
8
8
9
- - [ Example configs & hooks] ( root/defaults/example /README.md )
9
+ - [ Example configs & hooks] ( root/usr/local/share/docker-openvpn /README.md )
10
10
- [ Guides] ( docs/README.md )
11
11
- [ Helper Scripts] ( root/app/README.md )
12
- - [ Modules] ( root/defaults/module/README.md )
13
12
14
13
## Syntax
15
14
@@ -18,34 +17,41 @@ Sections:
18
17
19
18
## Directory structure of project
20
19
21
- ```
20
+ ``` text
22
21
/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
32
33
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
36
37
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
40
40
route-up # After routes are added
41
41
route-pre-down # Before routes are removed
42
+ start # Before service start
43
+ stop # After service stop
42
44
up # After interface is up
43
45
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)
49
55
ca.crt # CA certificate
50
56
certs by serial # Certs by Serial ID
51
57
<serial-id-cert>.pem
@@ -61,10 +67,10 @@ Sections:
61
67
secret.key # Static key (if not using real PKI)
62
68
serial # The current serial number
63
69
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
68
74
/defaults # Default configuration, which is copied into config on full setup
69
75
...
70
76
/etc # System config
0 commit comments