wicd says wifi connects but no Internet

Kernels & Hardware, configuring network, installing services

wicd says wifi connects but no Internet

Postby hruodland » 2017-05-17 06:18

I've been running Stretch for several months, no problems.

A couple days ago I suddenly lost wifi Internet connectivity even though wicd said I was connecting to my router normally.

1. Other devices connect OK.

2. Rebooting modem, router, and computer doesn't help.

3. When I boot into Stretch on the same computer using a USB drive it works fine.

4. When I change wireless cards it still doesn't work.

5. Reinstalling everything (aptitude -reinstall '~i') doesn't help.

6. ifconfig says:

Code: Select all
wlan1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.43  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::6666:b3ff:fef4:68b0  prefixlen 64  scopeid 0x20<link>
        ether 64:66:b3:f4:68:b0  txqueuelen 1000  (Ethernet)
        RX packets 154  bytes 30836 (30.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 28  bytes 4474 (4.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


7. route -e says:

Code: Select all
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
default         192.168.1.1     0.0.0.0         UG        0 0          0 wlan1
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 wlan1


8. lspci -knn | grep Net -A2 says:

Code: Select all
04:00.0 Network controller [0280]: Qualcomm Atheros AR9227 Wireless Network Adapter [168c:002d] (rev 01)
   Subsystem: Qualcomm Atheros AR9227 Wireless Network Adapter [168c:0301]
   Kernel driver in use: ath9k
   Kernel modules: ath9k


9. ping yahoo.com says:

Code: Select all
ping: yahoo.com: Temporary failure in name resolution


Any thoughts?
hruodland
 
Posts: 12
Joined: 2013-12-04 01:23

Re: wicd says wifi connects but no Internet

Postby Head_on_a_Stick » 2017-05-17 08:14

Can we see
Code: Select all
/sbin/iwconfig
cat /etc/resolv.conf
ping -c3 206.190.36.45
“Controlling complexity is the essence of computer programming."Brian Kernighan

Please read before posting How to report a problem
User avatar
Head_on_a_Stick
 
Posts: 6491
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: wicd says wifi connects but no Internet

Postby hruodland » 2017-05-17 10:03

Code: Select all
/sbin/iwconfig
eth0      no wireless extensions.

lo        no wireless extensions.

wlan1     IEEE 802.11  ESSID:"192690" 
          Mode:Managed  Frequency:2.437 GHz  Access Point: 20:4E:7F:19:26:8F   
          Bit Rate=1 Mb/s   Tx-Power=13 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=56/70  Signal level=-54 dBm 
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:21   Missed beacon:0


Code: Select all
cat /etc/resolv.conf
domain home
search home
nameserver 192.168.1.1


Code: Select all
ping -c3 206.190.36.45
PING 206.190.36.45 (206.190.36.45) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted

--- 206.190.36.45 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2034ms
hruodland
 
Posts: 12
Joined: 2013-12-04 01:23

Re: wicd says wifi connects but no Internet

Postby Head_on_a_Stick » 2017-05-17 10:20

hruodland wrote:
Code: Select all
ping: sendmsg: Operation not permitted

Did you try running the command as root?
“Controlling complexity is the essence of computer programming."Brian Kernighan

Please read before posting How to report a problem
User avatar
Head_on_a_Stick
 
Posts: 6491
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: wicd says wifi connects but no Internet

Postby hruodland » 2017-05-17 10:23

I ran it as root. That's the result.
hruodland
 
Posts: 12
Joined: 2013-12-04 01:23

Re: wicd says wifi connects but no Internet

Postby Head_on_a_Stick » 2017-05-17 10:24

Is the interface blocked?
Code: Select all
# rfkill list
“Controlling complexity is the essence of computer programming."Brian Kernighan

Please read before posting How to report a problem
User avatar
Head_on_a_Stick
 
Posts: 6491
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: wicd says wifi connects but no Internet

Postby hruodland » 2017-05-17 10:33

Code: Select all
rfkill list
1: phy1: Wireless LAN
   Soft blocked: no
   Hard blocked: no
hruodland
 
Posts: 12
Joined: 2013-12-04 01:23

Re: wicd says wifi connects but no Internet

Postby Head_on_a_Stick » 2017-05-17 10:44

Firewall, perhaps?
Code: Select all
# nft list ruleset
# iptables -L
“Controlling complexity is the essence of computer programming."Brian Kernighan

Please read before posting How to report a problem
User avatar
Head_on_a_Stick
 
Posts: 6491
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: wicd says wifi connects but no Internet

Postby hruodland » 2017-05-17 10:53

Doubtful. Wired works fine. Anyway,

Code: Select all
nft list ruleset
zsh: command not found: nft


Code: Select all
iptables -L
Chain INPUT (policy DROP)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere           
bad_packets  all  --  anywhere             anywhere           
DROP       all  --  anywhere             224.0.0.1           
ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED
tcp_inbound  tcp  --  anywhere             anywhere           
udp_inbound  udp  --  anywhere             anywhere           
icmp_packets  icmp --  anywhere             anywhere           
ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED
tcp_inbound  tcp  --  anywhere             anywhere           
udp_inbound  udp  --  anywhere             anywhere           
icmp_packets  icmp --  anywhere             anywhere           
DROP       all  --  anywhere             anywhere             PKTTYPE = broadcast
LOG        all  --  anywhere             anywhere             limit: avg 3/min burst 3 LOG level warning prefix "INPUT packet died: "

Chain FORWARD (policy DROP)
target     prot opt source               destination         

Chain OUTPUT (policy DROP)
target     prot opt source               destination         
DROP       icmp --  anywhere             anywhere             state INVALID
ACCEPT     all  --  localhost            anywhere           
ACCEPT     all  --  anywhere             anywhere           
ACCEPT     all  --  anywhere             anywhere           
ACCEPT     all  --  anywhere             anywhere           
LOG        all  --  anywhere             anywhere             limit: avg 3/min burst 3 LOG level warning prefix "OUTPUT packet died: "

Chain bad_packets (1 references)
target     prot opt source               destination         
LOG        all  --  anywhere             anywhere             state INVALID LOG level warning prefix "Invalid packet: "
DROP       all  --  anywhere             anywhere             state INVALID
bad_tcp_packets  tcp  --  anywhere             anywhere           
RETURN     all  --  anywhere             anywhere

Chain bad_tcp_packets (1 references)
target     prot opt source               destination         
LOG        tcp  --  anywhere             anywhere             tcp flags:!FIN,SYN,RST,ACK/SYN state NEW LOG level warning prefix "New not syn: "
DROP       tcp  --  anywhere             anywhere             tcp flags:!FIN,SYN,RST,ACK/SYN state NEW
LOG        tcp  --  anywhere             anywhere             tcp flags:FIN,SYN,RST,PSH,ACK,URG/NONE LOG level warning prefix "Stealth scan: "
DROP       tcp  --  anywhere             anywhere             tcp flags:FIN,SYN,RST,PSH,ACK,URG/NONE
LOG        tcp  --  anywhere             anywhere             tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,SYN,RST,PSH,ACK,URG LOG level warning prefix "Stealth scan: "
DROP       tcp  --  anywhere             anywhere             tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,SYN,RST,PSH,ACK,URG
LOG        tcp  --  anywhere             anywhere             tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,PSH,URG LOG level warning prefix "Stealth scan: "
DROP       tcp  --  anywhere             anywhere             tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,PSH,URG
LOG        tcp  --  anywhere             anywhere             tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,SYN,RST,ACK,URG LOG level warning prefix "Stealth scan: "
DROP       tcp  --  anywhere             anywhere             tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,SYN,RST,ACK,URG
LOG        tcp  --  anywhere             anywhere             tcp flags:SYN,RST/SYN,RST LOG level warning prefix "Stealth scan: "
DROP       tcp  --  anywhere             anywhere             tcp flags:SYN,RST/SYN,RST
LOG        tcp  --  anywhere             anywhere             tcp flags:FIN,SYN/FIN,SYN LOG level warning prefix "Stealth scan: "
DROP       tcp  --  anywhere             anywhere             tcp flags:FIN,SYN/FIN,SYN
RETURN     tcp  --  anywhere             anywhere           

Chain icmp_packets (2 references)
target     prot opt source               destination         
LOG        icmp -f  anywhere             anywhere             LOG level warning prefix "ICMP Fragment: "
DROP       icmp -f  anywhere             anywhere           
DROP       icmp --  anywhere             anywhere             icmp echo-request
ACCEPT     icmp --  anywhere             anywhere             icmp time-exceeded
RETURN     icmp --  anywhere             anywhere           

Chain tcp_inbound (2 references)
target     prot opt source               destination         
ACCEPT     tcp  --  192.168.1.0/24       anywhere             tcp dpts:ftp-data:ftp
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:smtp
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:gopher
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:http
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:pop3
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:https
ACCEPT     tcp  --  192.168.1.0/24       anywhere             tcp dpt:netbios-ssn
ACCEPT     tcp  --  192.168.1.0/24       anywhere             tcp dpt:microsoft-ds
ACCEPT     tcp  --  192.168.1.0/24       anywhere             tcp dpt:4711
ACCEPT     tcp  --  192.168.1.0/24       anywhere             tcp dpts:5900:5902
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:1683
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:8000
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:tproxy
ACCEPT     tcp  --  anywhere             anywhere             tcp dpts:8082:8089
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:22222
RETURN     tcp  --  anywhere             anywhere           

Chain tcp_outbound (0 references)
target     prot opt source               destination         
ACCEPT     tcp  --  anywhere             anywhere           

Chain udp_inbound (2 references)
target     prot opt source               destination
DROP       udp  -- !192.168.1.0/24       anywhere             udp dpt:netbios-ns
DROP       udp  -- !192.168.1.0/24       anywhere             udp dpt:netbios-dgm
ACCEPT     udp  --  anywhere             anywhere             udp spt:bootps dpt:bootpc
ACCEPT     udp  --  192.168.1.0/24       anywhere             udp dpts:20:fsp
ACCEPT     udp  --  192.168.1.0/24       anywhere             udp dpts:netbios-ns:netbios-dgm
ACCEPT     udp  --  anywhere             anywhere             udp dpt:443
ACCEPT     udp  --  anywhere             anywhere             udp dpts:8081:8090
RETURN     udp  --  anywhere             anywhere           

Chain udp_outbound (0 references)
target     prot opt source               destination         
ACCEPT     udp  --  anywhere             anywhere
hruodland
 
Posts: 12
Joined: 2013-12-04 01:23

Re: wicd says wifi connects but no Internet

Postby Head_on_a_Stick » 2017-05-17 10:57

hruodland wrote:Doubtful

Easy to test — does the connection (or `ping` command) work if you disable the firewall?

I don't use iptables so I can't really comment on your configuration but we do have some users here who are good with that sort of thing :)
“Controlling complexity is the essence of computer programming."Brian Kernighan

Please read before posting How to report a problem
User avatar
Head_on_a_Stick
 
Posts: 6491
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: wicd says wifi connects but no Internet

Postby Head_on_a_Stick » 2017-05-17 11:05

Try disabling powersaving on the card, and perhaps switch to software encryption as well:

https://wiki.archlinux.org/index.php/Wi ... tion#ath9k
“Controlling complexity is the essence of computer programming."Brian Kernighan

Please read before posting How to report a problem
User avatar
Head_on_a_Stick
 
Posts: 6491
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: wicd says wifi connects but no Internet

Postby hruodland » 2017-05-17 11:16

Disabled iptables and no improvement. Power management already off on card (see output of iwconfig in my first post). Software encryption?
hruodland
 
Posts: 12
Joined: 2013-12-04 01:23

Re: wicd says wifi connects but no Internet

Postby Head_on_a_Stick » 2017-05-17 17:37

hruodland wrote:Power management already off on card (see output of iwconfig in my first post).

The `iwconfig` output displays the kernel's power management strategy but the firmware on the wireless card also has a power saving option that can be toggled via a module option (as can the hardware encryption) — my ArchWiki link explains the method.
“Controlling complexity is the essence of computer programming."Brian Kernighan

Please read before posting How to report a problem
User avatar
Head_on_a_Stick
 
Posts: 6491
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: wicd says wifi connects but no Internet

Postby hruodland » 2017-05-17 18:57

Adding

Code: Select all
options ath9k nohwcrypt=1


to

Code: Select all
/etc/modprobe.d/ath9k.conf


and

Code: Select all
iw dev wlan1 set power_save off


didn't help, if that was what you had in mind. (I removed and reinserted the ath9k module after the former change, if that matters.)
hruodland
 
Posts: 12
Joined: 2013-12-04 01:23

Re: wicd says wifi connects but no Internet

Postby v&n » 2017-05-18 14:11

I wonder if the poor connection speed to the router is causing dns failure too..
hruodland wrote:
Code: Select all
wlan1     IEEE 802.11  ESSID:"192690" 
          Mode:Managed  Frequency:2.437 GHz  Access Point: 20:4E:7F:19:26:8F   
          Bit Rate=1 Mb/s   Tx-Power=13 dBm

The ath9k driver, as well as most of the atheros cards usually work nicely with Linux. So I am also suspecting router settings here.

What kind of encryption are you using in the router. I did read that "Other devices connect ok", but still think there may be something that may be optimized there. For example, changing the encryption to pure WPA2-PSK (AES) instead of WPA/WPA2 mixed mode with TKIP (the mixed mode is usually default in most routers).

Also, please show us :
Code: Select all
modinfo ath9k
v&n
 
Posts: 592
Joined: 2015-02-04 02:57

Next

Return to System configuration

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable