LINUX.ORG.RU

Линукс не подключается к конкретной сети Wi Fi

 , , ,


0

1

Здравствуйте, господа ЛОРовцы. Собственно сабж: на ноутбуке установлено Gentoo для подключения к сетям Wi Fi используется wpa_supplicant. Проблема в том, что ноутбук не подключается к сетям в конкретном месте (Отель) При этом ноутбук замечательно подключается к например точке доступа, раздаваемой с мобильного устройства, что как бы намекает что с вай фай адаптером в ноуте все в порядке. В свою очередь смартфоны (Андройд) и ноут на винде к сети отеля тоже нормально подключается. Создается ощущение, что роутер отеля тупо распознает и блокирует линуксы (или генты), что тоже странно (тупо Отель частного типа аля гостевой дом).

Как решить проблему, может кто сталкивался? wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
update_config=1

network={
        ssid="HOTEL"    
        psk="very_secret_pass"
        priority=5
}

Вангую что в отеле есть какой-нибудь каптив портал. После подключения надо открыть браузер, постучаться на любой сайт по хттп, авторизоваться в системе отеля, после этого заработает интернет.

slowpony ★★★★★
()

Понаблюдай за «watch ifconfig» на предмет получения ip от роутера, сервера DHCP, при включении wifi на ноуте(кнопкой, через гуй, терминал или ещё что применяешь). Мой wpa_supplicant.conf:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
ap_scan=1
update_config=1

network={
	ssid="HOTEL"
	psk="пароль от твоего хотеля"
	scan_ssid=1
	proto=RSN
	key_mgmt=WPA-PSK
#	group=CCMP TKIP
#	pairwise=CCMP TKIP
	priority=5
}
В dhcpcd.conf пробуй поменять duid(просто закомментируй) на clientid(расскомментируй, уже прописан), мой dhcpcd.conf:
# A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.

# Allow users of this group to interact with dhcpcd via the control socket.
#controlgroup wheel

# Inform the DHCP server of our hostname for DDNS.
hostname

# Use the hardware address of the interface for the Client ID.
#clientid
# or
# Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
# Some non-RFC compliant DHCP servers do not reply with this set.
# In this case, comment out duid and enable clientid above.
duid

# Persist interface configuration when dhcpcd exits.
persistent

# vendorclassid is set to blank to avoid sending the default of
# dhcpcd-<version>:<os>:<machine>:<platform>
vendorclassid

# A list of options to request from the DHCP server.
option domain_name_servers, domain_name, domain_search
option classless_static_routes
# Respect the network MTU. This is applied to DHCP routes.
option interface_mtu

# Request a hostname from the network
option host_name

# Most distributions have NTP support.
option ntp_servers

# Rapid commit support.
# Safe to enable by default because it requires the equivalent option set
# on the server to actually work.
option rapid_commit

# A ServerID is required by RFC2131.
require dhcp_server_identifier

# Generate SLAAC address using the Hardware Address of the interface
#slaac hwaddr
# OR generate Stable Private IPv6 Addresses based from the DUID
slaac private

noarp

spawn_sp ★★★★
()
Ответ на: комментарий от spawn_sp

