Posts Tagged ‘NetworkManager’

NetworkManager无法连接网络的解决方法

星期五, 十月 31st, 2014

原创内容,转载请注明出处: http://www.myzhenai.com.cn/post/1907.html http://www.myzhenai.com/thread-16342-1-1.html
昨天手痒,把CenTos6.5升级到CenTos6.6了,但升级结束后却发现我无法拨号上网了,NetworkManager连接程序一直显示一个红叉.把我吓一跳,因为我的系统里安装了很多的程序,如果要重装系统的话还得重新安装这些程序,非常麻烦. 一下子着急上火了. 然后到 /var/log/messages日志里总是不停的提示以下的错误.搜索整个网络也没有相应的解决方法,我还特意给GNOME和NetworkManager官方发了求助邮件,但可惜没有收到他们的回复.没办法,只好自己折腾.我以为是因为NetworkManager升级的源故,因为这次系统升级的包里刚好有几个NetworkManager的更新包.于是我把NetworkManager的所有程序全部remove了,然后重新安装这个版本的NetworkManager,但也没有得到解决,仍然是无法连接网络,再继续排查messages日志也没有得到思路. 幸好我在升级之前留了个心眼,我用我自己写的那个RucLinux system information script脚本获取了所有的旧版本详细配置信息,然后在升级完成后又再次用这个脚本获取了新版本的详细配置信息.在没有更好办法的情况下,我只能使用笨方法,将这两个信息一条一条的对比,看看新旧版本在哪有出入.经过一天的对比,终于让我发现问题所在并最终得到解决了.原来在yum update过程中,系统自动将rp-pppoe-3.10-11.el6.i686这个程序remove了,所以造成没有办法使用Pppoe进行连接网络.因为旧版本里是有这个程序的,但新版本的所有安装程序里却没有这一个. 于是我便下载这个程序安装,问题得到完美解决,这里将方法写出来,以便以后遇到同样问题的朋友们可以参考借鉴.
NetworkManager无法连接网络的故障有多种原因,这个只是其中一种,但我们可以通过排查找到问题并解决它,只不过可能这个过程有点折磨人.
RucLinux system information script V0.96 : http://www.myzhenai.com/thread-16179-1-1.html http://www.myzhenai.com.cn/post/1777.html

NetworkManager 连接 网络 解决 方法

NetworkManager无法连接网络的解决方法


Messages error:

localhost NetworkManager[1742]: <info> NetworkManager (version 0.8.1-75.el6) is starting...
localhost NetworkManager[1742]: </info><info> Read config file /etc/NetworkManager/NetworkManager.conf
localhost NetworkManager[1742]: </info><info> trying to start the modem manager...
localhost modem-manager: ModemManager (version 0.4.0-5.git20100628.el6) starting...
localhost modem-manager: Loaded plugin Generic
localhost NetworkManager[1742]: </info><info> monitoring kernel firmware directory '/lib/firmware'.
localhost NetworkManager[1742]: </info><info> Bonding/Bridging/VLAN support disabled
localhost NetworkManager[1742]:    ifcfg-rh: Acquired D-Bus service com.redhat.ifcfgrh1
localhost NetworkManager[1742]: </info><info> Loaded plugin ifcfg-rh: (c) 2007 - 2008 Red Hat, Inc.  To report bugs please use the NetworkManager mailing list.
localhost NetworkManager[1742]:    ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-lo ... 
localhost NetworkManager[1742]: </info><info> WiFi enabled by radio killswitch; enabled by state file
localhost NetworkManager[1742]: </info><info> WWAN enabled by radio killswitch; enabled by state file
localhost NetworkManager[1742]: </info><info> WiMAX enabled by radio killswitch; enabled by state file
localhost NetworkManager[1742]: </info><info> Networking is enabled by state file
localhost kernel: 802.1Q VLAN Support v1.8 Ben Greear <greearb @candelatech.com>
localhost kernel: All bugs added by David S. Miller <davem @redhat.com>
localhost NetworkManager[1742]: <info> (eth1): carrier is OFF
localhost NetworkManager[1742]: </info><info> (eth1): new Ethernet device (driver: 'vmxnet' ifindex: 2)
localhost NetworkManager[1742]: </info><info> (eth1): exported as /org/freedesktop/NetworkManager/Devices/0
localhost NetworkManager[1742]: </info><info> (eth1): now managed
localhost NetworkManager[1742]: </info><info> (eth1): device state change: unmanaged -> unavailable (reason 'managed') [1 2 2]
localhost NetworkManager[1742]: </info><info> (eth1): bringing up device.
localhost NetworkManager[1742]: </info><info> (eth1): carrier now ON (device state 2)
localhost NetworkManager[1742]: </info><info> (eth1): preparing device.
localhost NetworkManager[1742]: </info><info> (eth1): deactivating device (reason 'managed') [2]
localhost NetworkManager[1742]: </info><info> (eth1): carrier now OFF (device state 2)
localhost NetworkManager[1742]: </info><info> (eth1): carrier now ON (device state 2)
localhost NetworkManager[1742]: </info><info> modem-manager is now available
localhost NetworkManager[1742]: </info><info> Trying to start the supplicant...
localhost NetworkManager[1742]: </info><info> (eth1): device state change: unavailable -> disconnected (reason 'none') [2 3 0]
localhost NetworkManager[1742]: </info><info> Auto-activating connection 'ADSL'.
localhost NetworkManager[1742]: </info><info> Activation (eth1) starting connection 'ADSL'
localhost NetworkManager[1742]: </info><info> (eth1): device state change: disconnected -> prepare (reason 'none') [3 4 0]
localhost NetworkManager[1742]: </info><info> Activation (eth1) Stage 1 of 5 (Device Prepare) scheduled...
localhost NetworkManager[1742]: </info><info> Activation (eth1) Stage 1 of 5 (Device Prepare) started...
localhost NetworkManager[1742]: </info><info> Activation (eth1) Stage 2 of 5 (Device Configure) scheduled...
localhost NetworkManager[1742]: </info><info> Activation (eth1) Stage 1 of 5 (Device Prepare) complete.
localhost NetworkManager[1742]: </info><info> Activation (eth1) Stage 2 of 5 (Device Configure) starting...
localhost NetworkManager[1742]: </info><info> (eth1): device state change: prepare -> config (reason 'none') [4 5 0]
localhost NetworkManager[1742]: </info><info> Activation (eth1) Stage 2 of 5 (Device Configure) successful.
localhost NetworkManager[1742]: </info><info> Activation (eth1) Stage 3 of 5 (IP Configure Start) scheduled.
localhost NetworkManager[1742]: </info><info> Activation (eth1) Stage 2 of 5 (Device Configure) complete.
localhost NetworkManager[1742]: </info><info> Activation (eth1) Stage 3 of 5 (IP Configure Start) started...
localhost NetworkManager[1742]: </info><info> (eth1): device state change: config -> ip-config (reason 'none') [5 7 0]
localhost NetworkManager[1742]: <warn> (eth1): PPPoE failed to start: Could not find pppoe binary.
localhost NetworkManager[1742]: <info> (eth1): device state change: ip-config -> failed (reason 'ppp-start-failed') [7 9 12]
localhost NetworkManager[1742]: <warn> Activation (eth1) failed.
localhost NetworkManager[1742]: <info> Activation (eth1) Stage 3 of 5 (IP Configure Start) complete.
localhost NetworkManager[1742]: </info><info> (eth1): device state change: failed -> disconnected (reason 'none') [9 3 0]
localhost NetworkManager[1742]: </info><info> (eth1): deactivating device (reason 'none') [0]
localhost NetworkManager[1742]: </info><info> wpa_supplicant started
localhost console-kit-daemon[2290]: WARNING: Unable to create directory /var/log/ConsoleKit (Permission denied)
localhost NetworkManager[1742]: </info><info> Auto-activating connection 'ADSL'.
localhost NetworkManager[1742]: </info><info> Activation (eth1) starting connection 'ADSL'
localhost NetworkManager[1742]: </info><info> (eth1): device state change: disconnected -> prepare (reason 'none') [3 4 0]
localhost NetworkManager[1742]: </info><info> Activation (eth1) Stage 1 of 5 (Device Prepare) scheduled...
localhost NetworkManager[1742]: </info><info> Activation (eth1) Stage 1 of 5 (Device Prepare) started...
localhost NetworkManager[1742]: </info><info> (eth1) delaying PPPoE reconnect to ensure peer is ready...
localhost NetworkManager[1742]: </info><info> Activation (eth1) Stage 1 of 5 (Device Prepare) complete.
localhost NetworkManager[1742]: </info><info> Activation (eth1) Stage 2 of 5 (Device Configure) scheduled...
localhost NetworkManager[1742]: </info><info> (eth1) PPPoE reconnect delay complete, resuming connection...
localhost NetworkManager[1742]: </info><info> Activation (eth1) Stage 2 of 5 (Device Configure) starting...
localhost NetworkManager[1742]: </info><info> (eth1): device state change: prepare -> config (reason 'none') [4 5 0]
localhost NetworkManager[1742]: </info><info> Activation (eth1) Stage 2 of 5 (Device Configure) successful.
localhost NetworkManager[1742]: </info><info> Activation (eth1) Stage 3 of 5 (IP Configure Start) scheduled.
localhost NetworkManager[1742]: </info><info> Activation (eth1) Stage 2 of 5 (Device Configure) complete.
localhost NetworkManager[1742]: </info><info> Activation (eth1) Stage 3 of 5 (IP Configure Start) started...
localhost NetworkManager[1742]: </info><info> (eth1): device state change: config -> ip-config (reason 'none') [5 7 0]
localhost NetworkManager[1742]: <warn> (eth1): PPPoE failed to start: Could not find pppoe binary.
localhost NetworkManager[1742]: <info> (eth1): device state change: ip-config -> failed (reason 'ppp-start-failed') [7 9 12]
localhost NetworkManager[1742]: <warn> Activation (eth1) failed.
localhost NetworkManager[1742]: <info> Activation (eth1) Stage 3 of 5 (IP Configure Start) complete.
localhost NetworkManager[1742]: </info><info> (eth1): device state change: failed -> disconnected (reason 'none') [9 3 0]
localhost NetworkManager[1742]: </info><info> (eth1): deactivating device (reason 'none') [0]
</info></warn></info></warn></info></warn></info></warn></info></davem></greearb></info>

