You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. At this point you will have bash shell which runs in container. Now run following commands to **setup your PKI**:
13
+
2. Edit `vars` file
14
+
3. At this point you will have bash shell which runs in container. Now run following commands to **setup your PKI**:
15
15
16
16
```bash
17
17
ovpn pki init [nopass] # Inits PKI
@@ -91,10 +91,10 @@ This is simple setup guide to help you get started. It uses the simplest configu
91
91
92
92
**Note:** You can generate PKI without password, just use `nopass` option.
93
93
94
-
3. Setup OpenVPN config based on example `basic_nat` with configuration wizard:
94
+
4. Setup OpenVPN config based on example `basic` with configuration wizard:
95
95
96
96
```bash
97
-
ovpn enconf basic_nat
97
+
ovpn enconf basic
98
98
#Out interface [eth0]: <interface connected to the Internet>
99
99
#Protocol udp, tcp, udp6, tcp6 [udp]:
100
100
#VPN network [10.0.0.0]:
@@ -105,27 +105,29 @@ This is simple setup guide to help you get started. It uses the simplest configu
105
105
```
106
106
107
107
**Note:** If you are using this container for production use your Public IP (if you don't know it, check with `whatsmyip` website and make sure it is **static**, for testing purposes at home, you can use local IP).
108
+
5. Generate server certificate
108
109
109
-
4. Enable **port forwarding** on your router so OpenVPN server will be accessible from the internet.
110
-
5. Add clients to your server
110
+
```bash
111
+
ovpn subject add server server [nopass] # First server is name
112
+
```
113
+
114
+
6. Enable **port forwarding** on your router so OpenVPN server will be accessible from the internet.
115
+
7. Add clients to your server
111
116
112
117
```bash
113
118
# Generates client certificates
114
-
ovpn client add <name> [nopass]
115
-
116
-
# Generates client config file and saves it to /config/tmp
0 commit comments