Oto skrypty:
hostapd.conf
Kod: Zaznacz cały
interface=ath0
#bridge=br0
driver=madwifi
# show verbose output
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
debug=4
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=DebianServer
eapol_key_index_workaround=0
eap_server=0
wpa=1
#wpa_psk_file=/etc/hostapd/wpa_psk
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
wpa_passphrase=XXX
Kod: Zaznacz cały
#!/bin/sh
# load madwifi
modprobe ath_pci
modprobe wlan_scan_sta
modprobe ath_rate_sample
modprobe wlan
modprobe ath_hal
# set up wifi interface
ifconfig wifi0 up
# set card into AP mode
wlanconfig ath0 destroy
wlanconfig ath0 create wlandev wifi0 wlanmode ap
ifconfig ath0 0.0.0.0
ifconfig eth0 0.0.0.0
# create bridge
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 ath0
ifconfig br0 192.168.1.1 up