Home > Debian > wpa_supplicant in /etc/network/interface

wpa_supplicant in /etc/network/interface

Last time I played with wpa_supplicant I made a piggy script to make it work. It’s quite old now but I did not have time to do it yet. There is a clean way to do it now, using the /etc/network/interface file. Here is an example:

iface ath0 inet dhcp
    pre-up modprobe ath_pci   # workaround for a bug in madwifi
    wpa-driver madwifi
    wpa-ssid blub
    wpa-key-mgmt WPA-PSK
    wpa-psk 5f636389815a69df5053ecca13f1fea31073ead7fb2ac83a41472a6bb4c3eabc
    wpa-proto WPA
    wpa-ap-scan 2
    wpa-pairwise TKIP
    wpa-group TKIP
    post-up /etc/firewall.fw  # an iptables script
    post-down rmmod ath_pci   # workaround for a bug in madwifi
Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: