惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

G
Google Developers Blog
Google DeepMind News
Google DeepMind News
Hugging Face - Blog
Hugging Face - Blog
D
Docker
F
Fortinet All Blogs
博客园 - 三生石上(FineUI控件)
Project Zero
Project Zero
Engineering at Meta
Engineering at Meta
J
Java Code Geeks
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Simon Willison's Weblog
Simon Willison's Weblog
S
Security Affairs
NISL@THU
NISL@THU
T
Tor Project blog
A
About on SuperTechFans
宝玉的分享
宝玉的分享
腾讯CDC
S
Schneier on Security
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
P
Privacy & Cybersecurity Law Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Stack Overflow Blog
Stack Overflow Blog
P
Privacy International News Feed
雷峰网
雷峰网
C
Cyber Attacks, Cyber Crime and Cyber Security
Vercel News
Vercel News
Cisco Talos Blog
Cisco Talos Blog
D
DataBreaches.Net
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Google Online Security Blog
Google Online Security Blog
Recorded Future
Recorded Future
L
LINUX DO - 热门话题
Microsoft Security Blog
Microsoft Security Blog
Latest news
Latest news
C
Check Point Blog
有赞技术团队
有赞技术团队
T
The Exploit Database - CXSecurity.com
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
云风的 BLOG
云风的 BLOG
SecWiki News
SecWiki News
Application and Cybersecurity Blog
Application and Cybersecurity Blog
爱范儿
爱范儿
月光博客
月光博客
V
Vulnerabilities – Threatpost
T
Threat Research - Cisco Blogs
P
Palo Alto Networks Blog
T
The Blog of Author Tim Ferriss
C
Cisco Blogs
Webroot Blog
Webroot Blog
S
Security @ Cisco Blogs

博客园 - 封封

.net解决数据导出excel时的格式问题 用户中心 - 博客园 呼出窗口 gvim的查找替换 windows下GVim的块选择方式 PDF Xchange Pro 3.6.0120的注册码 Commons-logging + Log4j入门指南 如何用Maven来管理Java项目的Library 用户中心 - 博客园 非常好的Struts2.0 Blog 破解JIRA3.3 标准展BOM语句 [摘]Hibernate 与 SQL Server BLOB Subversion的权限控制 IBatis.NET 与 FireBird2.0的问题 浅谈.NET中的版本管理 FireBird 1.5 Quick Start Log4Net使用指南 Excel SP2 分类汇总的总计错乱问题
Linux通过802.1X认证
封封 · 2007-08-17 · via 博客园 - 封封

Linux通过802.1X认证

关键字:Linux, Fedora, 802.1X, MD5

背景

      安装好Linux后由于我们公司的网络有802.1X的MD5认证,所以本文描述如何配置系统以通过认证.

摘要

      本文描述通过安装Xsupplicant软件包使Linux通过802.1X的MD5认证.

内容

首先下载文件 xsupplicant-1.2.8.tar.gz(http://open1x.sourceforge.net/)

解压

tar zxvf xsupplicant-1.2.8.tar.gz

进入解压后生成的目录

./configure

这时候开始报错,原因是没有libiw.h这个文件。

到安装光盘找了半天也没找到,干脆,自己下载编译安装(Linux下最好的安装软件方式就是下载源代码自己编译安装)

http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html中下载最新版本.

解压到任意目录(我这边将其解压到了/opt目录下)

进入解压后的目录,运行make然后运行make install

这时再次到xsupplicant目录下运行./configure,还是报找不到libiw.h的错误

网上搜索了一番,找到了解决方案:

修改/usr/include/linux/wireless.h文件,在里边加上#include <linux/if.h>这一行.

继续到xsupplicant目录下运行./configure

这下一切OK.

接着就是

make

make 的时候也会报错,缺少linux/compiler.h这个文件。没关系,可以在系统的 /usr/src/kernels/2.6.21-1.3194.fc7-i686/include/linux目录下找到,找到这个文件cp到FC7的 /usr/include/linux目录下就搞定了。

然后make install

xsupplicant就安装到系统中了。

配置xsupplicant

在解压xsupplicant-1.2.8.tar.gz的位置,xsupplicant-1.2.8.tar.gz默认解压后的文件夹名叫 xsupplicant-1.2.8,里面有个etc的文件夹,找到里面的 xsupplicant.conf文件,这个就是xsupplicant的配置文件了。

1、把这个配置文件cp到 /etc下,xspplicant运行时会默认调用这个配置文件。

2、编辑这个配置文件,两种方法:

    1)将空的default配置块删除,改下面的my_network为default。

    2)或者在default中加入:

    allow_types = all

    identity = yourid

    eap-md5 {

        username = "windy xu" (这边需要加引号,因为有空格)

        password = "windy xu’s password"(最好也加上引号)

    }

3、把eap-md5部分中的username password的值改成你的用户名密码。

4、执行以下命令:

#/usr/local/sbin/xsupplicant -i eth0

#/sbin/dhclient eth0(可能之前要killall dhclient)

至此已正式通过802.1x认证,可以正常上网了。

总结

      之前下载了两个其他的802.1x认证程序,结果都因为我们的NT帐号有空格,导致Username被截取而不能通过认证,只有文中的这个软件可以将username用双引号包起来.