【问题标题】:Debian cannot read multiple OpenVPN config files (server) [closed]Debian 无法读取多个 OpenVPN 配置文件(服务器)[关闭]
【发布时间】:2016-01-28 08:34:23
【问题描述】:

正如我在手册中看到的,openvpn 守护进程应该从 /etc/openvpn 目录中的每个 *.conf 文件中读取配置。事实上,如果“server.conf”文件丢失,它会在启动时出错并在 syslog 中出现错误。其他 *.conf 文件被忽略。

1 月 28 日 11:28:09 linux ovpn-server[3639]:选项错误:在 [CMD-LINE]:1:打开配置文件时出错:/etc/openvpn/server.conf

Debian GNU/Linux 8.1.0 杰西,OpenVPN 2.3.4-5。

【问题讨论】:

    标签: linux configuration server debian openvpn


    【解决方案1】:

    解决这个问题,谢谢forum。所以我打电话

    # ls /etc/openvpn/*conf

    /etc/openvpn/server-tcp.conf /etc/openvpn/server-udp.conf

    # /lib/systemd/system-generators/openvpn-generator server-udp

    # /lib/systemd/system-generators/openvpn-generator server-tcp

    # systemctl daemon-reload

    【讨论】:

      【解决方案2】:

      试试这个

      systemctl start openvpn@yourconfname
      systemctl enable openvpn@yourconfname
      

      来源: https://help.ubuntu.com/community/OpenVPN

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2012-03-03
        • 2020-11-25
        • 1970-01-01
        • 1970-01-01
        • 2016-04-14
        • 1970-01-01
        • 2020-10-19
        • 2021-06-23
        相关资源
        最近更新 更多