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

Reply via email to