Use DNS Server pushed by VPN provider
This commit is contained in:
parent
e6f165ad29
commit
f4150d7ec3
3 changed files with 58 additions and 1 deletions
|
@ -391,7 +391,7 @@ class ff_gw::vpn($ca_crt, $usr_crt, $usr_key, $openvpn_version = '2.3.2-7~bpo70+
|
|||
content => '#!/bin/sh
|
||||
ip route replace 0.0.0.0/1 via $5 table 42
|
||||
ip route replace 128.0.0.0/1 via $5 table 42
|
||||
/usr/sbin/service dnsmasq restart
|
||||
/etc/openvpn/update-dnsmasq-forward
|
||||
exit 0';
|
||||
"/etc/openvpn/${vpnname}.conf":
|
||||
ensure => file,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue