You are not logged in.

#1 2024-11-01 17:27:32

voxell
Member
Registered: 2024-11-01
Posts: 54

[SOLVED] Locked behind a captive portal

Hello Arch. I became an Arch user today.

I installed Arch by tethering the campus internet connection (eduroam) from my phone into the live installation system of arch (without VPN). Installed nano, amd-ucode, grub, networkmanager, hyprland, kitty and left the campus before I could boot up the system (low battery).

Turkish dormitories are known for their restrictiveness and blocks on many many websites. Arch probably is one of them (the reason I use a VPN).

Now I'm back in the dormitory, I booted in Arch, created a user and logged in. My internet setup on my old OS (Windows 10) was to log in to the dormitory wifi on my phone via the captive portal, tether the connection to my pc via USB and then connect to protonvpn servers using the proton windows app (using OpenVPN TCP protocol).

I did the same on Arch, but I currently don't have a response from

ping archlinux.org

(Destination port unreachable). I don't have iw or iwd installed, but I started NetworkManager via

systemctl start NetworkManager

but no luck. I tried tethering on the live installation too, but the dormitory internet does not connect at all.

ip link

shows me eno1 and wlp4s0 available by default, and after I enable tethering on my phone an extra enp5s0f3u1 interface also shows up.

Pinging wifi.gsb.gov.tr (the captive portal URL) is successful.

Can I connect to the internet somehow? Many thanks.

Last edited by voxell (2024-11-02 18:03:22)


i use arch (since Nov 1, 2024) btw

Offline

#2 2024-11-01 18:57:11

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

Re: [SOLVED] Locked behind a captive portal

You said in your title that you have no GUI, but in the text you said you installed hyprland.  By no GUI do you mean you just have no graphical web browser?

In either case, you don't need a graphical web browser to connect to captive portals - but some of them do require javascript, so elinks is a good option (the package for which you could download in Windows and copy it over to the arch system to install via `pacman -U ...`).


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

Offline

#3 2024-11-01 19:11:45

voxell
Member
Registered: 2024-11-01
Posts: 54

Re: [SOLVED] Locked behind a captive portal

I have installed it, but it does not work as expected for now. It has missing fonts and for some reason I can't fire kitty up with Win+Q. Im in the linux virtual terminal (the default) for now.


i use arch (since Nov 1, 2024) btw

Offline

#4 2024-11-01 19:25:56

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,486

Re: [SOLVED] Locked behind a captive portal

If you tether your vpn in Windows and in the arch install the captive portal comes up, you may have your wifi connection active. To try without:

systemctl stop networkmanager
ip link set down wlp4s0
dhpcd enp5s0f3u1

the last interface showing up will be your tethered vpn connection.

Offline

#5 2024-11-01 19:42:09

voxell
Member
Registered: 2024-11-01
Posts: 54

Re: [SOLVED] Locked behind a captive portal

in arch installation environment:

130 root@archiso ~ # dhcpcd enp5s0f3u1
dhcpcd-10.0.10 starting
DUID 00:01 something something...
enp5s0f3u1: IAID 65:89 something
enp5s0f3u1: soliciting an IPv6 router
enp5s0f3u1: soliciting a DHCP lease
enp5s0f3u1: probing address 192.168.211.247 for 3599 seconds
ps_bpf_recvmsg: Invalid argument
ps_bpf_recvmsg: Invalid argument
ps_bpf_recvmsg: Invalid argument
enp5s0f3u1: leased 192.168.211.247 for 3599 seconds (it did not take hour in reality)
enp5s0f3u1: adding route to 192.168.211.0/24
enp5s0f3u1: adding default route via 192.168.211.234
Dropped protocol specifier '.dhcp' from 'enp5s0f3u1'. Using 'enp5s0f3u1' (ifindex=5)
ps_bpf_recvmsg: Invalid argument

still no connection to archlinux.org


i use arch (since Nov 1, 2024) btw

Offline

#6 2024-11-01 19:50:08

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,486

Re: [SOLVED] Locked behind a captive portal

That looks ok enough, now have a look at the /etc/resolv.conf file and make sure it contains a nameserver, e.g.

/etc/resolv.conf
nameserver 9.9.9.9

Offline

#7 2024-11-01 20:49:13

voxell
Member
Registered: 2024-11-01
Posts: 54

