如何在 OpenSwan 中启用调试日志?

Mic*_*ael 5 ipsec openswan

我在 CentOS 6.7 上使用 OpenSwan IPSec 隧道。

/etc/ipsec.secrets根据此链接添加了以下配置:http : //linux.die.net/man/5/ipsec.conf

config setup

plutodebug=all

plutostderrlog=/var/log/openswan.log
Run Code Online (Sandbox Code Playgroud)

不幸的是,我在 openswan.log 中看不到日志。

我错过了什么?

Mic*_*ael 10

需要将配置添加到文件 /etc/ipsec.conf

# basic configuration
config setup
        plutodebug=all

        plutostderrlog=/var/log/openswan.log
Run Code Online (Sandbox Code Playgroud)