Update List

Dependencies Resolved

================================================================================
 Package                         Arch   Version                   Repository
                                                                           Size
================================================================================
Installing:
 kernel                          i686   2.6.32-504.el6            base     27 M
 kernel-devel                    i686   2.6.32-504.el6            base    9.3 M
 sssd-common                     i686   1.11.6-30.el6             base    825 k
     replacing  libsss_autofs.i686 1.9.2-129.el6_5.4
Updating:
 NetworkManager                  i686   1:0.8.1-75.el6            base    1.1 M
 NetworkManager-devel            i686   1:0.8.1-75.el6            base    283 k
 NetworkManager-glib             i686   1:0.8.1-75.el6            base    231 k
 NetworkManager-glib-devel       i686   1:0.8.1-75.el6            base    284 k
 NetworkManager-gnome            i686   1:0.8.1-75.el6            base    468 k
 ORBit2                          i686   2.14.17-5.el6             base    162 k
 ORBit2-devel                    i686   2.14.17-5.el6             base    173 k
 PackageKit                      i686   0.5.8-23.el6              base    522 k
 PackageKit-device-rebind        i686   0.5.8-23.el6              base     96 k
 PackageKit-glib                 i686   0.5.8-23.el6              base    216 k
 PackageKit-gstreamer-plugin     i686   0.5.8-23.el6              base     96 k
 PackageKit-gtk-module           i686   0.5.8-23.el6              base     95 k
 PackageKit-yum                  i686   0.5.8-23.el6              base    156 k
 PackageKit-yum-plugin           i686   0.5.8-23.el6              base     92 k
 abrt                            i686   2.0.8-26.el6.centos       base    210 k
 abrt-addon-ccpp                 i686   2.0.8-26.el6.centos       base    117 k
 abrt-addon-kerneloops           i686   2.0.8-26.el6.centos       base     68 k
 abrt-addon-python               i686   2.0.8-26.el6.centos       base     65 k
 abrt-cli                        i686   2.0.8-26.el6.centos       base     55 k
 abrt-desktop                    i686   2.0.8-26.el6.centos       base     55 k
 abrt-gui                        i686   2.0.8-26.el6.centos       base    151 k
 abrt-libs                       i686   2.0.8-26.el6.centos       base     65 k
 abrt-tui                        i686   2.0.8-26.el6.centos       base     62 k
 alsa-utils                      i686   1.0.22-7.el6              base    2.0 M
 at                              i686   3.1.10-44.el6_6.2         updates  59 k
 audit                           i686   2.3.7-5.el6               base    206 k
 audit-libs                      i686   2.3.7-5.el6               base     72 k
 authconfig                      i686   6.1.12-19.el6             base    377 k
 authconfig-gtk                  i686   6.1.12-19.el6             base     68 k
 autocorr-en                     noarch 1:4.0.4.2-14.el6          base    118 k
 autocorr-zh                     noarch 1:4.0.4.2-14.el6          base    104 k
 autofs                          i686   1:5.0.5-109.el6           base    721 k
 avahi                           i686   0.6.25-15.el6             base    216 k
 avahi-autoipd                   i686   0.6.25-15.el6             base     34 k
 avahi-glib                      i686   0.6.25-15.el6             base     20 k
 avahi-gobject                   i686   0.6.25-15.el6             base     29 k
 avahi-libs                      i686   0.6.25-15.el6             base     55 k
 avahi-ui                        i686   0.6.25-15.el6             base     32 k
 bash                            i686   4.1.2-29.el6              base    889 k
 bfa-firmware                    noarch 3.2.23.0-2.el6            base    3.2 M
 bind-libs                       i686   32:9.8.2-0.30.rc1.el6     base    894 k
 bind-utils                      i686   32:9.8.2-0.30.rc1.el6     base    184 k
 binutils                        i686   2.20.51.0.2-5.42.el6      base    2.8 M
 biosdevname                     i686   0.5.1-1.el6               base     33 k
 boost-filesystem                i686   1.41.0-25.el6             base     46 k
 boost-program-options           i686   1.41.0-25.el6             base    110 k
 boost-regex                     i686   1.41.0-25.el6             base    479 k
 boost-system                    i686   1.41.0-25.el6             base     26 k
 boost-thread                    i686   1.41.0-25.el6             base     43 k
 c-ares                          i686   1.10.0-3.el6              base     75 k
 ca-certificates                 noarch 2014.1.98-65.1.el6        base    1.1 M
 ccid                            i686   1.3.9-7.el6               base    122 k
 centos-indexhtml                noarch 6-2.el6.centos            base     91 k
 centos-release                  i686   6-6.el6.centos.12.2       base     21 k
 certmonger                      i686   0.75.13-1.el6             base    431 k
 coreutils                       i686   8.4-37.el6                base    3.0 M
 coreutils-libs                  i686   8.4-37.el6                base     50 k
 cpp                             i686   4.4.7-11.el6              base    3.4 M
 crash-trace-command             i686   1.0-5.el6                 base     27 k
 crda                            i686   1.1.3_2014.06.13-1.el6    base     23 k
 cryptsetup-luks                 i686   1.2.0-11.el6              base     94 k
 cryptsetup-luks-libs            i686   1.2.0-11.el6              base     52 k
 cups-libs                       i686   1:1.4.2-67.el6            base    329 k
 cyrus-sasl                      i686   2.1.23-15.el6             base     78 k
 cyrus-sasl-gssapi               i686   2.1.23-15.el6             base     34 k
 cyrus-sasl-lib                  i686   2.1.23-15.el6             base    136 k
 cyrus-sasl-md5                  i686   2.1.23-15.el6             base     47 k
 cyrus-sasl-plain                i686   2.1.23-15.el6             base     31 k
 devhelp                         i686   2.28.1-6.el6              base    186 k
 device-mapper                   i686   1.02.90-2.el6             base    172 k
 device-mapper-event             i686   1.02.90-2.el6             base    122 k
 device-mapper-event-libs        i686   1.02.90-2.el6             base    115 k
 device-mapper-libs              i686   1.02.90-2.el6             base    215 k
 device-mapper-persistent-data   i686   0.3.2-1.el6               base    2.6 M
 dhclient                        i686   12:4.1.1-43.P1.el6.centos base    317 k
 dhcp-common                     i686   12:4.1.1-43.P1.el6.centos base    143 k
 dnsmasq                         i686   2.48-14.el6               base    145 k
 dracut                          noarch 004-356.el6               base    123 k
 dracut-kernel                   noarch 004-356.el6               base     25 k
 e2fsprogs                       i686   1.41.12-21.el6            base    554 k
 e2fsprogs-libs                  i686   1.41.12-21.el6            base    128 k
 efibootmgr                      i686   0.5.4-12.el6              base     38 k
 elfutils                        i686   0.158-3.2.el6             base    248 k
 elfutils-libelf                 i686   0.158-3.2.el6             base    189 k
 elfutils-libs                   i686   0.158-3.2.el6             base    232 k
 ethtool                         i686   2:3.5-5.el6               base     98 k
 evolution                       i686   2.32.3-34.el6             base    9.4 M
 evolution-data-server           i686   2.32.3-21.el6             base    2.6 M
 evolution-help                  noarch 2.32.3-34.el6             base     17 M
 file                            i686   5.04-21.el6               base     47 k
 file-libs                       i686   5.04-21.el6               base    316 k
 file-roller                     i686   2.28.2-7.el6              base    1.1 M
 flex                            i686   2.5.35-9.el6              base    278 k
 fontconfig                      i686   2.8.0-5.el6               base    186 k
 fontconfig-devel                i686   2.8.0-5.el6               base    209 k
 gcc                             i686   4.4.7-11.el6              base    8.2 M
 gcc-c++                         i686   4.4.7-11.el6              base    4.3 M
 gcc-gfortran                    i686   4.4.7-11.el6              base    4.1 M
 gcc-objc                        i686   4.4.7-11.el6              base    3.2 M
 gcc-objc++                      i686   4.4.7-11.el6              base    3.6 M
 gdb                             i686   7.2-75.el6                base    2.3 M
 gdm                             i686   1:2.30.4-64.el6           base    1.0 M
 gdm-libs                        i686   1:2.30.4-64.el6           base    100 k
 gdm-plugin-fingerprint          i686   1:2.30.4-64.el6           base    101 k
 gdm-user-switch-applet          i686   1:2.30.4-64.el6           base    110 k
 gettext                         i686   0.17-18.el6               base    1.8 M
 gettext-devel                   i686   0.17-18.el6               base    154 k
 gettext-libs                    i686   0.17-18.el6               base    110 k
 ghostscript-fonts               noarch 5.50-23.2.el6             base    590 k
 gimp                            i686   2:2.6.9-7.el6             base     12 M
 gimp-devel                      i686   2:2.6.9-7.el6             base    1.0 M
 gimp-devel-tools                i686   2:2.6.9-7.el6             base     58 k
 gimp-libs                       i686   2:2.6.9-7.el6             base    510 k
 glib2                           i686   2.28.8-4.el6              base    1.7 M
 glib2-devel                     i686   2.28.8-4.el6              base    298 k
 glib2-static                    i686   2.28.8-4.el6              base    1.0 M
 glibc                           i686   2.12-1.149.el6            base    4.3 M
 glibc-common                    i686   2.12-1.149.el6            base     14 M
 glibc-devel                     i686   2.12-1.149.el6            base    983 k
 glibc-headers                   i686   2.12-1.149.el6            base    619 k
 glibc-static                    i686   2.12-1.149.el6            base    1.1 M
 glibc-utils                     i686   2.12-1.149.el6            base    167 k
 glx-utils                       i686   10.1.2-2.el6              base     24 k
 gnome-packagekit                i686   2.28.3-9.el6              base    2.5 M
 gnome-session                   i686   2.28.0-22.el6             base    437 k
 gnome-session-xsession          i686   2.28.0-22.el6             base     30 k
 gnupg2                          i686   2.0.14-8.el6              base    1.6 M
 grep                            i686   2.6.3-6.el6               base    228 k
 grub                            i686   1:0.97-93.el6             base    930 k
 grubby                          i686   7.0.15-7.el6              base     42 k
 gtk2                            i686   2.24.23-6.el6             base    3.2 M
 gtk2-devel                      i686   2.24.23-6.el6             base    2.6 M
 gtk2-devel-docs                 i686   2.24.23-6.el6             base    2.6 M
 gtk2-immodule-xim               i686   2.24.23-6.el6             base     64 k
 gtk2-immodules                  i686   2.24.23-6.el6             base     70 k
 gvfs                            i686   1.4.3-18.el6              base    919 k
 gvfs-afc                        i686   1.4.3-18.el6              base     80 k
 gvfs-archive                    i686   1.4.3-18.el6              base     65 k
 gvfs-fuse                       i686   1.4.3-18.el6              base     30 k
 gvfs-gphoto2                    i686   1.4.3-18.el6              base     88 k
 gvfs-obexftp                    i686   1.4.3-18.el6              base     72 k
 gvfs-smb                        i686   1.4.3-18.el6              base     92 k
 gzip                            i686   1.3.12-22.el6             base    114 k
 hal                             i686   0.5.14-14.el6             base    378 k
 hal-devel                       i686   0.5.14-14.el6             base     41 k
 hal-libs                        i686   0.5.14-14.el6             base     68 k
 hal-storage-addon               i686   0.5.14-14.el6             base     41 k
 hplip-common                    i686   3.12.4-6.el6              base     74 k
 hplip-libs                      i686   3.12.4-6.el6              base    142 k
 hwdata                          noarch 0.233-11.1.el6            base    1.2 M
 ibus-table                      noarch 1.2.0.20100111-5.el6      base    243 k
 ibus-table-additional           noarch 1.2.0.20100111-5.el6      base     40 k
 initscripts                     i686   9.03.46-1.el6.centos      base    943 k
 ipa-client                      i686   3.0.0-42.el6.centos       base    144 k
 ipa-python                      i686   3.0.0-42.el6.centos       base    928 k
 iptables                        i686   1.4.7-14.el6              base    248 k
 iptables-ipv6                   i686   1.4.7-14.el6              base     98 k
 irqbalance                      i686   2:1.0.4-10.el6            base     38 k
 java-1.6.0-openjdk              i686   1:1.6.0.33-1.13.5.0.el6_6 updates  42 M
 kernel-firmware                 noarch 2.6.32-504.el6            base     14 M
 kernel-headers                  i686   2.6.32-504.el6            base    3.3 M
 kexec-tools                     i686   2.0.0-280.el6             base    330 k
 keyutils                        i686   1.4-5.el6                 base     38 k
 keyutils-libs                   i686   1.4-5.el6                 base     20 k
 keyutils-libs-devel             i686   1.4-5.el6                 base     29 k
 kpartx                          i686   0.4.9-80.el6              base     63 k
 krb5-devel                      i686   1.10.3-33.el6             base    497 k
 krb5-libs                       i686   1.10.3-33.el6             base    773 k
 krb5-pkinit-openssl             i686   1.10.3-33.el6             base    122 k
 krb5-workstation                i686   1.10.3-33.el6             base    806 k
 ledmon                          i686   0.79-1.el6                base     49 k
 less                            i686   436-13.el6                base    108 k
 libX11                          i686   1.6.0-2.2.el6             base    591 k
 libX11-common                   noarch 1.6.0-2.2.el6             base    192 k
 libX11-devel                    i686   1.6.0-2.2.el6             base    982 k
 libXcursor                      i686   1.1.14-2.1.el6            base     28 k
 libXcursor-devel                i686   1.1.14-2.1.el6            base     23 k
 libXext                         i686   1.3.2-2.1.el6             base     35 k
 libXext-devel                   i686   1.3.2-2.1.el6             base     74 k
 libXfixes                       i686   5.0.1-2.1.el6             base     16 k
 libXfixes-devel                 i686   5.0.1-2.1.el6             base     13 k
 libXi                           i686   1.7.2-2.2.el6             base     37 k
 libXi-devel                     i686   1.7.2-2.2.el6             base    104 k
 libXinerama                     i686   1.1.3-2.1.el6             base     13 k
 libXinerama-devel               i686   1.1.3-2.1.el6             base     13 k
 libXrandr                       i686   1.4.1-2.1.el6             base     23 k
 libXrandr-devel                 i686   1.4.1-2.1.el6             base     21 k
 libXrender                      i686   0.9.8-2.1.el6             base     23 k
 libXrender-devel                i686   0.9.8-2.1.el6             base     17 k
 libXres                         i686   1.0.7-2.1.el6             base     12 k
 libXt                           i686   1.1.4-6.1.el6             base    159 k
 libXt-devel                     i686   1.1.4-6.1.el6             base    454 k
 libXtst                         i686   1.2.2-2.1.el6             base     19 k
 libXtst-devel                   i686   1.2.2-2.1.el6             base     16 k
 libXv                           i686   1.0.9-2.1.el6             base     16 k
 libXv-devel                     i686   1.0.9-2.1.el6             base     39 k
 libXvMC                         i686   1.0.8-2.1.el6             base     20 k
 libXxf86dga                     i686   1.1.4-2.1.el6             base     17 k
 libXxf86vm                      i686   1.1.3-2.1.el6             base     16 k
 libXxf86vm-devel                i686   1.1.3-2.1.el6             base     18 k
 libblkid                        i686   2.17.2-12.18.el6          base    120 k
 libcollection                   i686   0.6.2-11.el6              base     37 k
 libcom_err                      i686   1.41.12-21.el6            base     37 k
 libcom_err-devel                i686   1.41.12-21.el6            base     32 k
 libdhash                        i686   0.4.3-11.el6              base     24 k
 libdmx                          i686   1.1.3-3.el6               base     15 k
 libdrm                          i686   2.4.52-4.el6              base    126 k
 libdrm-devel                    i686   2.4.52-4.el6              base     86 k
 libgcc                          i686   4.4.7-11.el6              base    113 k
 libgcj                          i686   4.4.7-11.el6              base     17 M
 libgfortran                     i686   4.4.7-11.el6              base    245 k
 libgomp                         i686   4.4.7-11.el6              base    135 k
 libgudev1                       i686   147-2.57.el6              base     62 k
 libibverbs                      i686   1.1.8-3.el6               base     53 k
 libini_config                   i686   1.1.0-11.el6              base     47 k
 libipa_hbac                     i686   1.11.6-30.el6             base     94 k
 libipa_hbac-python              i686   1.11.6-30.el6             base     88 k
 libmlx4                         i686   1.0.6-6.el6               base     34 k
 libmlx4-static                  i686   1.0.6-6.el6               base     22 k
 libmudflap                      i686   4.4.7-11.el6              base    108 k
 libmudflap-devel                i686   4.4.7-11.el6              base    132 k
 libobjc                         i686   4.4.7-11.el6              base     91 k
 libpath_utils                   i686   0.2.1-11.el6              base     24 k
 libpciaccess                    i686   0.13.3-0.1.el6            base     26 k
 libproxy                        i686   0.3.0-10.el6              base     39 k
 libproxy-bin                    i686   0.3.0-10.el6              base    8.9 k
 libproxy-python                 i686   0.3.0-10.el6              base    9.2 k
 libref_array                    i686   0.1.4-11.el6              base     23 k
 libreoffice-calc                i686   1:4.0.4.2-14.el6          base    7.5 M
 libreoffice-core                i686   1:4.0.4.2-14.el6          base     66 M
 libreoffice-draw                i686   1:4.0.4.2-14.el6          base    677 k
 libreoffice-graphicfilter       i686   1:4.0.4.2-14.el6          base    345 k
 libreoffice-impress             i686   1:4.0.4.2-14.el6          base    1.3 M
 libreoffice-langpack-en         i686   1:4.0.4.2-14.el6          base    7.8 k
 libreoffice-langpack-zh-Hans    i686   1:4.0.4.2-14.el6          base     13 M
 libreoffice-langpack-zh-Hant    i686   1:4.0.4.2-14.el6          base     13 M
 libreoffice-math                i686   1:4.0.4.2-14.el6          base    1.0 M
 libreoffice-opensymbol-fonts    noarch 1:4.0.4.2-14.el6          base    182 k
 libreoffice-pdfimport           i686   1:4.0.4.2-14.el6          base    222 k
 libreoffice-ure                 i686   1:4.0.4.2-14.el6          base    2.5 M
 libreoffice-writer              i686   1:4.0.4.2-14.el6          base    5.1 M
 libreoffice-xsltfilter          i686   1:4.0.4.2-14.el6          base    213 k
 libreport                       i686   2.0.9-21.el6.centos       base    246 k
 libreport-cli                   i686   2.0.9-21.el6.centos       base     23 k
 libreport-compat                i686   2.0.9-21.el6.centos       base     16 k
 libreport-gtk                   i686   2.0.9-21.el6.centos       base     44 k
 libreport-newt                  i686   2.0.9-21.el6.centos       base     18 k
 libreport-plugin-kerneloops     i686   2.0.9-21.el6.centos       base     19 k
 libreport-plugin-logger         i686   2.0.9-21.el6.centos       base     21 k
 libreport-plugin-mailx          i686   2.0.9-21.el6.centos       base     22 k
 libreport-plugin-reportuploader i686   2.0.9-21.el6.centos       base     24 k
 libreport-plugin-rhtsupport     i686   2.0.9-21.el6.centos       base     31 k
 libreport-python                i686   2.0.9-21.el6.centos       base     35 k
 librsvg2                        i686   2.26.0-14.el6             base    141 k
 libselinux                      i686   2.0.94-5.8.el6            base    109 k
 libselinux-devel                i686   2.0.94-5.8.el6            base    137 k
 libselinux-python               i686   2.0.94-5.8.el6            base    199 k
 libselinux-utils                i686   2.0.94-5.8.el6            base     82 k
 libsmbclient                    i686   3.6.23-12.el6             base    1.6 M
 libsmbclient-devel              i686   3.6.23-12.el6             base     85 k
 libsoup                         i686   2.34.3-2.el6              base    187 k
 libss                           i686   1.41.12-21.el6            base     41 k
 libsss_idmap                    i686   1.11.6-30.el6             base     98 k
 libstdc++                       i686   4.4.7-11.el6              base    301 k
 libstdc++-devel                 i686   4.4.7-11.el6              base    1.6 M
 libstdc++-docs                  i686   4.4.7-11.el6              base     14 M
 libtirpc                        i686   0.2.1-10.el6              base     78 k
 libudev                         i686   147-2.57.el6              base     77 k
 libuuid                         i686   2.17.2-12.18.el6          base     69 k
 libvirt-client                  i686   0.10.2-46.el6_6.1         updates 4.0 M
 libvisual                       i686   0.4.0-10.el6              base    135 k
 libwacom                        i686   0.8-1.el6                 base     24 k
 libwacom-data                   noarch 0.8-1.el6                 base     36 k
 libwmf                          i686   0.2.8.4-23.el6            base    131 k
 libwmf-lite                     i686   0.2.8.4-23.el6            base     52 k
 libxcb                          i686   1.9.1-2.el6               base    115 k
 libxcb-devel                    i686   1.9.1-2.el6               base    1.0 M
 libxcb-doc                      noarch 1.9.1-2.el6               base    6.4 M
 libxcb-python                   i686   1.9.1-2.el6               base    128 k
 libxml2                         i686   2.7.6-17.el6_6.1          updates 801 k
 libxml2-devel                   i686   2.7.6-17.el6_6.1          updates 1.1 M
 libxml2-python                  i686   2.7.6-17.el6_6.1          updates 315 k
 libxml2-static                  i686   2.7.6-17.el6_6.1          updates 549 k
 ltrace                          i686   0.5-28.45svn.el6          base     73 k
 lvm2                            i686   2.02.111-2.el6            base    826 k
 lvm2-libs                       i686   2.02.111-2.el6            base    919 k
 man-pages-overrides             noarch 6.6.3-2.el6               base    1.4 M
 mdadm                           i686   3.3-6.el6                 base    350 k
 mesa-dri-drivers                i686   10.1.2-2.el6              base     13 M
 mesa-dri-filesystem             i686   10.1.2-2.el6              base     16 k
 mesa-libEGL                     i686   10.1.2-2.el6              base     55 k
 mesa-libGL                      i686   10.1.2-2.el6              base    128 k
 mesa-libGL-devel                i686   10.1.2-2.el6              base    483 k
 mesa-libGLU                     i686   10.1.2-2.el6              base    194 k
 mesa-libGLU-devel               i686   10.1.2-2.el6              base     83 k
 mesa-libgbm                     i686   10.1.2-2.el6              base     25 k
 mesa-private-llvm               i686   3.4-3.el6                 base    5.9 M
 microcode_ctl                   i686   1:1.17-19.el6             base    676 k
 mobile-broadband-provider-info  noarch 1.20100122-4.el6          base     26 k
 module-init-tools               i686   3.9-24.el6                base    456 k
 mutt                            i686   5:1.5.20-7.20091214hg736b6a.el6
                                                                  base    1.2 M
 net-snmp                        i686   1:5.5-50.el6_6.1          updates 305 k
 net-snmp-libs                   i686   1:5.5-50.el6_6.1          updates 1.5 M
 nfs-utils                       i686   1:1.2.3-54.el6            base    328 k
 nfs-utils-lib                   i686   1.1.5-9.el6               base     66 k
 nss                             i686   3.16.1-14.el6             base    839 k
 nss-softokn                     i686   3.14.3-17.el6             base    269 k
 nss-softokn-freebl              i686   3.14.3-17.el6             base    153 k
 nss-sysinit                     i686   3.16.1-14.el6             base     43 k
 nss-tools                       i686   3.16.1-14.el6             base    431 k
 nss-util                        i686   3.16.1-3.el6              base     65 k
 numactl                         i686   2.0.9-2.el6               base     69 k
 openldap                        i686   2.4.39-8.el6              base    282 k
 openssh                         i686   5.3p1-104.el6             base    274 k
 openssh-askpass                 i686   5.3p1-104.el6             base     56 k
 openssh-clients                 i686   5.3p1-104.el6             base    442 k
 openssh-ldap                    i686   5.3p1-104.el6             base     79 k
 openssh-server                  i686   5.3p1-104.el6             base    320 k
 openssl                         i686   1.0.1e-30.el6_6.2         updates 1.5 M
 openssl-devel                   i686   1.0.1e-30.el6_6.2         updates 1.2 M
 openssl-perl                    i686   1.0.1e-30.el6_6.2         updates  52 k
 openssl-static                  i686   1.0.1e-30.el6_6.2         updates 1.0 M
 openswan                        i686   2.6.32-37.el6             base    895 k
 openswan-doc                    i686   2.6.32-37.el6             base    344 k
 pam                             i686   1.1.1-20.el6              base    660 k
 pango                           i686   1.28.1-10.el6             base    351 k
 pango-devel                     i686   1.28.1-10.el6             base    276 k
 parted                          i686   2.1-25.el6                base    595 k
 pciutils                        i686   3.1.10-4.el6              base     85 k
 pciutils-libs                   i686   3.1.10-4.el6              base     34 k
 pcsc-lite                       i686   1.5.2-14.el6              base    128 k
 pcsc-lite-libs                  i686   1.5.2-14.el6              base     27 k
 perl-WWW-Curl                   i686   4.09-4.el6                base     47 k
 pixman                          i686   0.32.4-4.el6              base    234 k
 pixman-devel                    i686   0.32.4-4.el6              base     20 k
 pm-utils                        i686   1.2.5-11.el6              base    108 k
 policycoreutils                 i686   2.0.83-19.47.el6_6.1      updates 645 k
 polkit                          i686   0.96-7.el6                base    160 k
 polkit-desktop-policy           noarch 0.96-7.el6                base    7.5 k
 polkit-gnome                    i686   0.96-4.el6                base     88 k
 procps                          i686   3.2.8-30.el6              base    213 k
 pulseaudio                      i686   0.9.21-17.el6             base    529 k
 pulseaudio-esound-compat        i686   0.9.21-17.el6             base     19 k
 pulseaudio-gdm-hooks            i686   0.9.21-17.el6             base     17 k
 pulseaudio-libs                 i686   0.9.21-17.el6             base    454 k
 pulseaudio-libs-devel           i686   0.9.21-17.el6             base    297 k
 pulseaudio-libs-glib2           i686   0.9.21-17.el6             base     23 k
 pulseaudio-libs-zeroconf        i686   0.9.21-17.el6             base     27 k
 pulseaudio-module-bluetooth     i686   0.9.21-17.el6             base     69 k
 pulseaudio-module-gconf         i686   0.9.21-17.el6             base     24 k
 pulseaudio-module-x11           i686   0.9.21-17.el6             base     30 k
 pulseaudio-module-zeroconf      i686   0.9.21-17.el6             base     45 k
 pulseaudio-utils                i686   0.9.21-17.el6             base     70 k
 python-kerberos                 i686   1.1-7.el6                 base     22 k
 pywebkitgtk                     i686   1.1.6-4.el6               base     49 k
 rsync                           i686   3.0.6-12.el6              base    329 k
 rsyslog                         i686   5.8.10-9.el6_6            updates 656 k
 samba-client                    i686   3.6.23-12.el6             base     11 M
 samba-common                    i686   3.6.23-12.el6             base    9.9 M
 samba-winbind                   i686   3.6.23-12.el6             base    2.2 M
 samba-winbind-clients           i686   3.6.23-12.el6             base    2.0 M
 samba4-libs                     i686   4.0.0-64.el6.rc4          base    4.0 M
 scl-utils                       i686   20120927-23.el6_6         updates  22 k
 selinux-policy                  noarch 3.7.19-260.el6            base    863 k
 selinux-policy-targeted         noarch 3.7.19-260.el6            base    3.0 M
 sg3_utils-libs                  i686   1.28-6.el6                base     50 k
 sgml-common                     noarch 0.6.3-33.el6              base     43 k
 shadow-utils                    i686   2:4.1.4.2-19.el6          base    898 k
 shared-mime-info                i686   0.70-6.el6                base    209 k
 sos                             noarch 2.2-68.el6.centos         base    247 k
 squid                           i686   7:3.1.10-29.el6           base    1.7 M
 sssd                            i686   1.11.6-30.el6             base     88 k
 sssd-client                     i686   1.11.6-30.el6             base    128 k
 strace                          i686   4.5.19-1.19.el6           base    169 k
 sudo                            i686   1.8.6p3-15.el6            base    697 k
 sysstat                         i686   9.0.4-27.el6              base    226 k
 system-config-firewall          noarch 1.2.27-7.1.el6            base    121 k
 system-config-firewall-base     noarch 1.2.27-7.1.el6            base    433 k
 system-config-firewall-tui      noarch 1.2.27-7.1.el6            base     39 k
 system-config-kdump             noarch 2.0.5-18.el6              base    454 k
 system-config-keyboard          i686   1.3.1-6.el6               base     33 k
 system-config-keyboard-base     i686   1.3.1-6.el6               base     96 k
 systemtap-runtime               i686   2.5-5.el6                 base    199 k
 telnet                          i686   1:0.17-48.el6             base     57 k
 telnet-server                   i686   1:0.17-48.el6             base     37 k
 tigervnc-server-module          i686   1.1.0-16.el6              base    214 k
 trace-cmd                       i686   1.0.5-11.el6              base     98 k
 tzdata                          noarch 2014i-1.el6               updates 450 k
 tzdata-java                     noarch 2014i-1.el6               updates 176 k
 udev                            i686   147-2.57.el6              base    357 k
 util-linux-ng                   i686   2.17.2-12.18.el6          base    1.6 M
 valgrind                        i686   1:3.8.1-3.7.el6           base     30 M
 vte                             i686   0.25.1-9.el6              base    354 k
 vte-devel                       i686   0.25.1-9.el6              base    213 k
 webkitgtk                       i686   1.4.3-8.el6               base    6.4 M
 wget                            i686   1.12-5.el6                base    483 k
 wireshark                       i686   1.8.10-8.el6_6            updates  10 M
 wireshark-devel                 i686   1.8.10-8.el6_6            updates 905 k
 wireshark-gnome                 i686   1.8.10-8.el6_6            updates 843 k
 xcb-util                        i686   0.3.6-5.el6               base     25 k
 xkeyboard-config                noarch 2.11-1.el6                base    749 k
 xml-common                      noarch 0.6.3-33.el6              base     18 k
 xorg-x11-apps                   i686   7.7-6.el6                 base    271 k
 xorg-x11-drv-acecad             i686   1.5.0-7.el6               base     15 k
 xorg-x11-drv-aiptek             i686   1.4.1-5.el6               base     19 k
 xorg-x11-drv-apm                i686   1.2.5-10.el6              base     24 k
 xorg-x11-drv-ast                i686   0.98.0-1.el6              base     36 k
 xorg-x11-drv-ati                i686   7.3.99-2.el6              base    154 k
 xorg-x11-drv-ati-firmware       noarch 7.3.99-2.el6              base    903 k
 xorg-x11-drv-cirrus             i686   1.5.2-2.el6               base     34 k
 xorg-x11-drv-dummy              i686   0.3.6-15.el6              base     14 k
 xorg-x11-drv-elographics        i686   1.4.1-3.el6               base     14 k
 xorg-x11-drv-evdev              i686   2.8.2-4.el6               base     42 k
 xorg-x11-drv-fbdev              i686   0.4.3-16.el6              base     18 k
 xorg-x11-drv-fpit               i686   1.4.0-6.el6               base     14 k
 xorg-x11-drv-geode              i686   2.11.15-1.el6             base    119 k
 xorg-x11-drv-glint              i686   1.2.8-10.el6              base     58 k
 xorg-x11-drv-hyperpen           i686   1.4.1-5.el6               base     14 k
 xorg-x11-drv-i128               i686   1.3.6-10.el6              base     29 k
 xorg-x11-drv-i740               i686   1.3.4-11.el6              base     27 k
 xorg-x11-drv-intel              i686   2.99.911-6.el6            base    604 k
 xorg-x11-drv-keyboard           i686   1.8.0-1.el6               base     17 k
 xorg-x11-drv-mach64             i686   6.9.4-8.el6               base     70 k
 xorg-x11-drv-mga                i686   1.6.3-5.el6               base     75 k
 xorg-x11-drv-modesetting        i686   0.8.0-14.el6              base     26 k
 xorg-x11-drv-mouse              i686   1.9.0-1.el6               base     32 k
 xorg-x11-drv-mutouch            i686   1.3.0-5.el6               base     14 k
 xorg-x11-drv-neomagic           i686   1.2.7-7.el6               base     33 k
 xorg-x11-drv-nouveau            i686   1:1.0.10-1.el6            base     88 k
 xorg-x11-drv-nv                 i686   2.1.20-5.el6              base     80 k
 xorg-x11-drv-openchrome         i686   0.3.3-6.el6               base    162 k
 xorg-x11-drv-penmount           i686   1.5.0-5.el6               base     13 k
 xorg-x11-drv-qxl                i686   0.1.1-15.el6              base     91 k
 xorg-x11-drv-r128               i686   6.9.1-8.el6               base     39 k
 xorg-x11-drv-rendition          i686   4.2.5-10.el6              base     25 k
 xorg-x11-drv-s3virge            i686   1.10.6-10.el6             base     38 k
 xorg-x11-drv-savage             i686   2.3.7-2.el6               base     50 k
 xorg-x11-drv-siliconmotion      i686   1.7.7-9.el6               base     54 k
 xorg-x11-drv-sis                i686   0.10.7-10.el6             base    241 k
 xorg-x11-drv-sisusb             i686   0.9.6-10.el6              base     43 k
 xorg-x11-drv-synaptics          i686   1.7.6-1.el6               base     72 k
 xorg-x11-drv-tdfx               i686   1.4.5-10.el6              base     32 k
 xorg-x11-drv-trident            i686   1.3.6-10.el6              base     58 k
 xorg-x11-drv-v4l                i686   0.2.0-36.el6              base     19 k
 xorg-x11-drv-vesa               i686   2.3.2-15.el6              base     22 k
 xorg-x11-drv-vmmouse            i686   13.0.0-2.el6              base     18 k
 xorg-x11-drv-vmware             i686   13.0.1-9.el6              base     33 k
 xorg-x11-drv-void               i686   1.4.0-23.el6              base     13 k
 xorg-x11-drv-voodoo             i686   1.2.5-10.el6              base     19 k
 xorg-x11-drv-wacom              i686   0.23.0-4.el6              base    257 k
 xorg-x11-drv-xgi                i686   1.6.0-20.20121114git.el6  base    120 k
 xorg-x11-glamor                 i686   0.6.0-5.20140506gitf78901e.el6
                                                                  base    100 k
 xorg-x11-proto-devel            noarch 7.7-9.el6                 base    286 k
 xorg-x11-server-Xephyr          i686   1.15.0-22.el6.centos      base    891 k
 xorg-x11-server-Xorg            i686   1.15.0-22.el6.centos      base    1.3 M
 xorg-x11-server-common          i686   1.15.0-22.el6.centos      base     49 k
 xorg-x11-server-source          noarch 1.15.0-22.el6.centos      base    2.4 M
 xorg-x11-server-utils           i686   7.7-2.el6                 base    151 k
 xz                              i686   4.999.9-0.5.beta.20091007git.el6
                                                                  base    137 k
 xz-libs                         i686   4.999.9-0.5.beta.20091007git.el6
                                                                  base     94 k
 xz-lzma-compat                  i686   4.999.9-0.5.beta.20091007git.el6
                                                                  base     16 k
 yum                             noarch 3.2.29-60.el6.centos      base    1.0 M
 yum-plugin-fastestmirror        noarch 1.1.30-30.el6             base     31 k
 yum-plugin-security             noarch 1.1.30-30.el6             base     41 k
 yum-utils                       noarch 1.1.30-30.el6             base    110 k
