How to enable debug logs in OpenSwan?

I use OpenSwan IPSec tunnel on CentOS 6.7.

I have added the following configuration in /etc/ipsec.secrets according to this link: http://linux.die.net/man/5/ipsec.conf

config setup

plutodebug=all

plutostderrlog=/var/log/openswan.log

Unfortunately I can not see logs in openswan.log.

What I have missed?


Solution 1:

Required to add the configuration to file /etc/ipsec.conf

# basic configuration
config setup
        plutodebug=all

        plutostderrlog=/var/log/openswan.log