вывод watch ifconfig:

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 3160  bytes 249748 (243.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3160  bytes 249748 (243.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp3s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 88:9f:fa:19:5f:ed  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

вывод watch iwconfig:

sh: строка 1: iwconfig: команда не найдена
видимо iwconfig у меня нет смена duid на clientid тоже не помогла

Lawyer_Roger
() автор топика
Ответ на: комментарий от spawn_sp

вывод dmesg -wHT

[Чт сен 29 17:52:30 2022] wlp3s0: authenticate with 8a:49:79:46:43:cf
[Чт сен 29 17:52:30 2022] wlp3s0: send auth to 8a:49:79:46:43:cf (try 1/3)
[Чт сен 29 17:52:30 2022] wlp3s0: authenticated
[Чт сен 29 17:52:30 2022] wlp3s0: associate with 8a:49:79:46:43:cf (try 1/3)
[Чт сен 29 17:52:30 2022] wlp3s0: RX AssocResp from 8a:49:79:46:43:cf (capab=0x1431 status=0 aid=1)
[Чт сен 29 17:52:30 2022] wlp3s0: associated
[Чт сен 29 17:52:30 2022] IPv6: ADDRCONF(NETDEV_CHANGE): wlp3s0: link becomes ready
[Чт сен 29 17:52:31 2022] 8021q: 802.1Q VLAN Support v1.8
[Чт сен 29 17:59:01 2022] wlp3s0: deauthenticating from 8a:49:79:46:43:cf by local choice (Reason: 3=DEAUTH_LEAVING)
[Чт сен 29 18:00:02 2022] wlp3s0: authenticate with 8a:49:79:46:43:cf
[Чт сен 29 18:00:02 2022] wlp3s0: send auth to 8a:49:79:46:43:cf (try 1/3)
[Чт сен 29 18:00:02 2022] wlp3s0: authenticated
[Чт сен 29 18:00:02 2022] wlp3s0: associate with 8a:49:79:46:43:cf (try 1/3)
[Чт сен 29 18:00:02 2022] wlp3s0: RX AssocResp from 8a:49:79:46:43:cf (capab=0x1431 status=0 aid=2)
[Чт сен 29 18:00:02 2022] wlp3s0: associated
[Чт сен 29 18:00:24 2022] wlp3s0: deauthenticating from 8a:49:79:46:43:cf by local choice (Reason: 3=DEAUTH_LEAVING)
где соответственно все подключается это мобильная точка доступа с которой все хорошо. wpa_gui при попытке подключиться к сети отеля во вкладке curren status постоянно висит на scanning

Lawyer_Roger
() автор топика
Последнее исправление: Lawyer_Roger (всего исправлений: 2)
Ответ на: комментарий от Lawyer_Roger

После смены duid, sudo rc-service dhcpcd restart делал?. Пробуй из терминала sudo rc-service wpa_supplicant stop, потом sudo wpa_supplicant -iwlp3s0 -B -c/etc/wpa_supplicant/wpa_supplicant.conf, должно завершиться с ошибкой(если не подключается) и вывести в терминал, потом sudo rc-service wpa_supplicant start. Вывод ошибки покажешь.

spawn_sp ★★★★
()
Последнее исправление: spawn_sp (всего исправлений: 2)
Ответ на: комментарий от spawn_sp

после смены на duid я пк перезагружал. вывод wpa_supplicant -iwlp3s0 -B -c/etc/wpa_supplicant/wpa_supplicant.conf^

Successfully initialized wpa_supplicant
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
ctrl_iface exists and seems to be in use - cannot override it
Delete '/var/run/wpa_supplicant/wlp3s0' manually if it is not used anymore
Failed to initialize control interface 'DIR=/var/run/wpa_supplicant GROUP=wheel'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.

wlp3s0: CTRL-EVENT-DSCP-POLICY clear_all
wlp3s0: CTRL-EVENT-DSCP-POLICY clear_all
nl80211: deinit ifname=wlp3s0 disabled_11b_rates=0
а это уже послеrc-service wpa_supplicant start:
 * Starting WPA Supplicant Daemon ...
Successfully initialized wpa_supplicant
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
ctrl_iface exists and seems to be in use - cannot override it
Delete '/var/run/wpa_supplicant/wlp3s0' manually if it is not used anymore
Failed to initialize control interface 'DIR=/var/run/wpa_supplicant GROUP=wheel'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.

wlp3s0: CTRL-EVENT-DSCP-POLICY clear_all
wlp3s0: CTRL-EVENT-DSCP-POLICY clear_all
nl80211: deinit ifname=wlp3s0 disabled_11b_rates=0
 * start-stop-daemon: failed to start `/usr/sbin/wpa_supplicant'
 * Failed to start WPA Supplicant Daemon                                                                                        [ !! ]
 * ERROR: wpa_supplicant failed to start

Lawyer_Roger
() автор топика
Ответ на: комментарий от Chord
net-wireless/wpa_supplicant-2.10-r1::gentoo was built with the following:
USE="crda dbus fils hs2-0 mbo mesh qt5 readline -ap -broadcom-sta -eap-sim -eapol-test -fasteap -macsec -p2p -privsep (-ps3) (-selinux) -smartcard -tdls -tkip -uncommon-eap-types -wep (-wimax) -wps" ABI_X86="(64)"

судя по теме, кторую ты дал нужно юз флаги добавить?

Lawyer_Roger
() автор топика
Последнее исправление: Lawyer_Roger (всего исправлений: 1)
Ответ на: комментарий от Lawyer_Roger

да

Вот как у меня:

net-wireless/wpa_supplicant-2.10-r1::gentoo was built with the following:
USE="ap crda dbus fils hs2-0 mbo mesh p2p qt5 readline tkip wps -broadcom-sta -eap-sim -eapol-test -fasteap -macsec -privsep (-ps3) (-selinux) -smartcard -tdls -uncommon-eap-types -wep (-wimax)" ABI_X86="(64)"

Chord ★★★
()
Последнее исправление: Chord (всего исправлений: 1)
6 мая 2023 г.