Installing for dependencies:
 gdk-pixbuf2                     i686   2.24.1-5.el6              base    498 k
 gdk-pixbuf2-devel               i686   2.24.1-5.el6              base    188 k
 glib-networking                 i686   2.28.6.1-2.2.el6          base     66 k
 google-crosextra-caladea-fonts  noarch 1.002-0.3.20130214.el6.1  base     92 k
 google-crosextra-carlito-fonts  noarch 1.103-0.1.20130920.el6.1  base    941 k
 libbasicobjects                 i686   0.1.1-11.el6              base     21 k
 python-sssdconfig               noarch 1.11.6-30.el6             base    120 k
 sssd-ad                         i686   1.11.6-30.el6             base    141 k
 sssd-common-pac                 i686   1.11.6-30.el6             base    120 k
 sssd-ipa                        i686   1.11.6-30.el6             base    193 k
 sssd-krb5                       i686   1.11.6-30.el6             base    110 k
 sssd-krb5-common                i686   1.11.6-30.el6             base    158 k
 sssd-ldap                       i686   1.11.6-30.el6             base    166 k
 sssd-proxy                      i686   1.11.6-30.el6             base    115 k
 xcb-util-image                  i686   0.3.9-4.el6               base     12 k
 xcb-util-keysyms                i686   0.3.9-5.el6               base    9.0 k
 xcb-util-wm                     i686   0.3.9-5.el6               base     23 k

