Fixes in templates for openvpn.conf

tags/0.0.1
Daniel Berteaud 12 years ago
parent e201d0a9b0
commit bc7246dd74
  1. 4
      root/etc/e-smith/templates/etc/openvpn/routed/openvpn.conf/60options
  2. 2
      root/etc/e-smith/templates/etc/openvpn/routed/openvpn.conf/70routes

@ -2,7 +2,7 @@
{
my $tunMtu = ${'openvpn-routed'}{Mtu} || '';
my $fragment = ${'openvpn-routed'}{Fragment};
my $fragment = ${'openvpn-routed'}{Fragment} || '';
my $cipher = ${'openvpn-routed'}{Cipher} || '';
my $redirectGW = ${'openvpn-routed'}{RedirectGateway} || '';
my $proto = ${'openvpn-routed'}{Protocol} || 'udp';
@ -32,7 +32,7 @@ else{
}
}
if (($proto eq 'udp') && ($fragment ne '')){
if (($proto eq 'udp') && ($fragment =~ /^\d+$/)){
$OUT .= "fragment $fragment\n";
}
$OUT .= "mssfix\n";

@ -1,7 +1,7 @@
{
my $pushRoutes = ${'openvpn-routed'}{PushLocalNetworks} || 'enabled';
my $redirectGW = ${'openvpn-routed'}{RedirectGW} || 'disabled';
my $redirectGW = ${'openvpn-routed'}{RedirectGateway} || 'disabled';
use esmith::NetworksDB;
my $ndb = esmith::NetworksDB->open_ro() ||

Loading…
Cancel
Save