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

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hacker News: Front Page
P
Palo Alto Networks Blog
T
ThreatConnect
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
T
True Tiger Recordings
P
Privacy & Cybersecurity Law Blog
B
Blog
IT之家
IT之家
Last Week in AI
Last Week in AI
F
Full Disclosure
Hacker News: Ask HN
Hacker News: Ask HN
C
Comments on: Blog
Microsoft Azure Blog
Microsoft Azure Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
N
News and Events Feed by Topic
NISL@THU
NISL@THU
腾讯CDC
雷峰网
雷峰网
Security Latest
Security Latest
李成银的技术随笔
M
Microsoft Research Blog - Microsoft Research
L
LangChain Blog
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Check Point Blog
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
博客园 - Franky
N
News | PayPal Newsroom
V
V2EX
A
About on SuperTechFans
The Register - Security
The Register - Security
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google Online Security Blog
Google Online Security Blog
MyScale Blog
MyScale Blog
Cisco Talos Blog
Cisco Talos Blog
Vercel News
Vercel News
WordPress大学
WordPress大学
C
Cyber Attacks, Cyber Crime and Cyber Security
The Hacker News
The Hacker News
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
爱范儿
爱范儿
A
Arctic Wolf
L
LINUX DO - 最新话题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

博客园 - 封封

.net解决数据导出excel时的格式问题 NP - 封封 呼出窗口 - 封封 gvim的查找替换 windows下GVim的块选择方式 PDF Xchange Pro 3.6.0120的注册码 - 封封 Commons-logging + Log4j入门指南 - 封封 如何用Maven来管理Java项目的Library Eclipse中创建Class时自动加上文件头等注释 - 封封 非常好的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用双引号包起来.