Browse Source

add new settings into openvpn config template

- google dns setting for client
- verb level
- mtu
- TLS settings
Filipp Frizzy 9 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
 ;push "redirect-gateway def1 bypass-dhcp"
190
 ;push "redirect-gateway def1 bypass-dhcp"
191
 push "redirect-gateway def1"
191
 push "redirect-gateway def1"
192
 push "dhcp-option DNS 10.8.0.1"
192
 push "dhcp-option DNS 10.8.0.1"
193
+push "dhcp-option DNS 8.8.8.8"
193
 
194
 
194
 # Certain Windows-specific network settings
195
 # Certain Windows-specific network settings
195
 # can be pushed to clients, such as DNS
196
 # can be pushed to clients, such as DNS
298
 # 4 is reasonable for general usage
299
 # 4 is reasonable for general usage
299
 # 5 and 6 can help to debug connection problems
300
 # 5 and 6 can help to debug connection problems
300
 # 9 is extremely verbose
301
 # 9 is extremely verbose
301
-verb 3
302
+verb {{ openvpn_verb }}
302
 
303
 
303
 # Silence repeating messages.  At most 20
304
 # Silence repeating messages.  At most 20
304
 # sequential messages of the same message
305
 # sequential messages of the same message
305
 # category will be output to the log.
306
 # category will be output to the log.
306
 ;mute 20
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