Transaction Summary
================================================================================
Install      20 Package(s)
Upgrade     465 Package(s)

Total download size: 564 M
Is this ok [y/N]: 

CenTos下配置OpenVPN时无法导入用户私钥的解决方法

星期一, 九月 1st, 2014

原创内容,转载请注明出处:http://www.myzhenai.com.cn/post/1860.html http://www.myzhenai.com/thread-16312-1-1.html
前些天遇到一个问题,不知道为什么我配置的Pptpd和OpenVPN都无法连接了,不知道是不是BuyVM升级了OpenVZ补丁所至,反正是两种VPN方法都无法连接了,我重装了几遍始终解决不了,因些还与BuyVM的技术客服-jessie沟通了好几天,我把服务器上的CenTos5.8升级到了CenTos6.4,并且-jessie帮我重新布署了Pptp和OpenVPN,但是最后我配置本地的时候却还是发现无法连接,于是我又将服务器重装了,重装安装和配置了Pptpd和OpenVPN,最后我发现Pptpd无法连接是我本地客户端的问题,可能系统缓存了什么错误的密码或是其他东西,我重新配置后可以了,详情可以参考Centos下PPtpD本地无法连接的解决方法,最烦人的是OpenVPN的配置,在本地CenTos+NetworkManager-openvpn里却看不到用户私钥文件,但是这个文件我已经从服务器上下载到本地了,始终无法导入用户密钥文件,我以为是服务器上生成的key文件有问题,还在本地进行了生成,但还是无法解决,这个问题我问了好多社区,并且在一些Linux技术群里询问都得不到解决方法.搜索网络上也找不到相应的问题,所以只好自己折腾,经过两天的折腾,终于解决了,故障发生原因我不知道,可能是easy-rsa文件包里的openssl生成密钥文件的时候加密过程中发生了什么,所以无法正常导入.
Centos下PPtpD本地无法连接的解决方法:http://www.myzhenai.com/thread-16309-1-1.html http://www.myzhenai.com.cn/post/1854.html

