Project

General

Profile

Anomalie #6180

Adapter ipsec_updown avec la nouvelle présentation des variables

Added by Fabrice Barconnière over 6 years ago. Updated over 6 years ago.

Status:
Fermé
Priority:
Normal
Category:
-
Start date:
Due date:
10/04/2013
% Done:

100%

Spent time:
Distribution:
EOLE 2.4

Description

Adapter ipsec_updown avec la nouvelle présentation des variables

Associated revisions

Revision e31e9cd3 (diff)
Added by Fabrice Barconnière over 6 years ago

Adaptation ipsec_updown à la redifinition d'une variable
fixes #6180 @1h

History

#1 Updated by Fabrice Barconnière over 6 years ago

  • Status changed from Accepté to Résolu
  • % Done changed from 0 to 100

#2 Updated by Joël Cuissinat over 6 years ago

  • Status changed from Résolu to Fermé
root@eolebase:/usr/share/eole/creole/distrib# grep sw_force_ip_src *
ipsec_updown:    %if %%is_defined('sw_force_ip_src') and %%sw_force_ip_src != "non" 
ipsec_updown:    #PLUTO_MY_SOURCEIP=`grep -A 2 "auto %%sw_force_ip_src" /etc/network/interfaces |grep address|cut -d" " -f2`
ipsec_updown:    PLUTO_MY_SOURCEIP=`ifconfig %%sw_force_ip_src|grep "inet ad.\?r"|cut -d":" -f2|cut -d" " -f1`
ipsec_updown:            %if %%is_defined('sw_force_ip_src') and %%sw_force_ip_src != "non" 
ipsec_updown:            MY_SOURCEIP_NETMASK_CIDR=$(ip addr show dev %%sw_force_ip_src|grep "${PLUTO_MY_SOURCEIP}"|sed 
"s/^.*inet.*\/\([0-9]*\) .*$/\1/")

Also available in: Atom PDF