You are not logged in.

#1 2020-09-22 13:42:36

aakash123
Member
Registered: 2020-09-12
Posts: 13

[SOLVED] Can't connect to sites using a browser or curl from wifi

hi im new to arch linux
i have broadcom wifi card with b43-firmware
i also tried b43-firmware-classic but it only caused more problems like hardware key to toggle wifi wont work and the range indicator suddenly drops

0c:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM4312 802.11b/g LP-PHY [14e4:4315] (rev 01)
        Subsystem: Dell Wireless 1397 WLAN Mini-Card [1028:000c]
        Flags: bus master, fast devsel, latency 0, IRQ 17
        Memory at f69fc000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [40] Power Management version 3
        Capabilities: [58] Vendor Specific Information: Len=78 <?>
        Capabilities: [e8] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [d0] Express Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [13c] Virtual Channel
        Capabilities: [160] Device Serial Number 79-91-e5-ff-ff-3a-90-4c
        Capabilities: [16c] Power Budgeting <?>
        Kernel driver in use: b43-pci-bridge
        Kernel modules: ssb

ip a output

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp9s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether 00:26:b9:11:8f:f0 brd ff:ff:ff:ff:ff:ff
4: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 90:4c:e5:3a:79:91 brd ff:ff:ff:ff:ff:ff
    inet 192.168.43.5/24 brd 192.168.43.255 scope global dynamic noprefixroute wlan0
       valid_lft 2876sec preferred_lft 2876sec
    inet6 fe80::9972:2c7c:84e2:db56/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
5: enp0s29f7u2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
    link/ether 82:49:e3:eb:0c:89 brd ff:ff:ff:ff:ff:ff
    inet 192.168.42.46/24 brd 192.168.42.255 scope global dynamic noprefixroute enp0s29f7u2
       valid_lft 3219sec preferred_lft 3219sec
    inet6 fe80::64e5:7949:133d:2831/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever

i am able to connect to internet using usb tethering but i cant do it with wifi
i also followed the troubleshoot guide but didnt understand much what was going on
ask me the output of any program ill post it
thank you

Last edited by aakash123 (2020-09-23 03:02:32)

Offline

#2 2020-09-22 13:51:00

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,517
Website

Re: [SOLVED] Can't connect to sites using a browser or curl from wifi

I see nothing wrong in that ouput.  How are you attempting to connect?  What symptoms indicate that you do not have a connection?  Can you ping domain names (e.g., google.com)?  Can you ping ip addresses, (e.g., 8.8.8.8)?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2020-09-22 14:28:29

aakash123
Member
Registered: 2020-09-12
Posts: 13

Re: [SOLVED] Can't connect to sites using a browser or curl from wifi

i am able to ping the sites but cant open them in browser or using curl

$ ping -c 3 -4 archlinux.org                  
PING  (138.201.81.199) 56(84) bytes of data.
64 bytes from apollo.archlinux.org (138.201.81.199): icmp_seq=1 ttl=50 time=215 ms
64 bytes from apollo.archlinux.org (138.201.81.199): icmp_seq=2 ttl=50 time=205 ms
64 bytes from apollo.archlinux.org (138.201.81.199): icmp_seq=3 ttl=50 time=212 ms

---  ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 204.629/210.515/214.681/4.280 ms

$ ping -c 3 -6 archlinux.org                 
PING archlinux.org(apollo.archlinux.org (2a01:4f8:172:1d86::1)) 56 data bytes
64 bytes from apollo.archlinux.org (2a01:4f8:172:1d86::1): icmp_seq=1 ttl=54 time=202 ms
64 bytes from apollo.archlinux.org (2a01:4f8:172:1d86::1): icmp_seq=2 ttl=54 time=198 ms
64 bytes from apollo.archlinux.org (2a01:4f8:172:1d86::1): icmp_seq=3 ttl=54 time=199 ms

--- archlinux.org ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 198.246/199.863/201.936/1.540 ms


$ curl -Iv4 "https://archlinux.org"                    
*   Trying 138.201.81.199:443...
* Connected to archlinux.org (138.201.81.199) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: none
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to archlinux.org:443 
* Closing connection 0
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to archlinux.org:443 