CenTos 配置 OpenVPN  导入 用户 私钥 解决 方法

CenTos下配置OpenVPN时无法导入用户私钥的解决方法


解决方法:
请先参考以下《Centos VPS安装Pptp和OpenVpn的方法与经验分享》这个文章配置,可以突略过安装部份
Centos VPS安装Pptp和OpenVpn的方法与经验分享:http://www.myzhenai.com/thread-15394-1-1.html http://www.myzhenai.com.cn/post/871.html

#cd /etc/openvpn/easy-rsa/2.0/
#vi vars
#./vars
#. ./vars
#./clean-all
#./build-ca
#./build-key-server server
#./build-key client-name
#./build-dh
#cd keys
#openssl rsa -in keys/client-name.key -out keys/client-name.pem
#cp ca.crt ca.key ta.key dh2048.pem server.crt server.csr server.key /etc/openvpn/
#mkdir /etc/client
#cp ca.crt ca.key ta.key client-name.crt client-name.csr client-name.key client-name.pem /etc/client/

在vi vars这一步的时候切记看一看配置文件里的export KEY_SIZE=后边的值是2048还是1024,server.conf里的dh dh****.pem要与你生成的dh文件名一致,如果export KEY_SIZE=2048的话,生成的文件应该是dh2048.pem,可能是加密的方式,所以你的server.conf里也要把dh dh1024.pem改成dh dh2048.pem.
我看到官方文档好像说把server.conf里的;client-to-client前边的分号;去掉就能解决无法看到client-name.key文件的问题,我没试过,您可以试一试.我使用的是利用openssh重新加密把client-name.key生成client-name.pem.我试过可以解决问题.

