【发布时间】:2020-04-15 17:02:39
【问题描述】:
我们为 libcharon 编写了一个插件,可以调用我们的代码。这在我们的应用程序和 strongswan 之间造成了一些不必要的耦合,因为我们正在使用这个插件编译 strongswan。
我们称这个插件为 MyPlugin。 配置如下:
$ cat /etc/strongswan/strongswan.d/charon/myplugin.conf
myplugin {
# Whether to load the plugin. Can also be an integer to increase the
# priority of this plugin.
load = yes
proxy
{
# Should send to proxy
send_to_proxy = yes
}
log
{
# Should save to file
log_path = /var/log/myplugin.log
log_ips = yes
}
}
我们希望通过将这个插件编译为我们应用程序的一部分来实现 strongswan 接口,从而扭转这种依赖关系。
问题是,strongswan 支持这个吗? 插件可以部署在 strongswan 已经运行的机器上,并让 strongswan 加载并使用它吗?怎么样?
我们在 CentOS 6 上运行 strongswan 5.1.5。
【问题讨论】:
标签: linux plugins centos6 strongswan