How to enable debug logs in OpenSwan

ipsecopenswan

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?

Best Answer

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

# basic configuration
config setup
        plutodebug=all

        plutostderrlog=/var/log/openswan.log
Related Topic