CenTos 配置 OpenVPN 无法 导入 用户 私钥 解决 方法

CenTos下配置OpenVPN时无法导入用户私钥的解决方法


CenTos 配置 OpenVPN 无法导入 用户 私钥 解决 方法

CenTos下配置OpenVPN时无法导入用户私钥的解决方法


CenTos 配置 OpenVPN 无法导入 用户 私钥 解决 方法

CenTos下配置OpenVPN时无法导入用户私钥的解决方法


CenTos 配置 OpenVPN 无法导入 用户 私钥 解决 方法

CenTos下配置OpenVPN时无法导入用户私钥的解决方法


如果你配置完本地客户端后发现能连接上但是却上不了网,并且vi /var/log/messages本地日志里发现以下关键字的话,请调整你本地openvpn的配置,我说的是NetworkManager-openvpn里的安全性配置.

Aug 31 12:54:55 JiaYuBlog openvpn[12354]: 112.67.216.135:43944 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Aug 31 12:54:55 JiaYuBlog openvpn[12354]: 112.67.216.135:43944 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Aug 31 12:54:55 JiaYuBlog openvpn[12354]: 112.67.216.135:43944 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Aug 31 12:54:55 JiaYuBlog openvpn[12354]: 112.67.216.135:43944 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Aug 31 12:54:55 JiaYuBlog openvpn[12354]: 112.67.216.135:43944 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Aug 31 12:54:55 JiaYuBlog openvpn[12354]: 112.67.216.135:43944 [client-name] Peer Connection Initiated with [AF_INET]112.67.216.135:43944
Aug 31 12:54:55 JiaYuBlog openvpn[12354]: client-name/112.67.216.135:43944 MULTI_sva: pool returned IPv4=10.8.0.6, IPv6=(Not enabled)
Aug 31 12:54:55 JiaYuBlog openvpn[12354]: client-name/112.67.216.135:43944 MULTI: Learn: 10.8.0.6 -> client-name/112.67.216.135:43944
Aug 31 12:54:55 JiaYuBlog openvpn[12354]: client-name/112.67.216.135:43944 MULTI: primary virtual IP for client-name/112.67.216.135:43944: 10.8.0.6
Aug 31 12:54:57 JiaYuBlog openvpn[12354]: client-name/112.67.216.135:43944 PUSH: Received control message: 'PUSH_REQUEST'
Aug 31 12:54:57 JiaYuBlog openvpn[12354]: client-name/112.67.216.135:43944 send_push_reply(): safe_cap=940
Aug 31 12:54:57 JiaYuBlog openvpn[12354]: client-name/112.67.216.135:43944 SENT CONTROL [client-name]: 'PUSH_REPLY,route 192.168.10.0 255.255.255.0,dhcp-option DNS 8.8.8.8,dhcp-option DNS 8.8.4.4,route 10.8.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.8.0.6 10.8.0.5' (status=1)
Aug 31 12:59:00 JiaYuBlog openvpn[12354]: client-name/112.67.216.135:43944 [client-name] Inactivity timeout (--ping-restart), restarting
Aug 31 12:59:00 JiaYuBlog openvpn[12354]: client-name/112.67.216.135:43944 SIGUSR1[soft,ping-restart] received, client-instance restarting
CenTos 配置 OpenVPN 无法 导入 用户 私钥 解决 方法