$ curl -Iv6 "https://archlinux.org"           
*   Trying 2a01:4f8:172:1d86::1:443...
* connect to 2a01:4f8:172:1d86::1 port 443 failed: Connection timed out
* Failed to connect to archlinux.org port 443: Connection timed out
* Closing connection 0
curl: (28) Failed to connect to archlinux.org port 443: Connection timed out

Offline

#4 2020-09-22 14:44:59

solskog
Member
Registered: 2020-09-05
Posts: 462

Re: [SOLVED] Can't connect to sites using a browser or curl from wifi

How about your name server settings?

$ cat /etc/resolv.conf

You have different subnets: can you use wifi normally from your mobile phone. why are you using usb tethering? your cable network doesn't work either?
WIFI 192.168.43.0/24
Cable 192.168.42.0/24

Offline

#5 2020-09-22 14:54:50

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,517
Website

Re: [SOLVED] Can't connect to sites using a browser or curl from wifi

Please update your title (by editing your first post) to actually reflect your problem.  You are connected to the internet - you have specific problems with curl and browsers.  Is this limited to https sites?

@solskog, domain names are clearly properly resolved.  Please actually read threads you plan to post in.

Last edited by Trilby (2020-09-22 14:56:03)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2020-09-22 15:12:33

aakash123
Member
Registered: 2020-09-12
Posts: 13

Re: [SOLVED] Can't connect to sites using a browser or curl from wifi

when i try to connect to http sites

