From ipsec man page, seems these variables can be configurable?
The following environment variables control where strongSwan finds its
components. The ipsec command sets them if they
are not already set.
IPSEC_DIR directory containing ipsec programs and utilities
IPSEC_SBINDIR directory containing ipsec command
IPSEC_CONFDIR directory containing configuration files
IPSEC_PIDDIRdirectory containing PID files
IPSEC_NAME name of ipsec distribution
IPSEC_VERSION version numer of ipsec userland and kernel
IPSEC_STARTER_PID PID file for ipsec starter
IPSEC_PLUTO_PID PID file for IKEv1 keying daemon
IPSEC_CHARON_PIDPID file for IKEv2 keying daemon
Thanks,
Roger
-Original Message-
From: users-boun...@lists.strongswan.org
[mailto:users-boun...@lists.strongswan.org] On Behalf Of Dimitrios Siganos
Sent: 2009年9月10日 22:06
Cc: users@lists.strongswan.org
Subject: Re: [strongSwan] IPSEC_CONFDIR does not work?
If you look at the first few lines of the ipsec script, you will see
that it assigns IPSEC_CONFDIR to /etc. That's why your approach doesn't
work.
You could edit the script and see what happens.
But I don't really know if that is the correct way to do what you want.
That would depend on the behaviour of all the other scripts/binaries,
which I don't know.
Dimitrios Siganos
Zhang, Long (Roger) wrote:
Hi,
I want to put all configuration file under my directory. Then I exported
IPSEC_CONFDIR, but seems the IPSEC_CONFDIR does not work. Not sure why.
My shell is bash. Tried two ways. And could not start my connection. If I
started my conection under /etc, it could succeed. Curious, IPSEC_CONFDIR
should be set.
[r...@localhost config]# export IPSEC_CONFDIR=/home/zhangl/ipsec/config
[r...@localhost config]# echo $IPSEC_CONFDIR
/home/zhangl/ipsec/config
[r...@localhost config]# ipsec --confdir
/etc
[r...@localhost config]# IPSEC_CONFDIR=/home/zhangl/ipsec/config
[r...@localhost config]# export IPSEC_CONFDIR
[r...@localhost config]# echo $IPSEC_CONFDIR
/home/zhangl/ipsec/config
[r...@localhost config]# ipsec --confdir
/etc
Thanks,
Roger
___
Users mailing list
Users@lists.strongswan.org
https://lists.strongswan.org/mailman/listinfo/users
___
Users mailing list
Users@lists.strongswan.org
https://lists.strongswan.org/mailman/listinfo/users
___
Users mailing list
Users@lists.strongswan.org
https://lists.strongswan.org/mailman/listinfo/users