- 论坛徽章:
- 0
|
我的毕设题目是基于linux的无线接入点实现
OS:CentOS4.2,,用来做软AP的网卡是TPLWN550G,是r5212的,,我用madwifi做驱动,并测试成功。
我用brctl将ath0口与eth0口桥接成br0,IP为192.168.1.1
具体是这样的 认证者 认证服务器
MADWIFI+HOSTAPD freeRadius
二者是在同一台机子上的,,使用的是eap-tls
在clients.conf里面将AP的地址设为192.168.1.1,,
hostapd.confi里将认证服务器地址设为127.0.0.1,现在将客户端IP设成192.168.1.2,,已能认证上去,并显示已连接,,但不知道为啥就是PING不通网桥,,看hostapd的debut信息可以发现,客户端连上认证后,立即就丢失连接,,不知道为什么,,另外一个奇怪的地方是,用iwconfig查看,显示的RATE是0Mbit/s,hostapd也显示不支持的频道,,,详见下面debug的红字部分
而且若在BR0口上启用DHCP的话,客户端是获取不到IP地址的,,,
下面给出我的radiusd和hostapd的debug信息,大家帮我分析一下,多谢了,,附件内为我的eap.conf,radiusd.conf,,users.hostapd.conf
#radius log
Starting - reading configuration files ...
reread_config: reading radiusd.conf
Config: including file: /usr/local/etc/raddb/proxy.conf
Config: including file: /usr/local/etc/raddb/clients.conf
Config: including file: /usr/local/etc/raddb/snmp.conf
Config: including file: /usr/local/etc/raddb/eap.conf
Config: including file: /usr/local/etc/raddb/sql.conf
main: prefix = "/usr/local"
main: localstatedir = "/usr/local/var"
main: logdir = "/usr/local/var/log/radius"
main: libdir = "/usr/local/lib"
main: radacctdir = "/usr/local/var/log/radius/radacct"
main: hostname_lookups = no
main: max_request_time = 30
main: cleanup_delay = 5
main: max_requests = 1024
main: delete_blocked_requests = 0
main: port = 0
main: allow_core_dumps = no
main: log_stripped_names = no
main: log_file = "/usr/local/var/log/radius/radius.log"
main: log_auth = no
main: log_auth_badpass = no
main: log_auth_goodpass = no
main: pidfile = "/usr/local/var/run/radiusd/radiusd.pid"
main: user = "(null)"
main: group = "(null)"
main: usercollide = no
main: lower_user = "no"
main: lower_pass = "no"
main: nospace_user = "no"
main: nospace_pass = "no"
main: checkrad = "/usr/local/sbin/checkrad"
main: proxy_requests = yes
proxy: retry_delay = 5
proxy: retry_count = 3
proxy: synchronous = no
proxy: default_fallback = yes
proxy: dead_time = 120
proxy: post_proxy_authorize = no
proxy: wake_all_if_all_dead = no
security: max_attributes = 200
security: reject_delay = 1
security: status_server = yes
main: debug_level = 0
read_config_files: reading dictionary
read_config_files: reading naslist
Using deprecated naslist file. Support for this will go away soon.
read_config_files: reading clients
read_config_files: reading realms
radiusd: entering modules setup
Module: Library search path is /usr/local/lib
Module: Loaded exec
exec: wait = yes
exec: program = "(null)"
exec: input_pairs = "request"
exec: output_pairs = "(null)"
exec: packet_type = "(null)"
rlm_exec: Wait=yes but no output defined. Did you mean output=none?
Module: Instantiated exec (exec)
Module: Loaded expr
Module: Instantiated expr (expr)
Module: Loaded PAP
pap: encryption_scheme = "crypt"
pap: auto_header = yes
Module: Instantiated pap (pap)
Module: Loaded CHAP
Module: Instantiated chap (chap)
Module: Loaded MS-CHAP
mschap: use_mppe = yes
mschap: require_encryption = no
mschap: require_strong = no
mschap: with_ntdomain_hack = no
mschap: passwd = "(null)"
mschap: ntlm_auth = "(null)"
Module: Instantiated mschap (mschap)
Module: Loaded System
unix: cache = no
unix: passwd = "(null)"
unix: shadow = "(null)"
unix: group = "(null)"
unix: radwtmp = "/usr/local/var/log/radius/radwtmp"
unix: usegroup = no
unix: cache_reload = 600
Module: Instantiated unix (unix)
Module: Loaded eap
eap: default_eap_type = "tls"
eap: timer_expire = 60
eap: ignore_unknown_eap_types = no
eap: cisco_accounting_username_bug = no
tls: rsa_key_exchange = no
tls: dh_key_exchange = yes
tls: rsa_key_length = 512
tls: dh_key_length = 512
tls: verify_depth = 0
tls: CA_path = "(null)"
tls: pem_file_type = yes
tls: private_key_file = "/usr/local/etc/raddb/radius.pem"
tls: certificate_file = "/usr/local/etc/raddb/radius.pem"
tls: CA_file = "/usr/local/etc/raddb/root.pem"
tls: private_key_password = "whatever"
tls: dh_file = "/usr/local/etc/raddb/DH"
tls: random_file = "/usr/local/etc/raddb/random"
tls: fragment_size = 1024
tls: include_length = yes
tls: check_crl = no
tls: check_cert_cn = "(null)"
tls: cipher_list = "(null)"
tls: check_cert_issuer = "(null)"
rlm_eap_tls: Loading the certificate file as a chain
WARNING: rlm_eap_tls: Unable to set DH parameters. DH cipher suites may not work!
WARNING: Fix this by running the OpenSSL command listed in eap.conf
rlm_eap: Loaded and initialized type tls
Module: Instantiated eap (eap)
Module: Loaded preprocess
preprocess: huntgroups = "/usr/local/etc/raddb/huntgroups"
preprocess: hints = "/usr/local/etc/raddb/hints"
preprocess: with_ascend_hack = no
preprocess: ascend_channels_per_line = 23
preprocess: with_ntdomain_hack = no
preprocess: with_specialix_jetstream_hack = no
preprocess: with_cisco_vsa_hack = no
preprocess: with_alvarion_vsa_hack = no
Module: Instantiated preprocess (preprocess)
Module: Loaded realm
realm: format = "suffix"
realm: delimiter = "@"
realm: ignore_default = no
realm: ignore_null = no
Module: Instantiated realm (suffix)
Module: Loaded files
files: usersfile = "/usr/local/etc/raddb/users"
files: acctusersfile = "/usr/local/etc/raddb/acct_users"
files: preproxy_usersfile = "/usr/local/etc/raddb/preproxy_users"
files: compat = "no"
Module: Instantiated files (files)
Module: Loaded Acct-Unique-Session-Id
acct_unique: key = "User-Name, Acct-Session-Id, NAS-IP-Address, Client-IP-Address, NAS-Port"
Module: Instantiated acct_unique (acct_unique)
Module: Loaded detail
detail: detailfile = "/usr/local/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d"
detail: detailperm = 384
detail: dirperm = 493
detail: locking = no
Module: Instantiated detail (detail)
Module: Loaded radutmp
radutmp: filename = "/usr/local/var/log/radius/radutmp"
radutmp: username = "%{User-Name}"
radutmp: case_sensitive = yes
radutmp: check_with_nas = yes
radutmp: perm = 384
radutmp: callerid = yes
Module: Instantiated radutmp (radutmp)
Listening on authentication *:1812
Listening on accounting *:1813
Ready to process requests.
rad_recv: Access-Request packet from host 127.0.0.1:32776, id=0, length=157
User-Name = "liaiqiang"
NAS-IP-Address = 192.168.1.1
NAS-Port = 0
Called-Station-Id = "00-1D-0F-30-4D-BB:eaptest"
Calling-Station-Id = "00-1D-60-B1-AF-8B"
Framed-MTU = 1400
NAS-Port-Type = Wireless-802.11
Connect-Info = "CONNECT 0Mbps 802.11"
EAP-Message = 0x0201000e016c6961697169616e67
Message-Authenticator = 0x2a2996bc0dda8b625e90ee4265e06979
Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 0
modcall[authorize]: module "preprocess" returns ok for request 0
modcall[authorize]: module "chap" returns noop for request 0
modcall[authorize]: module "mschap" returns noop for request 0
rlm_realm: No '@' in User-Name = "liaiqiang", looking up realm NULL
rlm_realm: No such realm "NULL"
modcall[authorize]: module "suffix" returns noop for request 0
rlm_eap: EAP packet type response id 1 length 14
rlm_eap: No EAP Start, assuming it's an on-going EAP conversation
modcall[authorize]: module "eap" returns updated for request 0
users: Matched entry DEFAULT at line 168
users: Matched entry liaiqiang at line 226
modcall[authorize]: module "files" returns ok for request 0
rlm_pap: WARNING! No "known good" password found for the user. Authentication may fail because of this.
modcall[authorize]: module "pap" returns noop for request 0
modcall: leaving group authorize (returns updated) for request 0
rad_check_password: Found Auth-Type EAP
auth: type "EAP"
Processing the authenticate section of radiusd.conf
modcall: entering group authenticate for request 0
rlm_eap: EAP Identity
rlm_eap: processing type tls
rlm_eap_tls: Requiring client certificate
rlm_eap_tls: Initiate
rlm_eap_tls: Start returned 1
modcall[authenticate]: module "eap" returns handled for request 0
modcall: leaving group authenticate (returns handled) for request 0
Sending Access-Challenge of id 0 to 127.0.0.1 port 32776
EAP-Message = 0x010200060d20
Message-Authenticator = 0x00000000000000000000000000000000
State = 0xefc1e00abaf08d878bd0d78b1c2a0b18
Finished request 0
Going to the next request
--- Walking the entire request list ---
Waking up in 6 seconds...
rad_recv: Access-Request packet from host 127.0.0.1:32776, id=1, length=273
User-Name = "liaiqiang"
NAS-IP-Address = 192.168.1.1
NAS-Port = 0
Called-Station-Id = "00-1D-0F-30-4D-BB:eaptest"
Calling-Station-Id = "00-1D-60-B1-AF-8B"
Framed-MTU = 1400
NAS-Port-Type = Wireless-802.11
Connect-Info = "CONNECT 0Mbps 802.11"
EAP-Message = 0x020200700d800000006616030100610100005d03014832d2ff7801067d800efd54b212f7e30a15dd7f86e0ac5864c7395c6ca879ec206ed60f1f24d3b7e266cea31888456e85ad232b06ffac7ad9d99f3f154a8dd8f0001600040005000a000900640062000300060013001200630100
State = 0xefc1e00abaf08d878bd0d78b1c2a0b18
Message-Authenticator = 0xaf7c84ebcba0cb334e7a6780d17fe075
Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 1
modcall[authorize]: module "preprocess" returns ok for request 1
modcall[authorize]: module "chap" returns noop for request 1
modcall[authorize]: module "mschap" returns noop for request 1
rlm_realm: No '@' in User-Name = "liaiqiang", looking up realm NULL
rlm_realm: No such realm "NULL"
modcall[authorize]: module "suffix" returns noop for request 1
rlm_eap: EAP packet type response id 2 length 112
rlm_eap: No EAP Start, assuming it's an on-going EAP conversation
modcall[authorize]: module "eap" returns updated for request 1
users: Matched entry DEFAULT at line 168
users: Matched entry liaiqiang at line 226
modcall[authorize]: module "files" returns ok for request 1
rlm_pap: WARNING! No "known good" password found for the user. Authentication may fail because of this.
modcall[authorize]: module "pap" returns noop for request 1
modcall: leaving group authorize (returns updated) for request 1
rad_check_password: Found Auth-Type EAP
auth: type "EAP"
Processing the authenticate section of radiusd.conf
modcall: entering group authenticate for request 1
rlm_eap: Request found, released from the list
rlm_eap: EAP/tls
rlm_eap: processing type tls
rlm_eap_tls: Authenticate
rlm_eap_tls: processing TLS
rlm_eap_tls: Length Included
eaptls_verify returned 11
(other): before/accept initialization
TLS_accept: before/accept initialization
rlm_eap_tls: <<< TLS 1.0 Handshake [length 0061], ClientHello
TLS_accept: SSLv3 read client hello A
rlm_eap_tls: >>> TLS 1.0 Handshake [length 004a], ServerHello
TLS_accept: SSLv3 write server hello A
rlm_eap_tls: >>> TLS 1.0 Handshake [length 0552], Certificate
TLS_accept: SSLv3 write certificate A
rlm_eap_tls: >>> TLS 1.0 Handshake [length 0071], CertificateRequest
TLS_accept: SSLv3 write certificate request A
TLS_accept: SSLv3 flush data
TLS_accept: Need to read more data: SSLv3 read client certificate A
In SSL Handshake Phase
In SSL Accept mode
eaptls_process returned 13
modcall[authenticate]: module "eap" returns handled for request 1
modcall: leaving group authenticate (returns handled) for request 1
Sending Access-Challenge of id 1 to 127.0.0.1 port 32776
EAP-Message = 0x0103040a0dc00000061c160301004a0200004603014832d2abe8c9e85bc0cfed5d4896c7371323f55af6b127afede3c6f25a1ba5a4202e5013218084ddbf4f2f223f313e2d3d07940be5af3deeb8e16a8e8e459a9ce400040016030105520b00054e00054b00024e3082024a308201b3a003020102020101300d06092a864886f70d01010405003060310b300906035504061302434e310f300d0603550408130646756a69616e310f300d060355040713065869616d656e310c300a060355040a13034a4d55310d300b060355040b13043034313131123010060355040313096c6961697169616e67301e170d3038303531393131333832375a170d30
EAP-Message = 0x39303531393131333832375a305d310b300906035504061302434e310f300d0603550408130646756a69616e310f300d060355040713065869616d656e310c300a060355040a13034a4d55310d300b060355040b130430343131310f300d0603550403130672616469757330819f300d06092a864886f70d010101050003818d0030818902818100d47d235280cede142872c8a2eafb339fcfc0690c387fde10514691b280b9617ec74bdea39ef7dd925d97fd16e9596e0141b26d27e2bfe4f534a39cf36e288ab344fa8eb03881b22287b48a338bb14a8f4acbe1ed2174b5ea5c45ba6274d10888786b255ead2e012b76c332b7974a78b8c6eee7e397
EAP-Message = 0x716001d067e3dfb0cfb0b10203010001a317301530130603551d25040c300a06082b06010505070301300d06092a864886f70d01010405000381810060dda8f8976050c711eb900a672e57fc4a1260ff8b603a85f7c7d3ef44d2fef9e37c9f18f56869d1c44f566d4e02bbb1a161a186b76e5f49fb8ab709df39d9e22670c1f8c3986bf83fc0bf5962e9d61dd2ca50eb309aa49031f3913af983a4724e61914af06ed63ea36c704fc239c00c8e78830c651fe7b50baaf75f4b99a3ab0002f7308202f33082025ca003020102020100300d06092a864886f70d01010405003060310b300906035504061302434e310f300d0603550408130646756a6961
EAP-Message = 0x6e310f300d060355040713065869616d656e310c300a060355040a13034a4d55310d300b060355040b13043034313131123010060355040313096c6961697169616e67301e170d3038303531393131333535345a170d3038303631383131333535345a3060310b300906035504061302434e310f300d0603550408130646756a69616e310f300d060355040713065869616d656e310c300a060355040a13034a4d55310d300b060355040b13043034313131123010060355040313096c6961697169616e6730819f300d06092a864886f70d010101050003818d0030818902818100c44738fe7ca0999e8cef48e6b6a3c79ae74944656efce3835e5e57
EAP-Message = 0x465ce4f05150140140cf1c1088276d5bc1067b810a52
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x73461179ce92d4cb3e3fd02df2fb8fd3
Finished request 1
Going to the next request
Waking up in 6 seconds...
rad_recv: Access-Request packet from host 127.0.0.1:32776, id=2, length=167
User-Name = "liaiqiang"
NAS-IP-Address = 192.168.1.1
NAS-Port = 0
Called-Station-Id = "00-1D-0F-30-4D-BB:eaptest"
Calling-Station-Id = "00-1D-60-B1-AF-8B"
Framed-MTU = 1400
NAS-Port-Type = Wireless-802.11
Connect-Info = "CONNECT 0Mbps 802.11"
EAP-Message = 0x020300060d00
State = 0x73461179ce92d4cb3e3fd02df2fb8fd3
Message-Authenticator = 0xdbe238a2eb51cfdd3eaab919fa88f8c6
Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 2
modcall[authorize]: module "preprocess" returns ok for request 2
modcall[authorize]: module "chap" returns noop for request 2
modcall[authorize]: module "mschap" returns noop for request 2
rlm_realm: No '@' in User-Name = "liaiqiang", looking up realm NULL
rlm_realm: No such realm "NULL"
modcall[authorize]: module "suffix" returns noop for request 2
rlm_eap: EAP packet type response id 3 length 6
rlm_eap: No EAP Start, assuming it's an on-going EAP conversation
modcall[authorize]: module "eap" returns updated for request 2
users: Matched entry DEFAULT at line 168
users: Matched entry liaiqiang at line 226
modcall[authorize]: module "files" returns ok for request 2
rlm_pap: WARNING! No "known good" password found for the user. Authentication may fail because of this.
modcall[authorize]: module "pap" returns noop for request 2
modcall: leaving group authorize (returns updated) for request 2
rad_check_password: Found Auth-Type EAP
auth: type "EAP"
Processing the authenticate section of radiusd.conf
modcall: entering group authenticate for request 2
rlm_eap: Request found, released from the list
rlm_eap: EAP/tls
rlm_eap: processing type tls
rlm_eap_tls: Authenticate
rlm_eap_tls: processing TLS
rlm_eap_tls: Received EAP-TLS ACK message
rlm_eap_tls: ack handshake fragment handler
eaptls_verify returned 1
eaptls_process returned 13
modcall[authenticate]: module "eap" returns handled for request 2
modcall: leaving group authenticate (returns handled) for request 2
Sending Access-Challenge of id 2 to 127.0.0.1 port 32776
EAP-Message = 0x010402260d800000061c1e39aa2e53984350d3da4afa502e511d8fffc273a7b37a554794e9cc5336d5b0d28cb7fe4af9a84eee470ba060c942d0a684ff437c6ffe239623eab16697ae1601a1b14f110f351d9e31ae6edc8d470203010001a381bc3081b9301d0603551d0e04160414a83e1a397a9bd42ea1d22389e7fc8195be0377013081890603551d23048181307f8014a83e1a397a9bd42ea1d22389e7fc8195be037701a164a4623060310b300906035504061302434e310f300d0603550408130646756a69616e310f300d060355040713065869616d656e310c300a060355040a13034a4d55310d300b060355040b1304303431313112301006
EAP-Message = 0x0355040313096c6961697169616e67820100300c0603551d13040530030101ff300d06092a864886f70d010104050003818100b00fa2b3e9b6c60bd446a687e9031488cf7bcb3ff59077f6091b67d485c0e753a5c3c7b73c3094d4bc7d37b2aa3b2d65b964a2a292e34874b3b600f4f995f4b89e4b73d13ac685491eb229fe1b62ecb65c5b156df5d8eea7fe17429869faa96f7353c986cde1169742437ae141a24c52ba3f027cda139838a6a864c5fe845f9e16030100710d000069020102006400623060310b300906035504061302434e310f300d0603550408130646756a69616e310f300d060355040713065869616d656e310c300a060355040a
EAP-Message = 0x13034a4d55310d300b060355040b13043034313131123010060355040313096c6961697169616e670e000000
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x6f1a7a29b6a93cb85187980d10f49af2
Finished request 2
Going to the next request
[ 本帖最后由 bryant24_li 于 2008-5-21 15:50 编辑 ] |
|