Re: [SOLVED] Locked behind a captive portal

I've tried downloading packages on a different computer then installing them using pacman -U but it says it still has dependencies that need downloading.

in arch install environment /etc/resolv.conf says it is a symlink to /run/systemd/resolve/stub-resolv.conf managed by systemd-resolved and tells me not to edit it.

it has a nameserver in it with ip 127.0.0.153 but resolvectl status says current dns server is 1.1.1.1

on the root filesystem in /etc/resolv.conf i already have 1.1.1.1 and 8.8.8.8 set in there.

Last edited by voxell (2024-11-01 20:51:39)


i use arch (since Nov 1, 2024) btw

Offline

#8 2024-11-01 20:55:13

seth
Member
Registered: 2012-09-03
Posts: 59,012

Re: [SOLVED] Locked behind a captive portal

it did not take hour in reality

This is how long the lease is valid, not how long it took to get it wink

ping -c3 8.8.8.8
ping -c3 archlinux.org

Post the outputs, not "it doesn't work" - in doubt link a screenshot.

Offline

#9 2024-11-01 21:01:37

voxell
Member
Registered: 2024-11-01
Posts: 54

Re: [SOLVED] Locked behind a captive portal

here are the outputs of dhcpcd and ping c3
https://imgur.com/a/wgfUSp2


i use arch (since Nov 1, 2024) btw

Offline

#10 2024-11-01 21:03:37

voxell
Member
Registered: 2024-11-01
Posts: 54

Re: [SOLVED] Locked behind a captive portal

oh wait, resolvectl status is showing a different dns for the tether now(its 192.168 something, probably the phone) let me figure out how to add a dns nameserver here

Last edited by voxell (2024-11-01 21:04:15)


i use arch (since Nov 1, 2024) btw

Offline

#11 2024-11-01 21:08:06

voxell
Member
Registered: 2024-11-01
Posts: 54

Re: [SOLVED] Locked behind a captive portal

result after I changed the dns is still the same. https://imgur.com/a/iAPLkTc


i use arch (since Nov 1, 2024) btw

Offline

#12 2024-11-01 21:10:07

seth
Member
Registered: 2012-09-03
Posts: 59,012

Re: [SOLVED] Locked behind a captive portal

It's not a DNS issue, archlinux.org gets properly resolved, but 8.8.8.8 doesn't respond to icmp requests.
Can you reach archlinux.org from the phone?

Offline

#13 2024-11-01 21:16:49

voxell
Member
Registered: 2024-11-01
Posts: 54

Re: [SOLVED] Locked behind a captive portal

seth wrote:

It's not a DNS issue, archlinux.org gets properly resolved, but 8.8.8.8 doesn't respond to icmp requests.
Can you reach archlinux.org from the phone?

of course, i am writing to the forum on my phone.
also, archlinux.org is not blocked on my dorm, i tried connecting to it without VPN and it did, so i have no idea whether the connection is problematic or the computer is behind a captive portal.

Last edited by voxell (2024-11-01 21:18:26)


i use arch (since Nov 1, 2024) btw

Offline

#14 2024-11-01 21:21:30

voxell
Member
Registered: 2024-11-01
Posts: 54

Re: [SOLVED] Locked behind a captive portal

current status of phone and install environment right now: https://imgur.com/a/m6na9ym
i have iw available now (thanks to pacman -U and flash disk smile )

Last edited by voxell (2024-11-01 21:24:19)


i use arch (since Nov 1, 2024) btw

Offline

#15 2024-11-01 21:23:34

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,486

Re: [SOLVED] Locked behind a captive portal

I suspect the tethering does not go via your vpn. archlinux.org is unreachable, because the connection likely is still behind the captive portal, which may catch the dns requests. Question is what's simpler: trying to fix your captive portal login via the arch elinks, or troubleshooting your vpn tethering.

Offline

#16 2024-11-01 21:25:41

seth
Member
Registered: 2012-09-03
Posts: 59,012

Re: [SOLVED] Locked behind a captive portal

It's not about being blocked, but if you're tethering the phone and the phone is registered w/ teh captive portal one would assume the systems behind it would be as well (though the firewall can still detect that this is a different client)

Alternative approach, make your phone a hotspot and connect to it w/ the computers wifi.
That should™ work…

Offline

#17 2024-11-01 21:26:08