CenTos下配置OpenVPN时无法导入用户私钥的解决方法

linux pptp客户端无法链接的解决方法

星期三, 一月 23rd, 2013

原创内容,转载请注明出处:http://www.myzhenai.com/thread-15408-1-1.html http://www.myzhenai.com.cn/post/891.html
前些时候自己配置的一台pptp客户端无法连接了,具体症状是本地建立PPTP连接后点击连接无反应或出错.

#vi /var/log/messages

*查看系统错误报告,报告显示如下

Jan 22 19:09:40 localhost nautilus: [N-A] Nautilus-Actions Menu Extender 2.30.3 initializing...
Jan 22 19:09:45 localhost NetworkManager[2007]: <info> (eth0): device state change: 8 -> 3 (reason 0)
Jan 22 19:09:45 localhost NetworkManager[2007]: </info><info> (eth0): deactivating device (reason: 0).
Jan 22 19:09:45 localhost pppd[2023]: Terminating on signal 15
Jan 22 19:09:45 localhost pppd[2023]: Connect time 0.5 minutes.
Jan 22 19:09:45 localhost pppd[2023]: Sent 2408 bytes, received 4087 bytes.
Jan 22 19:09:45 localhost NetworkManager[2007]: </info><info> Activation (eth0) starting connection 'ADSL'
Jan 22 19:09:45 localhost NetworkManager[2007]: </info><info> (eth0): device state change: 3 -> 4 (reason 0)
Jan 22 19:09:45 localhost NetworkManager[2007]: </info><info> Activation (eth0) Stage 1 of 5 (Device Prepare) scheduled...
Jan 22 19:09:45 localhost NetworkManager[2007]: </info><info> Activation (eth0) Stage 1 of 5 (Device Prepare) started...
Jan 22 19:09:45 localhost NetworkManager[2007]: </info><info> Activation (eth0) Stage 2 of 5 (Device Configure) scheduled...
Jan 22 19:09:45 localhost NetworkManager[2007]: </info><info> Activation (eth0) Stage 1 of 5 (Device Prepare) complete.
Jan 22 19:09:45 localhost NetworkManager[2007]: </info><info> Activation (eth0) Stage 2 of 5 (Device Configure) starting...
Jan 22 19:09:45 localhost NetworkManager[2007]: </info><info> (eth0): device state change: 4 -> 5 (reason 0)
Jan 22 19:09:45 localhost NetworkManager[2007]: </info><info> Activation (eth0) Stage 2 of 5 (Device Configure) successful.
Jan 22 19:09:45 localhost NetworkManager[2007]: </info><info> Activation (eth0) Stage 3 of 5 (IP Configure Start) scheduled.
Jan 22 19:09:45 localhost NetworkManager[2007]: </info><info> Activation (eth0) Stage 2 of 5 (Device Configure) complete.
Jan 22 19:09:45 localhost NetworkManager[2007]: </info><info> Activation (eth0) Stage 3 of 5 (IP Configure Start) started...
Jan 22 19:09:45 localhost NetworkManager[2007]: </info><info> (eth0): device state change: 5 -> 7 (reason 0)
Jan 22 19:09:45 localhost NetworkManager[2007]: </info><info> starting PPP connection
Jan 22 19:09:45 localhost dbus: [system] Rejected send message, 2 matched rules; type="error", sender=":1.1" (uid=0 pid=2007 comm="NetworkManager) interface="(unset)" member="(unset)" error name="org.freedesktop.DBus.Error.UnknownMethod" requested_reply=0 destination=":1.6" (uid=0 pid=2023 comm="/usr/sbin/pppd))
Jan 22 19:09:45 localhost dbus: [system] Rejected send message, 2 matched rules; type="error", sender=":1.1" (uid=0 pid=2007 comm="NetworkManager) interface="(unset)" member="(unset)" error name="org.freedesktop.DBus.Error.UnknownMethod" requested_reply=0 destination=":1.6" (uid=0 pid=2023 comm="/usr/sbin/pppd))
Jan 22 19:09:45 localhost pppd[3126]: Warning: can't open options file /root/.ppprc: Permission denied
Jan 22 19:09:45 localhost pppd[3126]: Plugin rp-pppoe.so loaded.
Jan 22 19:09:45 localhost pppd[3126]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.5
Jan 22 19:09:45 localhost NetworkManager[2007]: </info><info> pppd started with pid 3126
Jan 22 19:09:45 localhost NetworkManager[2007]: </info><info> Activation (eth0) Stage 3 of 5 (IP Configure Start) complete.
Jan 22 19:09:45 localhost pppd[3126]: Plugin /usr/lib/pppd/2.4.5/nm-pppd-plugin.so loaded.
Jan 22 19:09:45 localhost dbus: [system] Rejected send message, 2 matched rules; type="error", sender=":1.1" (uid=0 pid=2007 comm="NetworkManager) interface="(unset)" member="(unset)" error name="org.freedesktop.DBus.Error.UnknownMethod" requested_reply=0 destination=":1.6" (uid=0 pid=2023 comm="/usr/sbin/pppd))
Jan 22 19:09:45 localhost pppd[2023]: Connection terminated.
Jan 22 19:09:45 localhost dbus: [system] Rejected send message, 2 matched rules; type="error", sender=":1.1" (uid=0 pid=2007 comm="NetworkManager) interface="(unset)" member="(unset)" error name="org.freedesktop.DBus.Error.UnknownMethod" requested_reply=0 destination=":1.6" (uid=0 pid=2023 comm="/usr/sbin/pppd))
Jan 22 19:09:45 localhost pppd[3126]: pppd 2.4.5 started by root, uid 0
Jan 22 19:09:45 localhost dbus: [system] Rejected send message, 2 matched rules; type="error", sender=":1.1" (uid=0 pid=2007 comm="NetworkManager) interface="(unset)" member="(unset)" error name="org.freedesktop.DBus.Error.UnknownMethod" requested_reply=0 destination=":1.6" (uid=0 pid=2023 comm="/usr/sbin/pppd))
Jan 22 19:09:45 localhost pppd[3126]: PPP session is 9892
Jan 22 19:09:45 localhost pppd[3126]: Connected to 00:46:4b:ad:da:b6 via interface eth0
Jan 22 19:09:45 localhost pppd[3126]: Using interface ppp0
Jan 22 19:09:45 localhost pppd[3126]: Connect: ppp0 < --> eth0
Jan 22 19:09:45 localhost pppd[2023]: Exit.
Jan 22 19:09:45 localhost pppd[3126]: Remote message: Authentication success,Welcome!
Jan 22 19:09:45 localhost pppd[3126]: PAP authentication succeeded
Jan 22 19:09:45 localhost pppd[3126]: peer from calling number 00:46:4B:AD:DA:B6 authorized
Jan 22 19:09:45 localhost pppd[3126]: local  IP address 112.66.50.113
Jan 22 19:09:45 localhost pppd[3126]: remote IP address 112.66.50.1
Jan 22 19:09:45 localhost pppd[3126]: primary   DNS address 202.100.199.8
Jan 22 19:09:45 localhost pppd[3126]: secondary DNS address 202.100.192.68
Jan 22 19:09:45 localhost NetworkManager[2007]: </info><info> PPP manager(IP Config Get) reply received.
Jan 22 19:09:45 localhost NetworkManager[2007]: </info><info> Activation (eth0) Stage 4 of 5 (IP4 Configure Get) scheduled...
Jan 22 19:09:45 localhost NetworkManager[2007]: </info><info> Activation (eth0) Stage 4 of 5 (IP4 Configure Get) started...
Jan 22 19:09:45 localhost NetworkManager[2007]: </info><info> Activation (eth0) Stage 5 of 5 (IP Configure Commit) scheduled...
Jan 22 19:09:45 localhost NetworkManager[2007]: </info><info> Activation (eth0) Stage 4 of 5 (IP4 Configure Get) complete.
Jan 22 19:09:45 localhost NetworkManager[2007]: </info><info> Activation (eth0) Stage 5 of 5 (IP Configure Commit) started...
Jan 22 19:09:46 localhost NetworkManager[2007]: </info><info> (eth0): device state change: 7 -> 8 (reason 0)
Jan 22 19:09:46 localhost NetworkManager[2007]: </info><info> Policy set 'ADSL' (ppp0) as default for IPv4 routing and DNS.
Jan 22 19:09:46 localhost NetworkManager[2007]: </info><info> Activation (eth0) successful, device activated.
Jan 22 19:09:46 localhost NetworkManager[2007]: </info><info> Activation (eth0) Stage 5 of 5 (IP Configure Commit) complete.
Jan 22 19:09:47 localhost tpvmlpd2[3198]: device type not supported
Jan 22 19:09:50 localhost NetworkManager[2007]: </info><info> Starting VPN service 'org.freedesktop.NetworkManager.pptp'...
Jan 22 19:09:50 localhost NetworkManager[2007]: </info><info> VPN service 'org.freedesktop.NetworkManager.pptp' started (org.freedesktop.NetworkManager.pptp), PID 3200
Jan 22 19:09:50 localhost NetworkManager[2007]: </info><info> VPN service 'org.freedesktop.NetworkManager.pptp' appeared, activating connections
Jan 22 19:09:50 localhost NetworkManager[2007]: </info><info> VPN plugin state changed: 1
Jan 22 19:09:50 localhost NetworkManager[2007]: </info><info> VPN plugin state changed: 3
Jan 22 19:09:50 localhost NetworkManager[2007]: </info><info> VPN connection 'PPTP' (Connect) reply received.
Jan 22 19:09:50 localhost NetworkManager[2007]: <warn> VPN connection 'PPTP' failed to connect: 'No VPN secrets!'.
Jan 22 19:09:50 localhost NetworkManager[2007]: </warn><warn> error disconnecting VPN: Could not process the request because no VPN connection was active.
Jan 22 19:09:50 localhost NetworkManager[2007]: <info> Policy set 'ADSL' (ppp0) as default for IPv4 routing and DNS.
Jan 22 19:10:02 localhost tpvmlpd2[3223]: device type not supported
Jan 22 19:10:17 localhost tpvmlpd2[3227]: device type not supported
Jan 22 19:10:32 localhost tpvmlpd2[3231]: device type not supported
Jan 22 19:10:47 localhost tpvmlpd2[3235]: device type not supported
</info></warn></info>

