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
Copy file name to clipboardExpand all lines: docs/otp.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,11 @@ and use this image to generate user configuration.
11
11
12
12
In order to enable two factor authentication the following steps are required.
13
13
14
-
*Generate server configuration with `-2` option
14
+
*Choose a more secure [cipher](https://community.openvpn.net/openvpn/wiki/SWEET32) to use because since [OpenVPN 2.3.13](https://community.openvpn.net/openvpn/wiki/ChangesInOpenvpn23#OpenVPN2.3.13) the default openvpn cipher BF-CBC will cause a renegotiated connection every 64 MB of data
15
15
16
-
docker run -v $OVPN_DATA:/etc/openvpn --rm kylemanna/openvpn ovpn_genconfig -u udp://vpn.example.com -2
16
+
* Generate server configuration with `-2` and `-C $CIPHER` options
# Override the auth-user-pass directive to use a credentials file
41
44
docker run -v $OVPN_DATA:/etc/openvpn --rm $IMG ovpn_getclient $CLIENT| sed 's/auth-user-pass/auth-user-pass \/client\/credentials.txt/'| tee $CLIENT_DIR/config.ovpn
42
45
46
+
# Ensure reneg-sec 0 in client config when two factor is enabled
47
+
grep 'reneg-sec 0'$CLIENT_DIR/config.ovpn || abort 'reneg-sec not set to 0 in client config'
0 commit comments