openvpn: different up scripts
This commit is contained in:
parent
c03c8822cd
commit
b5b7814581
5
files/etc/openvpn/hideme/hideme-up
Normal file
5
files/etc/openvpn/hideme/hideme-up
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
ip route replace 0.0.0.0/1 via $4 table 42
|
||||||
|
ip route replace 128.0.0.0/1 via $4 table 42
|
||||||
|
/etc/openvpn/update-dnsmasq-forward
|
||||||
|
exit 0
|
5
files/etc/openvpn/mullvad/mullvad-up
Normal file
5
files/etc/openvpn/mullvad/mullvad-up
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/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
|
||||||
|
/etc/openvpn/update-dnsmasq-forward
|
||||||
|
exit 0
|
|
@ -444,13 +444,9 @@ class ff_gw::vpn($provider, $ca_crt, $usr_crt, $usr_key, $usr_name, $usr_pass, $
|
||||||
ensure => file,
|
ensure => file,
|
||||||
content => $ca_crt;
|
content => $ca_crt;
|
||||||
"/etc/openvpn/${provider}/${provider}-up":
|
"/etc/openvpn/${provider}/${provider}-up":
|
||||||
ensure => file,
|
ensure => file,
|
||||||
mode => '0755',
|
mode => '0755',
|
||||||
content => '#!/bin/sh
|
source => "puppet:///modules/ff_gw/etc/openvpn/${provider}/${provider}-up";
|
||||||
ip route replace 0.0.0.0/1 via $5 table 42
|
|
||||||
ip route replace 128.0.0.0/1 via $5 table 42
|
|
||||||
/etc/openvpn/update-dnsmasq-forward
|
|
||||||
exit 0';
|
|
||||||
"/etc/openvpn/${provider}.conf":
|
"/etc/openvpn/${provider}.conf":
|
||||||
ensure => file,
|
ensure => file,
|
||||||
source => "puppet:///modules/ff_gw/etc/openvpn/${provider}.conf";
|
source => "puppet:///modules/ff_gw/etc/openvpn/${provider}.conf";
|
||||||
|
|
Loading…
Reference in a new issue