Browse Source

add new settings into openvpn config template

- google dns setting for client
- verb level
- mtu
- TLS settings
Filipp Frizzy 8 years ago
parent
commit
da10178f4b
1 changed files with 11 additions and 1 deletions
  1. 11
    1
      roles/vpn/templates/etc_openvpn_server.conf.j2

+ 11
- 1
roles/vpn/templates/etc_openvpn_server.conf.j2 View File

@@ -190,6 +190,7 @@ ifconfig-pool-persist ipp.txt
190 190
 ;push "redirect-gateway def1 bypass-dhcp"
191 191
 push "redirect-gateway def1"
192 192
 push "dhcp-option DNS 10.8.0.1"
193
+push "dhcp-option DNS 8.8.8.8"
193 194
 
194 195
 # Certain Windows-specific network settings
195 196
 # can be pushed to clients, such as DNS
@@ -298,9 +299,18 @@ status openvpn-status.log
298 299
 # 4 is reasonable for general usage
299 300
 # 5 and 6 can help to debug connection problems
300 301
 # 9 is extremely verbose
301
-verb 3
302
+verb {{ openvpn_verb }}
302 303
 
303 304
 # Silence repeating messages.  At most 20
304 305
 # sequential messages of the same message
305 306
 # category will be output to the log.
306 307
 ;mute 20
308
+
309
+# Mask your settings with mtu
310
+# witch.valdikss.org.ru
311
+tun-mtu {{ openvpn_mtu }}
312
+
313
+# Set TLS settings
314
+# Only for openvpn 2.3.3 and >2.3.4
315
+{{ openvpn_tls_version_min }}
316
+{{ openvpn_tls_cipher }}

Loading…
Cancel
Save