$ curl -Iv4 "http://archlinux.org"        
*   Trying 138.201.81.199:80...
* Connected to archlinux.org (138.201.81.199) port 80 (#0)
> HEAD / HTTP/1.1
> Host: archlinux.org
> User-Agent: curl/7.72.0
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 301 Moved Permanently
HTTP/1.1 301 Moved Permanently
< Server: nginx/1.18.0
Server: nginx/1.18.0
< Date: Tue, 22 Sep 2020 15:07:03 GMT
Date: Tue, 22 Sep 2020 15:07:03 GMT
< Content-Type: text/html
Content-Type: text/html
< Content-Length: 169
Content-Length: 169
< Connection: keep-alive
Connection: keep-alive
< Location: https://archlinux.org/
Location: https://archlinux.org/

< 
* Connection #0 to host archlinux.org left intact


$ curl -Iv6 "http://archlinux.org"  
*   Trying 2a01:4f8:172:1d86::1:80...
* connect to 2a01:4f8:172:1d86::1 port 80 failed: Connection timed out
* Failed to connect to archlinux.org port 80: Connection timed out
* Closing connection 0
curl: (28) Failed to connect to archlinux.org port 80: Connection timed out

Offline

#7 2020-09-22 15:16:27

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,517
Website

Re: [SOLVED] Can't connect to sites using a browser or curl from wifi

This site is not an ideal test as it redirects to https.  But still the ipv4 connection worked fine.  What's the output of each of the following:

pacman -Qs openssl
pacman -Qkk openssl

"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2020-09-22 15:19:46

aakash123
Member
Registered: 2020-09-12
Posts: 13

Re: [SOLVED] Can't connect to sites using a browser or curl from wifi

$ pacman -Qs openssl                              
local/openssl 1.1.1.g-2
    The Open Source toolkit for Secure Sockets Layer and Transport Layer Security
local/xmlsec 1.2.30-2
    XML Security Library is a C library based on LibXML2
$ pacman -Qkk openssl                              
openssl: 4108 total files, 0 altered files

Offline

#9 2020-09-22 15:23:38

aakash123
Member
Registered: 2020-09-12
Posts: 13

Re: [SOLVED] Can't connect to sites using a browser or curl from wifi

wheni try example.com

$ curl -Iv4 "http://example.com"           
*   Trying 93.184.216.34:80...
* Connected to example.com (93.184.216.34) port 80 (#0)
> HEAD / HTTP/1.1
> Host: example.com
> User-Agent: curl/7.72.0
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Accept-Ranges: bytes
Accept-Ranges: bytes
< Age: 373051
Age: 373051
< Cache-Control: max-age=604800
Cache-Control: max-age=604800
< Content-Type: text/html; charset=UTF-8
Content-Type: text/html; charset=UTF-8
< Date: Tue, 22 Sep 2020 15:21:12 GMT
Date: Tue, 22 Sep 2020 15:21:12 GMT
< Etag: "3147526947"
Etag: "3147526947"
< Expires: Tue, 29 Sep 2020 15:21:12 GMT
Expires: Tue, 29 Sep 2020 15:21:12 GMT
< Last-Modified: Thu, 17 Oct 2019 07:18:26 GMT
Last-Modified: Thu, 17 Oct 2019 07:18:26 GMT
< Server: ECS (oxr/830A)
Server: ECS (oxr/830A)
< X-Cache: HIT
X-Cache: HIT
< Content-Length: 1256
Content-Length: 1256

< 
* Connection #0 to host example.com left intact

$ curl -Iv6 "http://example.com"             
*   Trying 2606:2800:220:1:248:1893:25c8:1946:80...
* Immediate connect fail for 2606:2800:220:1:248:1893:25c8:1946: Network is unreachable
* Closing connection 0
curl: (7) Couldn't connect to server

Offline

#10 2020-09-22 15:41:30

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,723

Re: [SOLVED] Can't connect to sites using a browser or curl from wifi

solskog wrote:

why are you using usb tethering? your cable network doesn't work either?

This looks a lot like some VPN/proxy/firewall/governanny fumbling w/ the TCP since tethering works (=> cannot be local issue) and http works (doesn't seem to be HW issue) and your phone isn't in the same subnet - so it would indeed be interesting whether it connects to the same router (subnet)

Offline

#11 2020-09-22 15:46:57

aakash123
Member
Registered: 2020-09-12
Posts: 13

Re: [SOLVED] Can't connect to sites using a browser or curl from wifi

seth wrote:

This looks a lot like some VPN/proxy/firewall/governanny fumbling w/ the TCP

I am using my phone as a wifi hotspot and I can curl these sites fine from termux and browser  on my phone

Last edited by aakash123 (2020-09-22 15:47:37)

Offline

#12 2020-09-22 16:03:23

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,723

Re: [SOLVED] Can't connect to sites using a browser or curl from wifi

Yes, we understand that… but is your phone connected to the same AP/router as your wifi?
What about the ethernet?

Offline

#13 2020-09-22 16:08:55

aakash123
Member
Registered: 2020-09-12
Posts: 13

Re: [SOLVED] Can't connect to sites using a browser or curl from wifi

I am using my phone's data connection to connect to the internet
and i use that same phone as the wifi hotspot and usb tethering for my laptop
when i use usb tethering i can use internet fine
but the above issue show up when i connect using wifi hotspot

Offline

#14 2020-09-22 17:07:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,723

Re: [SOLVED] Can't connect to sites using a browser or curl from wifi

Ah, ok.
Android or iPhone?
Did you configure the phone to act as a proxy?

Offline

#15 2020-09-22 17:45:13

aakash123
Member
Registered: 2020-09-12
Posts: 13

Re: [SOLVED] Can't connect to sites using a browser or curl from wifi

Android with no proxy or VPN or custom DNS

Offline

#16 2020-09-22 21:48:09

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,723

Re: [SOLVED] Can't connect to sites using a browser or curl from wifi

Wild guess, can you

curl --tls-max 1.2 -Iv4 "https://archlinux.org"

?

Offline

#17 2020-09-23 03:02:12

aakash123
Member
Registered: 2020-09-12
Posts: 13

Re: [SOLVED] Can't connect to sites using a browser or curl from wifi

I found the problem
the issue is with the rom of my phone
I can connect to the web fine with a normal router or other hotspot from other phone
thank you all

Offline

#18 2020-09-23 06:07:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,723

Re: [SOLVED] Can't connect to sites using a browser or curl from wifi

Did you also figure the specific issue w/ the phone (so that others might benefit from that knowledge) or is that "just" an inference from the cross test?

Offline

#19 2020-09-23 10:13:16

aakash123
Member
Registered: 2020-09-12
Posts: 13

Re: [SOLVED] Can't connect to sites using a browser or curl from wifi

seth wrote:

Did you also figure the specific issue w/ the phone (so that others might benefit from that knowledge) or is that "just" an inference from the cross test?

I am using a custom rom Paranoid Android (quartz 4) on my asus max pro m1, it might be a bug in the rom. My laptop I completely fine

Last edited by aakash123 (2020-09-23 10:14:38)

Offline

Board footer

Powered by FluxBB