Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dipendenza circolare net.wlan0 e hostapd
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
sacchi
Tux's lil' helper
Tux's lil' helper


Joined: 28 May 2004
Posts: 92

PostPosted: Mon Dec 25, 2017 11:33 pm    Post subject: dipendenza circolare net.wlan0 e hostapd Reply with quote

Ciao a tutti,

dopo diversi mesi che non aggiornavo una macchina gentoo x64 che da anni mi fa da router e da ap, l'ho fatto (e mi ha aggiornato un botto di pacchetti, oltre a gcc) ed è successo un patatrac...
Ora l'ap non va. In lan tutto ok.

Ho questi errori:

Code:
/etc/init.d/hostapd start
 * Bringing up interface wlan0
 *   Configuring wireless network for wlan0
 *   Please use hostapd to make this interface an access point
 *   Failed to configure wireless for wlan0
 * ERROR: net.wlan0 failed to start
 * ERROR: cannot start hostapd as net.wlan0 would not start

/etc/init.d/net.wlan0 start
 * Bringing up interface wlan0
 *   Configuring wireless network for wlan0
 *   Please use hostapd to make this interface an access point
 *   Failed to configure wireless for wlan0
 * ERROR: net.wlan0 failed to start


Se però configuro manualmente l'ip della wifi e lancio a mano hostapd tutto funziona:
Code:
ifconfig wlan0 192.168.2.254/24 up
hostapd /etc/hostapd/hostapd.conf


Nel log non trovo nulla di rilevante.

Qualcuno sa darmi una dritta, per cortesia?
Molte grazie!

PS: posto i file di configurazione, anche se non credo abbiano problemi visto che a manazza va tutto....

/etc/hostapd/hostapd.conf
Code:
interface=wlan0
driver=nl80211
ctrl_interface=/var/run/hostapd
ssid=TuxServer
country_code=BO
hw_mode=g
channel=12
auth_algs=3
wpa=3
wpa_pairwise=CCMP
rsn_pairwise=CCMP
wpa_key_mgmt=WPA-PSK
wpa_psk_file=/etc/hostapd/hostapd.wpa_psk
#rsn_preauth=1

logger_syslog=1
logger_syslog_level=0
logger_stdout=-1
logger_stdout_level=1


/etc/conf.d/net
Code:
[...]
config_wlan0="192.168.2.254 netmask 255.255.255.0 brd 192.168.2.255"
channel_wlan0="5"
essid_wlan0="TuxServer"
mode_wlan0="master"
modules_wlan0="ifconfig !iwconfig !wpa_supplicant"
[...]
Back to top
View user's profile Send private message
oscarandrea
Apprentice
Apprentice


Joined: 27 Nov 2015
Posts: 182
Location: Italy/Cosenza

PostPosted: Tue Dec 26, 2017 2:03 pm    Post subject: Re: dipendenza circolare net.wlan0 e hostapd Reply with quote

sacchi wrote:
Ciao a tutti,

dopo diversi mesi che non aggiornavo una macchina gentoo x64 che da anni mi fa da router e da ap, l'ho fatto (e mi ha aggiornato un botto di pacchetti, oltre a gcc) ed è successo un patatrac...
Ora l'ap non va. In lan tutto ok.

Ho questi errori:

Code:
/etc/init.d/hostapd start
 * Bringing up interface wlan0
 *   Configuring wireless network for wlan0
 *   Please use hostapd to make this interface an access point
 *   Failed to configure wireless for wlan0
 * ERROR: net.wlan0 failed to start
 * ERROR: cannot start hostapd as net.wlan0 would not start

/etc/init.d/net.wlan0 start
 * Bringing up interface wlan0
 *   Configuring wireless network for wlan0
 *   Please use hostapd to make this interface an access point
 *   Failed to configure wireless for wlan0
 * ERROR: net.wlan0 failed to start


Se però configuro manualmente l'ip della wifi e lancio a mano hostapd tutto funziona:
Code:
ifconfig wlan0 192.168.2.254/24 up
hostapd /etc/hostapd/hostapd.conf


Nel log non trovo nulla di rilevante.

Qualcuno sa darmi una dritta, per cortesia?
Molte grazie!

PS: posto i file di configurazione, anche se non credo abbiano problemi visto che a manazza va tutto....

/etc/hostapd/hostapd.conf
Code:
interface=wlan0
driver=nl80211
ctrl_interface=/var/run/hostapd
ssid=TuxServer
country_code=BO
hw_mode=g
channel=12
auth_algs=3
wpa=3
wpa_pairwise=CCMP
rsn_pairwise=CCMP
wpa_key_mgmt=WPA-PSK
wpa_psk_file=/etc/hostapd/hostapd.wpa_psk
#rsn_preauth=1

logger_syslog=1
logger_syslog_level=0
logger_stdout=-1
logger_stdout_level=1


