在本教程中,我们学习如何安装 libcharon-extauth-plugins Ubuntu 22.04。 libcharon-extauth-plugins是strongSwan Charon库(扩展身份验证插件)
介绍
在本教程中我们学习如何安装 libcharon-extauth-plugins
在 Ubuntu 22.04。
什么是 libcharon-extauth-plugins
libcharon-extauth-plugins 是:
坚强的天鹅 VPN 套件使用标准中的本机 IPsec 堆栈
Linux 核心。 它同时支持 IKEv1 和 IKEv2 协议。
这个包为 Charon 库提供了扩展的身份验证插件:
- eap-mschapv2(使用密码/NT 哈希的 EAP-MSCHAPv2 协议处理程序)用于客户端连接到某些 VPN 集中器配置为
Windows 7+ 和现代 OSX/iOS 使用 IKEv2(使用公钥进行识别,使用 MSCHAPv2 进行身份验证)。 - xauth-generic(通用 XAuth 后端,提供来自 ipsec.secrets 和其他凭证集的密码)用于客户端连接 VPN 集中器配置为
Android 和较旧的 OSX/iOS 使用 IKEv1 和 XAUTH(使用公钥进行身份验证,使用 XAUTH 密码进行身份验证)。
这些是“并不总是,但仍然更常用”的插件,为了进一步需要,可以在 libcharon-extra-plugins 包中找到更多插件。
有三种安装方法 libcharon-extauth-plugins
在 Ubuntu 22.04。 我们可以用 apt-get
, apt
和 aptitude
。 在以下部分中,我们将描述每种方法。 您可以选择其中之一。
使用 apt-get 安装 libcharon-extauth-plugins
更新 apt 数据库 apt-get
使用以下命令。
更新apt数据库后,我们可以安装 libcharon-extauth-plugins
使用 apt-get
通过运行以下命令:
sudo apt-get -y install libcharon-extauth-plugins
使用 apt 安装 libcharon-extauth-plugins
更新 apt 数据库 apt
使用以下命令。
更新apt数据库后,我们可以安装 libcharon-extauth-plugins
使用 apt
通过运行以下命令:
sudo apt -y install libcharon-extauth-plugins
使用 aptitude 安装 libcharon-extauth-plugins
如果您想遵循此方法,您可能需要先安装 aptitude,因为 aptitude 通常不会默认安装 Ubuntu。 更新 apt 数据库 aptitude
使用以下命令。
更新apt数据库后,我们可以安装 libcharon-extauth-plugins
使用 aptitude
通过运行以下命令:
sudo aptitude -y install libcharon-extauth-plugins
如何卸载 libcharon-extauth-plugins Ubuntu 22.04
仅卸载 libcharon-extauth-plugins
打包我们可以使用以下命令:
sudo apt-get remove libcharon-extauth-plugins
卸载 libcharon-extauth-plugins 及其依赖项
卸载 libcharon-extauth-plugins
及其不再需要的依赖项 Ubuntu 22.04,我们可以使用以下命令:
sudo apt-get -y autoremove libcharon-extauth-plugins
删除 libcharon-extauth-plugins 配置和数据
去除 libcharon-extauth-plugins
配置和数据来自 Ubuntu 22.04我们可以使用以下命令:
sudo apt-get -y purge libcharon-extauth-plugins
删除 libcharon-extauth-plugins 配置、数据及其所有依赖项
我们可以使用下面的命令来删除 libcharon-extauth-plugins
配置、数据及其所有依赖项,我们可以使用以下命令:
sudo apt-get -y autoremove --purge libcharon-extauth-plugins
参考
概括
在本教程中我们学习如何安装 libcharon-extauth-plugins
封装在 Ubuntu 22.04 使用不同的包管理工具: apt
, apt-get
和 aptitude
。