Madwifi

From SlackWiki
Jump to navigation Jump to search


Latest CVS is 09-Jul-2005 02:35

Instalsi

Konfigurasi

cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/madwifi \
co madwifi

iwconfig Options

iwconfig --help
Usage: iwconfig interface [essid {NN|on|off}]
                          [nwid {NN|on|off}]
                          [mode {managed|ad-hoc|...}
                          [freq N.NNNN[k|M|G]]
                          [channel N]
                          [sens N]
                          [nick N]
                          [rate {N|auto|fixed}]
                          [rts {N|auto|fixed|off}]
                          [frag {N|auto|fixed|off}]
                          [enc {NNNN-NNNN|off}]
                          [power {period N|timeout N}]
                          [txpower N {mW|dBm}]
                          [commit]
iwconfig ath0 essid ''avalon''
iwconfig ath0 key ''1234567890''
iwconfig ath0 channel ''13''
iwconfig ath0 rate ''10MB''
iwconfig ath0 ap ''11:22:33:44:55:66''

iwlist Options

iwlist --help
Usage: iwlist [interface] frequency
              [interface] channel
              [interface] ap
              [interface] accesspoints
              [interface] peers
              [interface] bitrate
              [interface] rate
              [interface] encryption
              [interface] key
              [interface] power
              [interface] txpower
              [interface] retry
              [interface] scanning

iwpriv Options

iwpriv ath0
ath0      Available private ioctl :
          setoptie         (8BE8) : set 256 byte  & get   0      
          getoptie         (8BE9) : set   0       & get 256 byte 
          setkey           (8BE2) : set  60 byte  & get   0      
          delkey           (8BE4) : set   7 byte  & get   0      
          setmlme          (8BE6) : set  10 byte  & get   0      
          addmac           (8BEA) : set   1 addr  & get   0      
          delmac           (8BEC) : set   1 addr  & get   0      
          chanlist         (8BEE) : set  32 byte  & get   0      
          setparam         (8BE0) : set   2 int   & get   0      
          getparam         (8BE1) : set   1 int   & get   1 int  
          turbo            (0001) : set   1 int   & get   0      
          get_turbo        (0001) : set   0       & get   1 int  
          mode             (0002) : set   1 int   & get   0      
          get_mode         (0002) : set   0       & get   1 int  
          authmode         (0003) : set   1 int   & get   0      
          get_authmode     (0003) : set   0       & get   1 int  
          protmode         (0004) : set   1 int   & get   0
          get_protmode     (0004) : set   0       & get   1 int  
          mcastcipher      (0005) : set   1 int   & get   0      
          get_mcastcipher  (0005) : set   0       & get   1 int  
          mcastkeylen      (0006) : set   1 int   & get   0      
          get_mcastkeylen  (0006) : set   0       & get   1 int  
          ucastciphers     (0007) : set   1 int   & get   0      
          get_uciphers     (0007) : set   0       & get   1 int  
          ucastcipher      (0008) : set   1 int   & get   0      
          get_ucastcipher  (0008) : set   0       & get   1 int  
          ucastkeylen      (0009) : set   1 int   & get   0      
          get_ucastkeylen  (0009) : set   0       & get   1 int  
          keymgtalgs       (0015) : set   1 int   & get   0      
          get_keymgtalgs   (0015) : set   0       & get   1 int  
          rsncaps          (0016) : set   1 int   & get   0      
          get_rsncaps      (0016) : set   0       & get   1 int  
          roaming          (000C) : set   1 int   & get   0      
          get_roaming      (000C) : set   0       & get   1 int  
          privacy          (000D) : set   1 int   & get   0      
          get_privacy      (000D) : set   0       & get   1 int  
          countermeasures  (000E) : set   1 int   & get   0      
          get_countermeas  (000E) : set   0       & get   1 int  
          dropunencrypted  (000F) : set   1 int   & get   0      
          get_dropunencry  (000F) : set   0       & get   1 int  
          wpa              (000A) : set   1 int   & get   0      
          get_wpa          (000A) : set   0       & get   1 int  
          driver_caps      (0010) : set   1 int   & get   0      
          get_driver_caps  (0010) : set   0       & get   1 int  
          maccmd           (0011) : set   1 int   & get   0      
          wme              (0012) : set   1 int   & get   0      
          get_wme          (0012) : set   0       & get   1 int  
          hide_ssid        (0013) : set   1 int   & get   0      
          get_hide_ssid    (0013) : set   0       & get   1 int  
          ap_bridge        (0014) : set   1 int   & get   0      
          get_ap_bridge    (0014) : set   0       & get   1 int  
          inact            (0017) : set   1 int   & get   0      
          get_inact        (0017) : set   0       & get   1 int  
          inact_auth       (0018) : set   1 int   & get   0      
          get_inact_auth   (0018) : set   0       & get   1 int  
          inact_init       (0019) : set   1 int   & get   0      
          get_inact_init   (0019) : set   0       & get   1 int

Locking to a Specific Mode

    * iwpriv ath0 mode 1 To lock to 11a only.
    * iwpriv ath0 mode 2 To lock to 11b only.
    * iwpriv ath0 mode 3 To lock to 11g only.
    * iwpriv ath0 mode 0 (default) autoselect mode.

Changing Authentication Mode.

    * iwpriv ath0 authmode 1 To use open authentication.
    * iwpriv ath0 authmode 2 To use shared key authentication.
    * iwpriv ath0 authmode 3 To use 802.1x authentication.

Manipulating the MAC white/black list

    * iwpriv ath0 maccmd 3 To clear the MAC list.
    * iwpriv ath0 maccmd 1 To make the list a whitelist.
    * iwpriv ath0 maccmd 2 To make the list a blacklist.
    * iwpriv ath0 addmac 00:11:22:33:44:55 To add a mac address to the list.
    * iwpriv ath0 delmac 00:11:22:33:44:55 To delete a mac from the list.

Changing ESSID Visible Mode

    * iwpriv ath0 hide_ssid 0      << ======   To make ESSID visible
    * iwpriv ath0 hide_ssid 1      << ======   To hide ESSID

iwspy Options

iwspy --help
Usage: iwspy interface [+] [MAC address] [IP address]

Contoh

Installing Madwifi on Slackware

Pre Install Steps:

  cd /usr/src/sourcepkg
  wget http://
  cd ..
  tar jxvf sourcepkg/madwifi-current.tar.bz2
  cd madwifi
  make
  make install
  modprobe ath_pci
  lspci | grep ath

Post Install Steps:

  1. After the module is loaded and your ath0 interface is up, run ifconfig and get the MAC address of ath0.
  2. Edit /etc/rc.d/rc.wireless.conf and comment out the section beginnning with “*)”
  3. Below the lines you commented in /etc/rc.d/rc.wireless.conf add something like this:
 00:0F:3D:A9:97:90)
        INFO="D-LINK DWL-G650"
        ESSID="avalon"
        KEY="6281321313252"
        ;;

Your MAC address, ESSID, KEY and info comment are obviously going to be different.

  1. Run “/etc/rc.d/rc.wireless” and then “dhcpcd ath0” which should be enough to get you up and running.
  2. Check your settings if you want “ifconfig” and “iwconfig.”

There are relatively easy ways to get slackware to bring up your interface:

  1. Put an “ifconfig ath0” statement at the bottom of /etc/rc.d/rc.local
  2. update your slackware to slackware-current, our pat has understand what whee need :-)
     upgrade your packages to lates n/tcpip and n/wireless-tools
  3. If you’re using hotplug, you can have it automatically bring up the interface by editing
     /etc/hotplug/net.agent and inserting the following lines in the “case add|register)” branch:
   ath*)
     dhcpcd -n $INTERFACE % If you use dhcp for the interface
     % or if you prefer to just hardcode your interface, put your ifconfig statement here.
     % ifconfig ath0 192.168.1.1 netmask 255.255.255.0 ...
     ;;

In the remove|unregister branch it will automatically bring down dhcpcd if running.

External Links