原本以为是服务器端的问题,也曾怀疑过是高墙的原因,甚至还以为是Centos6.3系统的问题,后来在一些朋友的提醒下才知道,原来是自己的加密协议有问题,不是服务器端,不是本地系统的问题.
如图设置即可
Screenshot
Screenshot-1
Screenshot-2
Screenshot-3

Centos6+GNOME+NetworkManager配置VPN客户端

星期五, 九月 21st, 2012

转载请注明出处:http://www.myzhenai.com/thread-15104-1-1.html http://www.myzhenai.com.cn/post/767.html
我的系统配置是Centos6+GNOME+NetworkManager,为了一个VPN终端,我是折腾了好久了,命令行下的折腾好了,却发现NetworkManager却始终无法正常使用.可以新建VPN链接,但无法使用,无法新建pptp通道协议VPN.原来是NetworkManager-vpnc,NetworkManager-pptp,NetworkManager-openvpn这三个插件无法安装,Centos的依赖太严格了,提示少了libnm-util.so.2,libgdk-3.so.0,libnm-glib.so.4,libnm_glib_vpn.so.0,libnm_glib.so.0,libnm-util.so.2,libgdk-3.so.0,libgtk-3.so.0等依赖包.折腾了好久才折腾好,不过是换了个方式解决的.
执行终端程序,输入以下代码.

#su root #切换到超级管理员权限帐户
#yum -y install ppp
#yum -y install pptp
#yum -y install vpnc
#yum -y install openvpn

配置文件

#vi /etc/ppp/chap-secrets
——————————————
# Secrets for authentication using CHAP
# client    server    secret            IP addresses

username myvpn “password” *
——————————————

#注释,IP addresses替换成你的VPNIP地址,myvpn替换成你的VPN用户名(不是帐号用户名),password替换成你的VPN密码.

#vi /etc/ppp/peers/myvpn
——————————————
# written by pptpsetup
pty “pptp  vpnserverip –nolaunchpppd”
lock
#noauth
nobsdcomp
nodeflate
name username
remotename myvpn
ipparam myvpn
require-mppe-128
refuse-pap
refuse-chap
refuse-eap
refuse-mschap
——————————————
#pptpsetup --create CentosVPN --server VPNIP --username VPNname --password VPNpassword

#注释,vpnserverip和VPNIP替换成你的VPNIP,username和VPNname替换成你的VPN用户名,myvpn替换成上边你的VPN用户名.VPNpassword替换成你的VPN密码

#cp /usr/share/doc/ppp-2.4.4/scripts/pon /usr/sbin/
#cp /usr/share/doc/ppp-2.4.4/scripts/poff /usr/sbin/
#chmod +x /usr/sbin/pon /usr/sbin/poff

启动VPN

#pon myvpn
#pppd call CentosVPN

断开VPN

#poff myvpn
#killall pppd

#注释,如果以上安装不能进行的话,请执行以下这两步再返回重复进行一遍操作.

#rpm -ivh http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm
#rpm -ivh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
#yum install pptp NetworkManager-pptp -y

#如果上条命令无效,可以尝试下边的命令

#yum install pptp -y
#wget http://dl.fedoraproject.org/pub/epel/6/i386/NetworkManager-pptp-0.8.0-1.git20100411.el6.i686.rpm
#yum install NetworkManager-pptp-0.8.0-1.git20100411.el6.i686.rpm

Centos6安装epel源:http://pkgs.org/#centos-6-rhel-6

#wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm
#rpm -Uvh epel-release-6-7.noarch.rpm
#/etc/init.d/network-manager restart

如果是GNOME桌面环境并使用NetworkManager网络链接程序的话,可以下载安装以下几个NetworkManager插件,这个也可以做到以图形界面使用VPN链接.

#yum install NetworkManager-vpnc NetworkManager-pptp NetworkManager-openvpn
#rpm -ivh http://mirrors.163.com/fedora/releases/17/Everything/i386/os/Packages/n/NetworkManager-vpnc-0.9.3.997-1.fc17.i686.rpm
#rpm -ivh http://mirrors.163.com/fedora/releases/17/Everything/i386/os/Packages/n/NetworkManager-pptp-0.9.3.997-1.fc17.i686.rpm
#rpm -ivh http://mirrors.163.com/fedora/releases/17/Everything/i386/os/Packages/n/NetworkManager-openvpn-0.9.3.997-1.fc17.i686.rpm

最主要的是之前安装Epel更新源
http://rpmfusion.org/Configuration

#rpm -ivh http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm
#wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm
#rpm -Uvh epel-release-6-7.noarch.rpm
#/etc/init.d/network-manager restart

然后在执行安装命令的时候在后边加上一个米号*会自动安装系统里缺少的依赖包.
例如

#yum -y install ppp*
#yum -y install pptp*
#yum -y install vpnc*
#yum -y install openvpn*
#yum install pptp NetworkManager-pptp* -y
#yum install pptp NetworkManager-vpnc* -y
#yum install pptp NetworkManager-openvpn* -y
#yum install NetworkManager-vpnc NetworkManager-pptp NetworkManager-openvpn