将 Openvpn 服务器配置为 Ubuntu 22.04 LTS 时出错 [关闭]

问题描述 投票:0回答:0

我在 ubuntu 22.04 LTS 上安装 openvpn 时遇到问题。

我曾尝试遵循 openvpn 文档,但我遇到了很多配置错误。

config-import: ** ERROR ** ERR_PROFILE_GENERIC: cannot open for read: 3.ovpn

我遵循了这些步骤:

  1. 我在我的终端上运行这个

    openvpn3 config-import --config ${client.ovpn}
    输出是
    bash: ${client.ovpn}: bad substitution

  2. 我进入了openvpn访问服务器,我下载了我的配置文件,名为

    profile-3.ovpn

  3. 我再跑一次,做些零钱

root@codertpc:/home/codert# openvpn3 config-import --config ${profile-3.ovpn}

输出错误

config-import: ** ERROR ** ERR_PROFILE_GENERIC: cannot open for read: 3.ovpn

我按照 openvpn 获取访问服务器文档。

`apt update && apt -y install ca-certificates wget net-tools gnupg`

`wget https://as-repository.openvpn.net/as-repo-public.asc -qO /etc/apt/trusted.gpg.d/as-repository.asc`

`echo "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/as-repository.asc] http://as-repository.openvpn.net/as/debian jammy main">/etc/apt/sources.list.d/openvpn-as-repo.list`

`apt update && apt -y install openvpn-as`

然后我去

172.20.10.2:943/admin/
并使用
openvpn
登录管理面板并生成密码并创建一个新用户并授予自动登录权限。我被困在那里,因为如果我尝试在我的终端中进行配置,它就无法正常工作。

我做错了什么?

linux ubuntu vpn openvpn ubuntu-22.04
© www.soinside.com 2019 - 2024. All rights reserved.