/etc/conf.d/net
Code:
[...]
config_wlan0="192.168.2.254 netmask 255.255.255.0 brd 192.168.2.255"
channel_wlan0="5"
essid_wlan0="TuxServer"
mode_wlan0="master"
modules_wlan0="ifconfig !iwconfig !wpa_supplicant"
[...]

puoi provare ad avere più info utilizzando -v quando tenti di avviare il servizio, sinceramente non so consiglianti altro.
quindi:
Code:
  /etc/init.d/hostapd -v start

Code:
  /etc/init.d/net.wlan0 -v start 
Back to top
View user's profile Send private message
sacchi
Tux's lil' helper
Tux's lil' helper


Joined: 28 May 2004
Posts: 92

PostPosted: Tue Dec 26, 2017 5:07 pm    Post subject: Re: dipendenza circolare net.wlan0 e hostapd Reply with quote

oscarandrea wrote:

puoi provare ad avere più info utilizzando -v quando tenti di avviare il servizio, sinceramente non so consiglianti altro.
quindi:
Code:
  /etc/init.d/hostapd -v start

Code:
  /etc/init.d/net.wlan0 -v start 


Ciao e grazie!

Allora, con rc-default ho verificato che nel runlevel di default c'era solo hostapd; wlan0 sicuramente veniva richiamato da questo.
Se lo chiamo con -v ottengo:
Code:
/etc/init.d/hostapd start -v
 * Executing: /lib64/rc/sh/openrc-run.sh /lib64/rc/sh/openrc-run.sh /etc/init.d/net.wlan0 start
 * Bringing up interface wlan0
 *   Skipping module adsl due to missing program: /usr/sbin/adsl-start /usr/sbin/pppoe-start
 *   Skipping module netplugd due to missing program: /sbin/netplugd
 *   Skipping module ifplugd due to missing program: /usr/sbin/ifplugd
 *   Skipping module ipppd due to missing program: /usr/sbin/ipppd
 *   Skipping module firewalld due to missing program: firewall-cmd
 *   Skipping module dhclient due to missing program: /sbin/dhclient
 *   Skipping module pump due to missing program: /sbin/pump
 *   Skipping module dhcpcd due to missing program: dhcpcd
 *   Loaded modules: apipa arping bonding l2tp tuntap bridge ccwgroup clip ethtool dummy hsr macvlan macchanger macnet iw ssidnet ifconfig autoipd br2684ctl pppd system vlan udhcpc ip6rd ip6to4
 *   ip link set dev wlan0 up
 *   Configuring wlan0 for MAC address 00:60:B3:52:FB:66 ...                                                                                                                            [ ok ]
 *   Configuring wireless network for wlan0
 *   Please use hostapd to make this interface an access point
 *   Failed to configure wireless for wlan0
 *   ip link set dev wlan0 down
 * ERROR: net.wlan0 failed to start
 * ERROR: cannot start hostapd as net.wlan0 would not start


Provando avviando net.wlan0 (che però magari non è mai funzionato, non avviavo l'AP così):
Code:
/etc/init.d/hostapd start -v
 * Executing: /lib64/rc/sh/openrc-run.sh /lib64/rc/sh/openrc-run.sh /etc/init.d/net.wlan0 start
 * Bringing up interface wlan0
 *   Skipping module adsl due to missing program: /usr/sbin/adsl-start /usr/sbin/pppoe-start
 *   Skipping module netplugd due to missing program: /sbin/netplugd
 *   Skipping module ifplugd due to missing program: /usr/sbin/ifplugd
 *   Skipping module ipppd due to missing program: /usr/sbin/ipppd
 *   Skipping module firewalld due to missing program: firewall-cmd
 *   Skipping module dhclient due to missing program: /sbin/dhclient
 *   Skipping module pump due to missing program: /sbin/pump
 *   Skipping module dhcpcd due to missing program: dhcpcd
 *   Loaded modules: apipa arping bonding l2tp tuntap bridge ccwgroup clip ethtool dummy hsr macvlan macchanger macnet iw ssidnet ifconfig autoipd br2684ctl pppd system vlan udhcpc ip6rd ip6to4
 *   ip link set dev wlan0 up
 *   Configuring wlan0 for MAC address 00:60:B3:52:FB:66 ...                                                                                                                            [ ok ]
 *   Configuring wireless network for wlan0
 *   Please use hostapd to make this interface an access point
 *   Failed to configure wireless for wlan0
 *   ip link set dev wlan0 down
 * ERROR: net.wlan0 failed to start
 * ERROR: cannot start hostapd as net.wlan0 would not start


Non mi pare di vedere nulla che possa aiutare...
Molte grazie!

L
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1008

PostPosted: Tue Dec 26, 2017 8:13 pm    Post subject: Reply with quote

potresti controllare le USE di
net-wireless/hostapd

magari in quella miriade di aggiornamenti , il pacchetto ha subito cambiamenti
_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum