Ponto de acesso Wi-Fi desconectado após algum tempo

2

Estou tentando usar meu sistema Ubuntu como Wifi Hotspot, mas por algum motivo o Hotspot é desconectado sozinho. Procurando a solução, encontrei esta ajuda: Por que minha ethernet conexão conectando e desconectando repetidamente?

Lendo o artigo acima Eu usei o seguinte comando sudo killall dnsmasq , como resultado, consegui estabelecer o ponto de acesso por cerca de 5 a 10 segundos antes de me desconectar imediatamente ...

Aqui está o log do sistema (caso seja necessário) tail -f /var/log/syslog :

Apr  1 23:31:42 NetworkManager[901]: <info> Starting dnsmasq...
Apr  1 23:31:42 NetworkManager[901]: <info> (wlan0): device state change: ip-config -> activated (reason 'none') [70 100 0]
Apr  1 23:31:42 dnsmasq[4159]: started, version 2.57 cachesize 150
Apr  1 23:31:42 dnsmasq[4159]: compile time options: IPv6 GNU-getopt DBus I18N DHCP TFTP IDN
Apr  1 23:31:42 dnsmasq-dhcp[4159]: DHCP, IP range 10.42.43.10 -- 10.42.43.100, lease time 1h
Apr  1 23:31:42 dnsmasq[4159]: reading /etc/resolv.conf
Apr  1 23:31:42 dnsmasq[4159]: using nameserver 220.226.6.104#53
Apr  1 23:31:42 dnsmasq[4159]: using nameserver 220.226.100.40#53
Apr  1 23:31:42 dnsmasq[4159]: cleared cache
Apr  1 23:31:42 NetworkManager[901]: <info> Activation (wlan0) successful, device activated.
Apr  1 23:31:42 NetworkManager[901]: <info> Activation (wlan0) Stage 5 of 5 (IP Configure Commit) complete.
Apr  1 23:31:42 NetworkManager[901]: <info> Activation (wlan0) Stage 4 of 5 (IP4 Configure Get) complete.
Apr  1 23:31:42 dbus[885]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
Apr  1 23:31:42 dbus[885]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'

