/[smecontribs]/rpms/smeserver-openvpn-bridge/contribs9/smeserver-openvpn-bridge-2.1-push-routes.patch
ViewVC logotype

Annotation of /rpms/smeserver-openvpn-bridge/contribs9/smeserver-openvpn-bridge-2.1-push-routes.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Thu Nov 15 10:37:52 2018 UTC (6 years ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-openvpn-bridge-2_1-9_el6_sme, smeserver-openvpn-bridge-2_1-10_el6_sme, HEAD
* Thu Nov 15 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 2.1-9.sme
- Add option to enable/doisable PushRoute  [SME: 10547]

1 jcrisp 1.1 diff -ruN smeserver-openvpn-bridge-2.1.old/root/etc/e-smith/templates/etc/openvpn/bridge/openvpn.conf/65routes smeserver-openvpn-bridge-2.1/root/etc/e-smith/templates/etc/openvpn/bridge/openvpn.conf/65routes
2     --- smeserver-openvpn-bridge-2.1.old/root/etc/e-smith/templates/etc/openvpn/bridge/openvpn.conf/65routes 2018-11-15 11:27:46.513565713 +0100
3     +++ smeserver-openvpn-bridge-2.1/root/etc/e-smith/templates/etc/openvpn/bridge/openvpn.conf/65routes 2018-11-15 11:29:36.875968052 +0100
4     @@ -21,7 +21,8 @@
5     my $mask = $network->prop('Mask');
6     my $gw = $network->prop('Router') || '';
7     my $vpn = $network->prop('VPN') || '';
8     - if ($gw ne '' || $vpn ne '') {
9     + my $doPush = $network->prop('PushRoute') || 'enabled';
10     + if ( ($gw ne '' || $vpn ne '') && $doPush eq 'enabled' ){
11     $route .= "push \"route $addr $mask";
12     $route .= " $gw" if ($vpn eq '');
13     $OUT .= "$route\"\n";

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed