Buat Hostpot di Slackware +DHCP Server

Assalamu Alaikum wr.wb
to the point mo the…
untuk membangun Hostpot dapat slackware tercinta kita membutuhkan Program pendukung
1). dhcpd
2). hostapd
membuat hostpot pada Linux slackware, terlebih dahulu kita configurasi dhcpd server dan hostapd
step 1
configurasi dhcpd.conf

root@vim-n4n0~# cd /usr/doc/dhcp-4.1.1/examples/
root@vim-n4n0~# cp dhcpd.conf /etc/dhcpd.conf
root@vim-n4n0~# nano /etc/dhcpd.conf
code :
option domain-name-servers 192.168.0.1;
default-lease-time 600;
max-lease-time 7200;
ddns-update-style none;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.100 192.168.0.254;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
}

step 2
install hostapd
untuk mendapatkan hostapd disini
configurasi pada hostapd.conf

root@vim-n4n0~# nano /etc/hostapd/hostapd.conf

code :

interface=wlan0
driver=nl80211
ssid=slax
country_code=ID
hw_mode=g
channel=1
auth_algs=1
ignore_broadcast_ssid=0
wpa=3
wpa_passphrase=slackw4r3
wpa_pairwise=TKIP
rsn_pairwise=CCMP

setelah config step1 dan step2 kita jalankan dhcp && hostapd

root@vim-n4n0~# hostapd –help
hostapd v0.6.10
User space daemon for IEEE 802.11 AP management,
IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Copyright (c) 2002-2009, Jouni Malinen and contributors
usage: hostapd [-hdBKtv] [-P ]
options:
-h show this usage
-d show more debug messages (-dd for even more)
-B run daemon in the background
-P PID file
-K include key data in debug messages
-t include timestamps in some debug messages
-v show hostapd version

root@vim-n4n0~# hostapd -B -P /var/run/hostapd.pid /etc/hostapd/hostapd.conf
root@vim-n4n0~# dhcpd –help
Internet Systems Consortium DHCP Server 4.1.1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
Usage: dhcpd [-p ] [-f] [-d] [-q] [-t|-T]
[-4|-6] [-cf config-file] [-lf lease-file]
[-tf trace-output-file]
[-play trace-input-file]
[-pf pid-file] [-s server] [if0 [...ifN]]
root@vim-n4n0~# dhcpd -cf /etc/dhcpd.conf wlan0

setelah menjalankan dhcp server & hostapd cek pada client.
dan apabila ada error seperti ini

Internet Systems Consortium DHCP Server 4.1.1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
+++Can’t open lease database /var/state/dhcp/dhcpd.leases: No such file or directory –+++

menandakan tidak ada file pada directory /var/state/dhcp/dhcpd.leases
buatkan file pada directory tersebut.

root@vim-n4n0~# touch /var/state/dhcp/dhcpd.leases

setelah mengatasi error yg muncul maka jalankan kembali dhcp server dan hostapd Nya…hehehe :D
Goodluck
Author : vim-n4n0

About these ads

Leave a Reply

Please log in using one of these methods to post your comment:

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