CentOS 7のPPTP VPN

CentOS 7のPPTP VPN

私は最近CentOS 7(GNOME)をインストールしましたが、PPTP VPNクライアントを設定するオプションがないことに気づきました。

インストールしようとしましたが、networkmanager-pptp-gnome残念ながらEPELとCentOSリポジトリの両方では利用できません。

CentOSにPPTP VPNを追加するには?

PPTPなし

ベストアンサー1

期待できるもの:Yum 検索 pptp ppp 次のようなものですか?

[root@localhost src]# yum search pptp ppp
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.openitc.uk
 * extras: centos.hyve.com
 * updates: centos.openitc.uk
===================================================================== N/S matched: pptp ======================================================================
pptp.x86_64 : Point-to-Point Tunneling Protocol (PPTP) Client
pptp-setup.x86_64 : PPTP Tunnel Configuration Script
pptpd.x86_64 : PoPToP Point to Point Tunneling Server

====================================================================== N/S matched: ppp ======================================================================
ppp-devel.i686 : Headers for ppp plugin development
ppp-devel.x86_64 : Headers for ppp plugin development
rp-pppoe.x86_64 : A PPP over Ethernet client (for xDSL support).
ppp.x86_64 : The Point-to-Point Protocol daemon
wvdial.x86_64 : A heuristic autodialer for PPP connections

  Name and summary matches mostly, use "search all" for everything.
[root@localhost src]#

その場合は、次のように入力します。ヤムのインストール ppp pptp pptp-setup -y

必要なパッケージを手動でインポートする代わりに(現在のポップトップには特定のrhel7バージョンがないため、fc20で十分です)。

cd /usr/local/src
wget http://poptop.sourceforge.net/yum/stable/packages/ppp-2.4.5-33.0.fc20.x86_64.rpm
wget http://poptop.sourceforge.net/yum/stable/packages/pptp-release-4-7.fc20.noarch.rpm
rpm -Uhv ppp-2.4.5-33.0.fc20.x86_64.rpm pptp-release-4-7.fc20.noarch.rpm

次に空白を埋め、バッチをシェルプロンプトに貼り付けます。

yourUsername=xxxxxxxx
yourPassword=yyyyyy
vpnServer="111.222.333.444"

modprobe ppp_mppe

mv /etc/ppp/peers/pptpserver /etc/ppp/peers/pptpserver.bak
cat > /etc/ppp/peers/pptpserver <<EOF
pty "pptp $vpnServer --nolaunchpppd"
name $yourUsername
password $yourPassword
remotename PPTP
require-mppe-128
EOF

chmod 600 /etc/ppp/peers/pptpserver
restorecon -Rv /etc/ppp/peers

最後に接続を開始します。

pppd call pptpserver

おすすめ記事