Conexão estabelecida neste momento .... agora desconectando após 10 segundos ...

    Apr  1 23:31:52 ntpdate[4194]: adjust time server 91.189.94.4 offset -0.011589 sec
    Apr  1 23:32:01 NetworkManager[901]: <info> (wlan0): IP6 addrconf timed out or failed.
    Apr  1 23:32:01 NetworkManager[901]: <info> Activation (wlan0) Stage 4 of 5 (IP6 Configure Timeout) scheduled...
    Apr  1 23:32:01 NetworkManager[901]: <info> Activation (wlan0) Stage 4 of 5 (IP6 Configure Timeout) started...
    Apr  1 23:32:01 NetworkManager[901]: <info> Activation (wlan0) Stage 5 of 5 (IP Configure Commit) started...
    Apr  1 23:32:01 NetworkManager[901]: <info> Executing: /sbin/iptables --table filter --insert INPUT --in-interface wlan0 --protocol tcp --destination-port 53 --jump ACCEPT
    Apr  1 23:32:01 NetworkManager[901]: <info> Executing: /sbin/iptables --table filter --insert INPUT --in-interface wlan0 --protocol udp --destination-port 53 --jump ACCEPT
    Apr  1 23:32:01 NetworkManager[901]: <info> Executing: /sbin/iptables --table filter --insert INPUT --in-interface wlan0 --protocol tcp --destination-port 67 --jump ACCEPT
    Apr  1 23:32:01 NetworkManager[901]: <info> Executing: /sbin/iptables --table filter --insert INPUT --in-interface wlan0 --protocol udp --destination-port 67 --jump ACCEPT
    Apr  1 23:32:01 NetworkManager[901]: <info> Executing: /sbin/iptables --table filter --insert FORWARD --in-interface wlan0 --jump REJECT
    Apr  1 23:32:01 NetworkManager[901]: <info> Executing: /sbin/iptables --table filter --insert FORWARD --out-interface wlan0 --jump REJECT
    Apr  1 23:32:01 NetworkManager[901]: <info> Executing: /sbin/iptables --table filter --insert FORWARD --in-interface wlan0 --out-interface wlan0 --jump ACCEPT
    Apr  1 23:32:01 NetworkManager[901]: <info> Executing: /sbin/iptables --table filter --insert FORWARD --source 10.42.43.0/255.255.255.0 --in-interface wlan0 --jump ACCEPT
    Apr  1 23:32:01 NetworkManager[901]: <info> Executing: /sbin/iptables --table filter --insert FORWARD --destination 10.42.43.0/255.255.255.0 --out-interface wlan0 --match state --state ESTABLISHED,RELATED --jump ACCEPT
    Apr  1 23:32:01 NetworkManager[901]: <info> Executing: /sbin/iptables --table nat --insert POSTROUTING --source 10.42.43.0/255.255.255.0 ! --destination 10.42.43.0/255.255.255.0 --jump MASQUERADE
    Apr  1 23:32:01 NetworkManager[901]: <info> Executing: /sbin/iptables --table filter --insert INPUT --in-interface wlan0 --protocol tcp --destination-port 53 --jump ACCEPT
    Apr  1 23:32:01 NetworkManager[901]: <info> Executing: /sbin/iptables --table filter --insert INPUT --in-interface wlan0 --protocol udp --destination-port 53 --jump ACCEPT
    Apr  1 23:32:01 NetworkManager[901]: <info> Executing: /sbin/iptables --table filter --insert INPUT --in-interface wlan0 --protocol tcp --destination-port 67 --jump ACCEPT
    Apr  1 23:32:01 NetworkManager[901]: <info> Executing: /sbin/iptables --table filter --insert INPUT --in-interface wlan0 --protocol udp --destination-port 67 --jump ACCEPT
    Apr  1 23:32:01 NetworkManager[901]: <info> Executing: /sbin/iptables --table filter --insert FORWARD --in-interface wlan0 --jump REJECT
    Apr  1 23:32:01 NetworkManager[901]: <info> Executing: /sbin/iptables --table filter --insert FORWARD --out-interface wlan0 --jump REJECT
    Apr  1 23:32:01 NetworkManager[901]: <info> Executing: /sbin/iptables --table filter --insert FORWARD --in-interface wlan0 --out-interface wlan0 --jump ACCEPT
    Apr  1 23:32:01 NetworkManager[901]: <info> Executing: /sbin/iptables --table filter --insert FORWARD --source 10.42.43.0/255.255.255.0 --in-interface wlan0 --jump ACCEPT
    Apr  1 23:32:01 NetworkManager[901]: <info> Executing: /sbin/iptables --table filter --insert FORWARD --destination 10.42.43.0/255.255.255.0 --out-interface wlan0 --match state --state ESTABLISHED,RELATED --jump ACCEPT
    Apr  1 23:32:01 NetworkManager[901]: <info> Executing: /sbin/iptables --table nat --insert POSTROUTING --source 10.42.43.0/255.255.255.0 ! --destination 10.42.43.0/255.255.255.0 --jump MASQUERADE
    Apr  1 23:32:01 NetworkManager[901]: <info> Starting dnsmasq...
    Apr  1 23:32:01 NetworkManager[901]: <info> Activation (wlan0) Stage 5 of 5 (IP Configure Commit) complete.
    Apr  1 23:32:01 NetworkManager[901]: <info> Activation (wlan0) Stage 4 of 5 (IP6 Configure Timeout) complete.
    Apr  1 23:32:01 NetworkManager[901]: <warn> dnsmasq died with signal 9
    Apr  1 23:32:01 NetworkManager[901]: <info> (wlan0): device state change: activated -> failed (reason 'sharing-start-failed') [100 120 18]
    Apr  1 23:32:01 dnsmasq[4235]: started, version 2.57 cachesize 150
    Apr  1 23:32:01 dnsmasq[4235]: compile time options: IPv6 GNU-getopt DBus I18N DHCP TFTP IDN
    Apr  1 23:32:01 dnsmasq-dhcp[4235]: DHCP, IP range 10.42.43.10 -- 10.42.43.100, lease time 1h
    Apr  1 23:32:01 NetworkManager[901]: <warn> Activation (wlan0) failed for access point (Reppify Ubuntu)
    Apr  1 23:32:01 dnsmasq[4235]: reading /etc/resolv.conf
    Apr  1 23:32:01 dnsmasq[4235]: using nameserver 220.226.6.104#53
    Apr  1 23:32:01 dnsmasq[4235]: using nameserver 220.226.100.40#53
    Apr  1 23:32:01 dnsmasq[4235]: cleared cache
    Apr  1 23:32:01 NetworkManager[901]: <warn> Activation (wlan0) failed.
    Apr  1 23:32:01 NetworkManager[901]: <info> (wlan0): device state change: failed -> disconnected (reason 'none') [120 30 0]
    Apr  1 23:32:01 NetworkManager[901]: <info> (wlan0): deactivating device (reason 'none') [0]
    Apr  1 23:32:01 dbus[885]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
    Apr  1 23:32:01 dbus[885]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
    Apr  1 23:32:01 NetworkManager[901]: <error> [1333303321.565351] [nm-device-wifi.c:1815] nm_device_wifi_set_mode(): (wlan0): error setting mode 2
    
por Rohit Bansal 01.04.2012 / 20:07

1 resposta

0

Eu não sou especialista nisso, mas acho que o erro estaria aqui (pode estar aqui)

// at this first line message is shown of Activation is failed.
1) Apr  1 23:32:01 NetworkManager[901]: <warn> Activation (wlan0) failed.
// device state changing failed without any reason (i don't know about this, "[120 30 0]")
2) Apr  1 23:32:01 NetworkManager[901]: <info> (wlan0): device state change: failed -> disconnected (reason 'none') [120 30 0]
// deactivation.
3) Apr  1 23:32:01 NetworkManager[901]: <info> (wlan0): deactivating device (reason 'none') [0]
// if (wlan0) is not activated the what is a use of service that showing here is activating?
4) Apr  1 23:32:01 dbus[885]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
// no coments on this service.
5) Apr  1 23:32:01 dbus[885]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
// refer something for error's on setting mode with no. "2". (confusing question|sorry)
6) Apr  1 23:32:01 NetworkManager[901]: <error> [1333303321.565351] [nm-device-wifi.c:1815] nm_device_wifi_set_mode(): (wlan0): error setting mode 2

se isso não é uma solução para sua pergunta, então desculpe bro, eu não posso fazer nada para você ...

    
por Mac 01.04.2012 / 22:47