Centos 6 VPS OpenVPNサーバーの障害

Centos 6 VPS OpenVPNサーバーの障害

私は自宅でCentosサーバーとDebianシステムで複数のサービスを実行するのが好きです。私は私の電子メールドメインを持っているので、私のドメイン名とVPS固定IPを使用してVPNを介して私のホームサーバーの疑似固定IPとして機能することに興味があります。

だから私はvps.netからCentOS6.3 VPSを受け取り、それを使ってOpenVPNサーバーの設定を始めました。ガイド。設定が完了すると、service openvpn start常に次のものが返されます。

Starting openvpn: [FAILED]

だから、すべてのパッケージを削除して消去して再起動しました。その後、RHELからUbuntuまで他のチュートリアルを見続けてみました。リポジトリを再起動、削除、更新しましたが、まだ私が間違っているかどうかはわかりません。だから私のエラーを見つけるために誰かが助けてくれてありがとう。

$(uname -r)
-bash: 2.6.32-642.el6.x86_64

openvpn --versionOpenVPN 2.3.14 x86_64-redhat-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Dec  7 2016
library versions: OpenSSL 1.0.1e-fips 11 Feb 2013, LZO 2.03
Originally developed by James Yonan
Copyright (C) 2002-2016 OpenVPN Technologies, Inc. <[email protected]>
Compile time defines: enable_crypto=yes enable_crypto_ofb_cfb=yes enable_debug=yes enable_def_auth=yes enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown enable_fast_install=yes enable_fragment=yes enable_http_proxy=yes enable_iproute2=yes enable_libtool_lock=yes enable_lzo=yes enable_lzo_stub=no enable_management=yes enable_multi=yes enable_multihome=yes enable_pam_dlopen=no enable_password_save=yes enable_pedantic=no enable_pf=yes enable_pkcs11=yes enable_plugin_auth_pam=yes enable_plugin_down_root=yes enable_plugins=yes enable_port_share=yes enable_pthread=yes enable_selinux=no enable_server=yes enable_shared=yes enable_shared_with_static_runtimes=no enable_small=no enable_socks=yes enable_ssl=yes enable_static=yes enable_strict=no enable_strict_options=no enable_systemd=no enable_win32_dll=yes enable_x509_alt_username=yes with_crypto_library=openssl with_gnu_ld=yes with_iproute_path=/sbin/ip with_mem_check=no with_plugindir='$(libdir)/openvpn/plugins' with_sysroot=no

サーバー構成

chkconfig | grep openvpn
openvpn 0:off 1:off 2:on 3:on 4:on 5:on 6:off

現在サービスを実行していない場合は、サービスをすべて終了する必要がありますか?

dmesgには何も見つかりません。

ベストアンサー1

まあ、初期化スクリプトに問題があります。これは、これを使用するとサーバーを正しく起動できるためです。

openvpn --mode server --dev tun --tls-server --dh /etc/openvpn/dh2048.pem --ca /etc/openvpn/ca.crt --cert /etc/openvpn/server.crt --key /etc/openvpn/server.key

もっと調べてみましょう。

おすすめ記事