2008年10月6日 星期一

redhat 9 - madwifi

madwifi (不知哪個可用)
madwifi-0.9.4-0.1.r2598.rh9.rf.i386.rpm
madwifi-0.9.2.1-2.rh9.rf.i386.rpm
madwifi-0.9.2.1-1.rh9.rf.i386.rpm
madwifi-0.9.2-2.rh9.rf.i386.rpm

安裝時似乎說要先裝dkms !?!?
http://rpm.pbone.net/index.php3/stat/4/idpl/6302610/com/dkms-2.0.17.6-1.rh9.rf.noarch.rpm.html

rpm search

http://rpm.pbone.net/

madwifi - VAPs

VAP = Virtual AP
就是虛擬裝置
可以把一張網卡模擬成很多張 (最多四個!? 不確定)

http://madwifi.org/users-guide/node14.html
裡面就有很多範例

1.
Example:If we wish to use the system as a station only, we would create a single station VAP once the driver is loaded. The following command creates a single station VAP named ath0 on device wifi0:

2.
Example:Now, we wish to create two AP VAPs on device wifi0. Both devices will have a the same MAC address cloned from the underlying device. The first VAP will be ath0 and the second VAP will be ath1.

3.
Example:Now, we wish to create two AP VAPs and one station VAP. The AP VAPs will be ath0 and ath2 and the station VAP will be ath1.

4.
Example:Now, we wish to destroy a VAP (regardless of its operating mode). We assume that there is a VAP named ath0, and it's the one we wish to destroy.


第三個範例 就打
wlanconfig ath create wlandev wifi0 wlanmode ap
wlanconfig ath create wlandev wifi0 wlanmode sta nosbeacon
wlanconfig ath create wlandev wifi0 wlanmode ap

--------------------------------------------------

也可以模仿meraki 兩個master 一個managed 一個monitor

wlanconfig ath create wlandev wifi0 wlanmode ap -bssid
wlanconfig ath create wlandev wifi0 wlanmode sta nosbeacon
wlanconfig ath create wlandev wifi0 wlanmode monitor
wlanconfig ath create wlandev wifi0 wlanmode ap -bssid

--

不過VAP好像不能用 adhoc !?!?

2008年10月5日 星期日

2008年10月4日 星期六

ssh 登入緩慢的問題

http://blog.taiwanpage.com.tw/rssview.html?id=3183 在這邊看到

原來是反查的問題 囧

去修改 /etc/ssh/sshd_config
把UseDNS設為no
接著重新啟動sshd

這樣就解決了 XD

2008年9月29日 星期一

denyhost 解除封鎖的ip

呃 又鎖到自己實驗室的ip了 囧....

在/etc/denyhosts.conf 有相關設定


列一些看起來好像蠻重要的路徑 XD
SECURE_LOG = /var/log/secure
HOSTS_DENY = /etc/hosts.deny
WORK_DIR = /var/lib/denyhosts
LOCK_FILE = /var/lock/subsys/denyhosts
其實上面沒啥意義 XD

------------------------

簡單說 去/etc/hosts.deny裡面
把你要解除的ip資訊砍掉

然後重新啟動denyhosts
service denyhosts restart

這樣就可以收工了 XDD

hyacinth-Debian-ns2.29.tar

http://www.badongo.com/file/11536799

上面是下載連結

--

奇怪 怎麼那多人跟我要這個檔案 囧~~~
(其實也才三人 XD)

不過好像都是大陸的耶....
是那邊的網路問題嗎??

我連都好好的 囧

2008年9月22日 星期一

atheros - madwifi 安裝過程

下載檔案後,解壓縮
make
make install

然後照說明打下面的指令

wlanconfig ath0 destroy

wlanconfig ath0 create wlandev wifi0 wlanmode sta

iwconfig

ifconfig ath0 up

modprobe wlan_scan_sta

wlanconfig ath0 list scan

iwconfig ath0 essid "lab711-bun"

dhclient ath0

自動取得ip後就可以上網了

2008年9月17日 星期三

pcap 和 cap 檔的差異

用wireshark抓下來的檔案 存的時後有這兩個格式

wiki的介紹 http://en.wikipedia.org/wiki/Libpcap

可看這裡
http://www.mail-archive.com/wireshark-users@wireshark.org/msg02095.html

A "pcap file" is normally a capture file in libpcap format.

A "cap file" could be a file with the suffix ".cap", which could be any sort of file (nothing in any operating system enforces a particular file suffix being for a particular file format).

Most ".cap" files are probably capture files in various other formats, including Microsoft Network Monitor format, Windows Sniffer format, etc. - but some people might use ".cap" for libpcap-format capture files.


亂翻:

pcap檔大部分是指
抓下來的capture檔案以libpcap的格式所儲存

cap檔則是capture檔案以很多種格式所儲存
有可能是Microsoft Network Monitor format、Windows Sniffer format...等
也可能是libpcap的格式