{"id":638,"date":"2012-08-10T07:44:18","date_gmt":"2012-08-10T07:44:18","guid":{"rendered":"http:\/\/linuxmotto.ir\/blog\/?p=638"},"modified":"2012-08-10T07:45:40","modified_gmt":"2012-08-10T07:45:40","slug":"%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%db%8c-%db%8c%da%a9-access-point","status":"publish","type":"post","link":"https:\/\/linuxmotto.io\/blog\/?p=638","title":{"rendered":"\u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u06cc \u06cc\u06a9 access point"},"content":{"rendered":"<p>\u0647\u062f\u0641 \u0627\u06cc\u0646\u0647 \u06a9\u0647 \u06cc\u06a9 Access point \u0628\u0627 \u0633\u06cc\u0633\u062a\u0645 \u062e\u0648\u062f\u0645 \u0631\u0627\u0647 \u0628\u0646\u062f\u0627\u0632\u0645 \u062a\u0627 \u0647\u0631 \u062a\u0639\u062f\u0627\u062f \u062a\u062c\u0647\u06cc\u0632 \u0628\u06cc \u0633\u06cc\u0645 \u06a9\u0647 \u0644\u0627\u0632\u0645\u0647 \u0628\u0647 \u0633\u06cc\u0633\u062a\u0645 \u0645\u0646 \u0628\u062a\u0648\u0646\u0647 \u0645\u062a\u0635\u0644 \u0628\u0634\u0647. \u062f\u0631 \u0636\u0645\u0646 \u062d\u0627\u0644 \u0648 \u062d\u0648\u0635\u0644\u0647 \u062f\u0631\u062f\u0633\u0631\u0647\u0627\u06cc Ad-hoc \u0631\u0627 \u0646\u062f\u0627\u0634\u062a\u0645 \u0628\u0631\u0627\u06cc \u0647\u0645\u06cc\u0646 \u0631\u0641\u062a\u0645 \u0633\u0631\u0627\u063a \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06cc\u06a9 access point. <!--more--><\/p>\n<p>\u062e\u0648\u0628 \u0642\u0628\u0644 \u0627\u0632 \u0647\u0645\u0647 \u0628\u0633\u062a\u0647 \u0647\u0627\u06cc \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632<\/p>\n<blockquote>\n<p dir=\"ltr\">aptitude install dhcp3-server hostapd<\/p>\n<\/blockquote>\n<p>\u0627\u0632 \u0627\u0633\u0645 \u0628\u0633\u062a\u0647 \u0647\u0627 \u067e\u06cc\u062f\u0627\u0633\u062a \u06cc\u06a9\u06cc \u0627\u0634 dhcp server \u0647\u0633\u062a \u0628\u0631\u0627\u06cc IP \u062f\u0627\u062f\u0646 \u0628\u0647 \u0633\u062e\u062a \u0627\u0641\u0632\u0627\u0631 \u0647\u0627\u06cc \u0628\u06cc \u0633\u06cc\u0645 \u06a9\u0647 \u0628\u0647 \u0633\u06cc\u0633\u062a\u0645 \u0627\u0635\u0644\u06cc \u0648\u0635\u0644 \u0645\u06cc \u0634\u0648\u0646\u062f \u0648 \u062f\u0648\u0645\u06cc \u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u06cc\u06a9 Access point<\/p>\n<p>\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc DHCP Server<br \/>\n\u0645\u0646 \u0631\u0646\u062c \u06f1\u06f4 \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0631\u062f\u0645 \u0648 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u0632\u06cc\u0631 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0645 \u0628\u0647 \u0641\u0627\u06cc\u0644 etc\/dhcp\/dhcpd.conf\/<\/p>\n<blockquote>\n<p dir=\"ltr\">subnet 192.168.14.0 netmask 255.255.255.0 {<br \/>\nrange 192.168.14.10 192.168.14.30;<br \/>\noption domain-name-servers 4.2.2.4;<br \/>\noption routers 192.168.14.1;<br \/>\ndefault-lease-time 600;<br \/>\nmax-lease-time 7200;<br \/>\n}<\/p>\n<\/blockquote>\n<p>\u062e\u0648\u0628 \u0628\u0627\u06cc\u062f \u062f\u0631 \u0641\u0627\u06cc\u0644 etc\/default\/isc-dhcp-server\/ \u0645\u0642\u062f\u0627\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u062a\u0646\u0647\u0627 \u062f\u0631 \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 \u0628\u06cc \u0633\u06cc\u0645 \u0628\u0647 \u062a\u062c\u0647\u06cc\u0632\u0627\u062a \u0622\u06cc \u067e\u06cc \u0628\u062f\u0647<\/p>\n<blockquote>\n<p dir=\"ltr\">INTERFACES=&#8221;wlan0&#8243;<\/p>\n<\/blockquote>\n<p>\u0628\u0631\u0627\u06cc \u0627\u06cc\u0646\u06a9\u0647 \u06a9\u0627\u0631 \u06a9\u0627\u0645\u0644 \u0628\u0634\u0647 \u0628\u0627\u06cc\u062f \u0628\u0647 \u06a9\u0627\u0631\u062a \u0634\u0628\u06a9\u0647 \u0628\u06cc \u0633\u06cc\u0645\u062a\u0648\u0646 \u0622\u062f\u0631\u0633 \u062b\u0627\u0628\u062a \u0628\u062f\u06cc\u062f. \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0645\u0642\u062f\u0627\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0647 \u0641\u0627\u06cc\u0644 etc\/network\/interfaces\/ \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n<blockquote>\n<p dir=\"ltr\">auto wlan0<br \/>\niface wlan0 inet static<br \/>\naddress 192.168.14.1<br \/>\nnetmask 255.255.255.0<\/p>\n<\/blockquote>\n<p>\u062e\u0648\u0628 \u0628\u0639\u062f \u0627\u0632 \u0647\u0645\u0647 \u0627\u06cc\u0646\u0647\u0627 \u0633\u0631\u0648\u06cc\u0633\u0647\u0627\u06cc \u0645\u0631\u0628\u0648\u0637\u0647 \u0631\u0627 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0645\u062c\u062f\u062f \u06a9\u0646\u06cc\u062f<\/p>\n<blockquote>\n<p dir=\"ltr\">\/etc\/init.d\/networking restart<br \/>\n\/etc\/init.d\/isc-dhcp-server restart<\/p>\n<\/blockquote>\n<p>\u0627\u0632 \u0628\u0627\u0644\u0627\u0622\u0645\u062f\u0646 \u06a9\u0627\u0631\u062a \u0634\u0628\u06a9\u0647 \u0628\u06cc \u0633\u06cc\u0645 \u0628\u0627 \u0622\u062f\u0631\u0633 \u062c\u062f\u06cc\u062f \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc hostapd<br \/>\n\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0627\u06cc\u0646 \u0633\u0631\u0648\u06cc\u0633 \u06cc\u0647 \u06a9\u0645 \u067e\u06cc\u0686\u06cc\u062f\u0647 \u0627\u0633\u062a\u060c \u0648\u0644\u06cc \u0627\u06af\u0647 \u06a9\u0627\u0646\u0641\u06cc\u06af\u06cc \u06a9\u0647 \u0645\u06cc \u06af\u0645 \u0631\u0627 \u0628\u0632\u0627\u0631\u06cc\u062f \u062e\u06cc\u0644\u06cc \u0633\u0627\u062f\u0647 \u0645\u06cc \u0634\u0647 \u0632\u06cc\u0627\u062f \u0686\u0648\u0646\u0647 \u0646\u0632\u0646\u06cc\u062f \u0648 \u0627\u06cc\u0646 \u06a9\u0647 \u06af\u0630\u0627\u0634\u062a\u0645 \u0631\u0627 \u0645\u0633\u062a\u0642\u06cc\u0645 \u06a9\u067e\u06cc \u06a9\u0646\u06cc\u062f \ud83d\ude09<\/p>\n<blockquote>\n<p dir=\"ltr\">root@debian:~# vi \/etc\/hostapd\/hostapd.conf<br \/>\ninterface=wlan0<br \/>\ndriver=nl80211<br \/>\nssid=debianap<br \/>\nauth_algs=1<br \/>\nchannel=1<br \/>\nhw_mode=g<\/p>\n<p dir=\"ltr\">wpa=1<br \/>\nwpa_passphrase=behradpass<br \/>\nwpa_key_mgmt=WPA-PSK<br \/>\nwpa_pairwise=TKIP<br \/>\nwpa_pairwise=CCMP<br \/>\nignore_broadcast_ssid=0<\/p>\n<\/blockquote>\n<p>\u06cc\u0647 \u06a9\u0627\u0631 \u062f\u06cc\u06af\u0647 \u0645\u0648\u0646\u062f\u0647 \u0627\u0648\u0646\u0645 \u0627\u06cc\u0646\u06a9\u0647 \u0628\u0647 \u0627\u06cc\u0646 hostapd \u0628\u0641\u0647\u0645\u0648\u0646\u06cc\u062f \u06a9\u0647 \u0641\u0627\u06cc\u0644 \u06a9\u0627\u0646\u0641\u06cc\u06af\u0634 \u06a9\u062c\u0627\u0633\u062a. \u062e\u0648\u0628 \u0641\u0627\u06cc\u0644 etc\/default\/hostapd\/ \u0631\u0627 \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f \u0648 \u0628\u0647 \u0634\u06a9\u0644 \u0632\u06cc\u0631 \u0627\u0635\u0644\u0627\u062d \u06a9\u0646\u06cc\u062f:<\/p>\n<blockquote>\n<p dir=\"ltr\">DAEMON_CONF=&#8221;\/etc\/hostapd\/hostapd.conf&#8221;<\/p>\n<\/blockquote>\n<p>\u0633\u0631\u0648\u06cc\u0633\u0634 \u0631\u0627 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0645\u062c\u062f\u062f \u06a9\u0646\u06cc\u062f \u0648 \u062d\u0627\u0644\u0634\u0648 \u0628\u0628\u0631\u06cc\u062f. \u0645\u0646 \u0628\u0631\u0627\u06cc \u0627\u0634\u062a\u0631\u0627\u06a9 \u0627\u06cc\u0646\u062a\u0631\u062a \u0647\u0645 \u0627\u0632\u0634 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u0645\u060c \u06a9\u0647 \u0627\u0648\u0646 \u06cc\u06a9\u06cc \u0631\u0627 \u062e\u0648\u062f\u062a\u0648\u0646 \u062f\u0631\u0633\u062a\u0634 \u06a9\u0646\u06cc\u062f.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0647\u062f\u0641 \u0627\u06cc\u0646\u0647 \u06a9\u0647 \u06cc\u06a9 Access point \u0628\u0627 \u0633\u06cc\u0633\u062a\u0645 \u062e\u0648\u062f\u0645 \u0631\u0627\u0647 \u0628\u0646\u062f\u0627\u0632\u0645 \u062a\u0627 \u0647\u0631 \u062a\u0639\u062f\u0627\u062f \u062a\u062c\u0647\u06cc\u0632 \u0628\u06cc \u0633\u06cc\u0645 \u06a9\u0647 \u0644\u0627\u0632\u0645\u0647 \u0628\u0647 \u0633\u06cc\u0633\u062a\u0645 \u0645\u0646 \u0628\u062a\u0648\u0646\u0647 \u0645\u062a\u0635\u0644 \u0628\u0634\u0647. \u062f\u0631 \u0636\u0645\u0646 \u062d\u0627\u0644 \u0648 \u062d\u0648\u0635\u0644\u0647 \u062f\u0631\u062f\u0633\u0631\u0647\u0627\u06cc Ad-hoc \u0631\u0627 \u0646\u062f\u0627\u0634\u062a\u0645 \u0628\u0631\u0627\u06cc \u0647\u0645\u06cc\u0646 \u0631\u0641\u062a\u0645 \u0633\u0631\u0627\u063a \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06cc\u06a9 access point.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,12,9,16],"tags":[53,31,54],"class_list":["post-638","post","type-post","status-publish","format-standard","hentry","category-20","category-debian","category-9","category-16","tag-access-point","tag-debian-2","tag-wireless"],"_links":{"self":[{"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=\/wp\/v2\/posts\/638","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=638"}],"version-history":[{"count":2,"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=\/wp\/v2\/posts\/638\/revisions"}],"predecessor-version":[{"id":641,"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=\/wp\/v2\/posts\/638\/revisions\/641"}],"wp:attachment":[{"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=638"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}