voxell
Member
Registered: 2024-11-01
Posts: 54

Re: [SOLVED] Locked behind a captive portal

Strike0 wrote:

I suspect the tethering does not go via your vpn. archlinux.org is unreachable, because the connection likely is still behind the captive portal, which may catch the dns requests. Question is what's simpler: trying to fix your captive portal login via the arch elinks, or troubleshooting your vpn tethering.

most likely the tether doesnt go through vpn. i could not install elinks because it required downloading dependencies. however if it exists in the installation environment i can manage

Last edited by voxell (2024-11-01 21:28:30)


i use arch (since Nov 1, 2024) btw

Offline

#18 2024-11-01 21:27:00

voxell
Member
Registered: 2024-11-01
Posts: 54

Re: [SOLVED] Locked behind a captive portal

seth wrote:

It's not about being blocked, but if you're tethering the phone and the phone is registered w/ teh captive portal one would assume the systems behind it would be as well (though the firewall can still detect that this is a different client)

Alternative approach, make your phone a hotspot and connect to it w/ the computers wifi.
That should™ work…

unfortunately hotspot cant be turned on when wifi is also on


i use arch (since Nov 1, 2024) btw

Offline

#19 2024-11-01 21:30:41

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,486

Re: [SOLVED] Locked behind a captive portal

Can't you just deactivate the vpn and reach archlinux like that from the phone (after portal login)? If that works, tether on again without vpn. arch has an active Turkish community, I'd be very surprised if it is blocked per se.

Offline

#20 2024-11-01 21:40:09

voxell
Member
Registered: 2024-11-01
Posts: 54

Re: [SOLVED] Locked behind a captive portal

i deactivated my vpn, i can access archlinux.org on my phone, i tethered it to to linux, once again set dhcpcd, resolvectl dns and pinged. nothing changed. output: https://imgur.com/a/91bvbRb

i probably need to log in through the captive portal on linux too. however the dormitory internet only allows 1 device per account, and the account is linked to my national id so creating new accounts arent possible. that only leaves the option that i have to connect to the wifi from linux, then solve the captive portal problem.

Last edited by voxell (2024-11-01 21:42:42)


i use arch (since Nov 1, 2024) btw

Offline

#21 2024-11-01 21:46:37

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,486

Re: [SOLVED] Locked behind a captive portal

Can you check on your phone if its IP address is 192.168.211.234 (default route entry)?

Offline

#22 2024-11-01 21:47:17

voxell
Member
Registered: 2024-11-01
Posts: 54

Re: [SOLVED] Locked behind a captive portal

Strike0 wrote:

Can you check on your phone if its IP address is 192.168.211.234 (default route entry)?

no response connecting to that ip

in the wifi menu phone ip address shows up as 10.61 something

i only know that the captive portal url is wifi.gsb.gov.tr and not the ip

pinging wifi.gsb.gov.tr yields that the ip is 10.106... something

Last edited by voxell (2024-11-01 21:52:26)


i use arch (since Nov 1, 2024) btw

Offline

#23 2024-11-01 21:58:28

seth
Member
Registered: 2012-09-03
Posts: 59,012

Re: [SOLVED] Locked behind a captive portal

the dormitory internet only allows 1 device per account

Sanity check: what's the MAC in your phone?
b6:34:97:d1:a0:51 ?
What is the IP of your phone? 192.168.*?

Other sanity check:

ip a; ip r

Offline

#24 2024-11-01 22:10:52

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,486

Re: [SOLVED] Locked behind a captive portal

I'm meanwhile back to Trilby's elinks suggestion, maybe you only need to install a font package to see the portal in elinks?
You could quickly check the wiki in turkish, if it gives hints for font packages. https://wiki.archlinux.org/title/Main_p … rk%C3%A7e)

Offline

#25 2024-11-01 22:11:56

voxell
Member
Registered: 2024-11-01
Posts: 54

Re: [SOLVED] Locked behind a captive portal

seth wrote:

the dormitory internet only allows 1 device per account

Sanity check: what's the MAC in your phone?
b6:34:97:d1:a0:51 ?
What is the IP of your phone? 192.168.*?

Other sanity check:

ip a; ip r

https://imgur.com/a/FAxid9M

my phone mac is not b6:...


i use arch (since Nov 1, 2024) btw

Offline

Board footer

Powered by FluxBB