發表文章

目前顯示的是 八月, 2012的文章

Regex Cheat Sheet

Linux C function() 參考手册

ACCEL-PPP

Overview -------- The ACCEL-PPP v1.0 is completly new implementation of PPTP/PPPoE/L2TP which was written from scratch. Userspace daemon has its own PPP implementation, so it does not uses pppd and one process (multi-threaded) manages all connections. ACCEL-PPP uses only kernel-mode implementations of pptp/l2tp/pppoe. Features -------- 1. Modular architecture 2. High-performance multi-threaded I/O core 3. Supported PPTP 4. Supported PPPoE (including TR-101 extension) 5. Supported L2TPv2 (without IPsec) 5. Radius authentication/accounting 6. Radius DM/CoA extention 7. Supported authentication types: PAP, CHAP (md5), Microsoft CHAP Extentions (including version 2), not supported - EAP 8. Supported MPPE 9. Compression is not supported 10. Extensible logging engine with per session logging support, implemented log to file, log to remote host and log to PostgreSQL targets 11. Extensible user/password database, implemented Radius, pppd compatible chap-secrets sources 12. Extensi…

Using pppoe kernel-mode, HOW-TO

Linux 無線網路 WEP/WPA 手動設定(iwpriv

from:http://riverhippo.blogspot.tw/2010/07/linux.html
個人用的無線網路的加密大概可分以下幾種:
OPEN/NONE 完全無加密,人人皆可用
OPEN/WEP 使用WEP靜態加密,防君子不防小人
SHARE/WEP 使用WEP靜態加密,防君子不防小人
WPA/TKIP, AES, or TKIP/AES 使用WPA加密,算是比較安全的方式
WPA2/TKIP, AES, or TKIP/AES WPA的升級版
WPAWPA2/TKIP, AES, or TKIP/AES 混合WPA/WPA2的相容模式

以下按設定的分為三種:無加密,WEP靜態加密跟WPA動態加密
無加密(OPEN/NONE)
ifconfig ra0 up
iwpriv ra0 set NetworkType=Infra
iwpriv ra0 set AuthMode=OPEN
iwpriv ra0 set EncrypType=NONE
iwpriv ra0 set SSID="dht"
dhclient ra0

WEP靜態加密
OPEN/WEP
ifconfig ra0 up
iwconfig ra0 essid "dht"
iwconfig ra0 key open
iwconfig ra0 key aabbccddee *注1
iwconfig ra0 mode managed 

SHARE/WEP
killall wpa_supplicant
ifconfig ra0 up
iwconfig ra0 essid "dht"
iwconfig ra0 key restricted
iwconfig ra0 key aabbccddee *注1
iwconfig ra0 mode managed 

*注:加密金鑰的寫法可以是
十六進位表示法(10或者26個十六進位數字):31323334353637383930
ASCII字元表示法(5或13個英文字母):s:1234567890

WPA/WPA2
killall wpa_supplicant
ifconfig ra0 up
wpa_passphrase dht 123456789 > /tmp/wpa.conf *註2
wpa_supplicant -BDwext -ira0 -c/tmp/wpa…