You are not logged in.

#1 2019-09-11 21:37:44

erfanjoker
Member
From: Tabriz / Iran
Registered: 2017-03-26
Posts: 75
Website

Hostapd problem in configuring interface [SOLVED]

It seems like hostapd is having trouble configuring interface for AP, it creates an AP with my given SSID but is unconnectable from other devices and on devices it results wrong password.

here is my hostapd configuration file :

interface=wlp3s0b1
bridge=br0

# SSID to be used in IEEE 802.11 management frames
ssid=ErfanXD
# Driver interface type (hostap/wired/none/nl80211/bsd)
driver=nl80211
# Country code (ISO/IEC 3166-1)
country_code=US

# Operation mode (a = IEEE 802.11a (5 GHz), b = IEEE 802.11b (2.4 GHz)
hw_mode=g
# Channel number
channel=7
# Maximum number of stations allowed
max_num_sta=5

# Bit field: bit0 = WPA, bit1 = WPA2
wpa=2
# Bit field: 1=wpa, 2=wep, 3=both
auth_algs=1

# Set of accepted cipher suites
rsn_pairwise=CCMP
# Set of accepted key management algorithms
wpa_key_mgmt=WPA-PSK
wpa_passphrase=erfanxyz

# hostapd event logger configuration
logger_stdout=-1
logger_stdout_level=2

# Uncomment and modify the following section if your device supports 802.11n
## Enable 802.11n support
#ieee80211n=1
## QoS support
#wmm_enabled=1
## Use "iw list" to show device capabilities and modify ht_capab accordingly
#ht_capab=[HT40+][SHORT-GI-40][TX-STBC][RX-STBC1][DSSS_CCK-40]

until this point no hostapd service is started and you can get my journal in this link

now i start the hostapd and get the status below :

● hostapd.service - Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
   Loaded: loaded (/usr/lib/systemd/system/hostapd.service; disabled; vendor preset: disabled)
   Active: active (running) since Thu 2019-09-12 02:02:42 +0430; 5s ago
 Main PID: 2655 (hostapd)
    Tasks: 1
   Memory: 2.1M
   CGroup: /system.slice/hostapd.service
           └─2655 /usr/bin/hostapd /etc/hostapd/hostapd.conf

Sep 12 02:02:42 erfan systemd[1]: Started Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator.
Sep 12 02:02:42 erfan hostapd[2655]: Configuration file: /etc/hostapd/hostapd.conf
Sep 12 02:02:42 erfan hostapd[2655]: wlp3s0b1: interface state UNINITIALIZED->COUNTRY_UPDATE
Sep 12 02:02:47 erfan hostapd[2655]: Using interface wlp3s0b1 with hwaddr 74:e5:43:57:b0:70 and ssid "ErfanXD"
Sep 12 02:02:47 erfan hostapd[2655]: wlp3s0b1: interface state COUNTRY_UPDATE->ENABLED
Sep 12 02:02:47 erfan hostapd[2655]: wlp3s0b1: AP-ENABLED

and here is journal for hostapd :

-- Reboot --
Sep 12 02:02:42 erfan systemd[1]: Started Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator.
Sep 12 02:02:42 erfan hostapd[2655]: Configuration file: /etc/hostapd/hostapd.conf
Sep 12 02:02:42 erfan hostapd[2655]: wlp3s0b1: interface state UNINITIALIZED->COUNTRY_UPDATE
Sep 12 02:02:47 erfan hostapd[2655]: Using interface wlp3s0b1 with hwaddr 74:e5:43:57:b0:70 and ssid "ErfanXD"
Sep 12 02:02:47 erfan hostapd[2655]: wlp3s0b1: interface state COUNTRY_UPDATE->ENABLED
Sep 12 02:02:47 erfan hostapd[2655]: wlp3s0b1: AP-ENABLED

Last edited by erfanjoker (2019-09-13 09:11:16)

Offline

#2 2019-09-12 00:42:32

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 22,175
Website

Re: Hostapd problem in configuring interface [SOLVED]

Can you please specify the commands that generated each of the journal outputs?

Why does your complete journal not contain the content from "journal for hostapd" which would presumably be from grepping the journal?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2019-09-12 00:47:05

loqs
Member
Registered: 2014-03-06
Posts: 8,833

Re: Hostapd problem in configuring interface [SOLVED]

What is creating br0?

Offline

#4 2019-09-12 09:00:06

erfanjoker
Member
From: Tabriz / Iran
Registered: 2017-03-26
Posts: 75
Website

Re: Hostapd problem in configuring interface [SOLVED]

Trilby wrote:

Can you please specify the commands that generated each of the journal outputs?

yes ofcourse, this is the command for journaling before starting the hostapd service :

sudo journalctl -b

and this is the journal command i used to get hostapd :

sudo journalctl -efu hostapd
Trillby wrote:

Why does your complete journal not contain the content from "journal for hostapd" which would presumably be from grepping the journal?

Because i havn't enabled hostapd service and it doesnt start automatically, i could start it and get journal

loqs wrote:

What is creating br0?

i have no idea about this, but im using tor (enabled service) and a pptp vpn which i think these may have impact on br0 creation

Last edited by erfanjoker (2019-09-12 09:02:37)

Offline

#5 2019-09-12 09:10:24

loqs
Member
Registered: 2014-03-06
Posts: 8,833

Re: Hostapd problem in configuring interface [SOLVED]

erfanjoker wrote:
loqs wrote:

What is creating br0?

i have no idea about this, but im using tor (enabled service) and a pptp vpn which i think these may have impact on br0 creation

Software access point Bridge setup

Offline

#6 2019-09-12 12:16:23

erfanjoker
Member
From: Tabriz / Iran
Registered: 2017-03-26
Posts: 75
Website

Re: Hostapd problem in configuring interface [SOLVED]

loqs wrote:

What is creating br0?

actually, i have no br0 by default, i have configured hostapd to create br0

Offline

#7 2019-09-12 12:45:40

loqs
Member
Registered: 2014-03-06
Posts: 8,833

Re: Hostapd problem in configuring interface [SOLVED]

erfanjoker wrote:

actually, i have no br0 by default, i have configured hostapd to create br0

Software access point Bridge setup

wiki wrote:

Bridge setup

You need to create a network bridge and add your network interface (e.g. eth0) to it. You should not add the wireless device (e.g. wlan0) to the bridge; hostapd will add it on its own.

The wiki is incorrect?

Offline

#8 2019-09-13 09:10:25

erfanjoker
Member
From: Tabriz / Iran
Registered: 2017-03-26
Posts: 75
Website

Re: Hostapd problem in configuring interface [SOLVED]

Problem Solved by using Create_AP script

Offline

Board footer

Powered by FluxBB