Friday, October 25, 2013

configure LINUX to be an access point

1- install hostapd
# apt-get install hostapd

2- configure hostpad
  ++
 root@localhost# cat /etc/default/hostapd
# Defaults for hostapd initscript
#
# See /usr/share/doc/hostapd/README.Debian for information about alternative
# methods of managing hostapd.
#
# Uncomment and set DAEMON_CONF to the absolute path of a hostapd configuration
# file and hostapd will be started during system boot. An example configuration
# file can be found at /usr/share/doc/hostapd/examples/hostapd.conf.gz
#
#DAEMON_CONF=""

# Additional daemon options to be appended to hostapd command:-
#     -d   show more debug messages (-dd for even more)
#     -K   include key data in debug messages
#     -t   include timestamps in some debug messages
#
# Note that -B (daemon mode) and -P (pidfile) options are automatically
# configured by the init.d script and must not be added to DAEMON_OPTS.
#
#DAEMON_OPTS=""
DAEMON_CONF="/etc/hostapd/hostapd.conf"




++
root@localhost# cat /etc/hostapd/hostapd.conf
interface=wlan0
driver=nl80211
ssid=tsest
hw_mode=g
channel=1
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wep_key0=1234567890
#wpa=3
#wpa_passphrase=1234567890
#wpa_key_mgmt=WPA-PSK
#wpa_pairwise=TKIP
#rsn_pairwise=CCMP


3- start service hostapd
root@localhost# service hostapd start
or using command
root@localhost#hostapd /etc/hostapd/hostapd.conf



No comments:

Post a Comment