您的位置:首页 > 编程语言 > PHP开发

FTP主动模式/被动模式两种工作模式的对比

2012-09-18 09:41 621 查看
[align=center]Install 802.1x In Fedora[/align]

1.安装 Xsupplicant
download Xsupplicant package from the following url:
http://sourceforge.net/project/showfiles.php?group_id=60236xsupplicant-1.2.8.tar.gz

# cp xsupplicant-1.2.8.tar.gz /tmp/
# cd /tmp/
# tar zxvf xsupplicant-1.2.8.tar.gz
# cd xsupplicant-1.2.8
# ./configure
# make
# make install
2. 获取证书[/b]
# mkdir /certificate
# cp “证书来源路径”/viaroot.pem /certificate
3.配置[/b] Xsupplicant
# vi /etc/xsupplicant.conf
default
{
Identity = “windows AD account
eap-peap {
root_cert = /certificate/viaroot.pem
root_dir = “/certificate”
#cncheck specify ACS server
cncheck = SHOFFICE
cnexact = no
session_resume = no

eap-mschapv2 {
password = “windows AD account’s password
username = windows AD account
}
}
}
4.启动[/b]Xsupplicant
# /usr/local/sbin/xsupplicant –i eth0
# dhclient eth0
5.开机自启动[/b] Xsupplicant[/b]
# vi /etc/init.d/network

#! /bin/bash
#
# network Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
# start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
exit 0
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
. /etc/sysconfig/pcmcia
Fi

# 802.1x start
Xsupplicant –i eth0 #添加此行

# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 0

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

# Even if IPX is configured, without the utilities we can't do much
[ ! -x /sbin/ipx_internal_net -o ! -x /sbin/ipx_configure ] && IPX=

# Even if VLAN is configured, without the utility we can't do much
[ ! -x /sbin/vconfig ] && VLAN=
[/i]
……
End[/b]
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