Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
24.7 Production Series
»
Logging into a captive portal
« previous
next »
Print
Pages: [
1
]
Author
Topic: Logging into a captive portal (Read 178 times)
fctr
Newbie
Posts: 27
Karma: 2
Logging into a captive portal
«
on:
September 19, 2024, 06:43:52 am »
Greetings folks!
So here's the situation:
My daughter is at school and they provide free wifi access for the entire school population, controlled through captive portal logins, using their school ID and password. For devices like phones, tablets, and most PCs, joining the wifi access point is pretty darned simple.
I'd like to give my daughter her own OPNsense box, using the school's wifi as the WAN. Testing at home was pretty straight forward, as the USB wifi card connected to my home wifi, using WPA2.
I don't have a captive portal at home, but could easily set one up for testing.
I'm not sure how to go about automating the wifi connection to a captive portal. Can this be done through a plug-in, or a scripting language? Heck, I'd be happy to write a plug-in to do this, with the proper guidance from experienced BSD folks holding my hand a little.
Anyone got any ideas?
Logged
bartjsmit
Hero Member
Posts: 1966
Karma: 193
Re: Logging into a captive portal
«
Reply #1 on:
September 19, 2024, 08:30:36 am »
What is the purpose of the extra firewall?
You need to speak to the school IT support to bypass their portal.
Logged
fctr
Newbie
Posts: 27
Karma: 2
Re: Logging into a captive portal
«
Reply #2 on:
September 19, 2024, 08:40:48 am »
The purpose is to have the firewall use WireGuard to connect to home, transparently. And their IT department is clueless about the captive portal. I'm pretty sure they're playing dumb just because they don't want to have devices like this on their network.
Logged
Seimus
Hero Member
Posts: 521
Karma: 52
Re: Logging into a captive portal
«
Reply #3 on:
September 19, 2024, 09:29:02 am »
Why not to just set on yours daughter devices (phones, laptops, etc.) the Wireguard directly? With the Home OPNsense to be the WG Server?
Regards,
S.
Logged
Networking is love. You may hate it, but in the end, you always come back to it.
OPNSense HW
APU2D2 - deceased
N5105 - i226-V | Patriot 2x8G 3200 DDR4 | L 790 512G -
VM HA(SOON)
N100 - i226-V | Corsair 16G 4800 DDR5 | S 980 500G -
PROD
bartjsmit
Hero Member
Posts: 1966
Karma: 193
Re: Logging into a captive portal
«
Reply #4 on:
September 19, 2024, 09:32:03 am »
You can use OpenVPN with the port-share option sharing TCP 443 with a web server. Perhaps the school portal will allow the VPN after the web session has been established.
However, you are using their network and this may not align with their T&C's.
Logged
fctr
Newbie
Posts: 27
Karma: 2
Re: Logging into a captive portal
«
Reply #5 on:
September 19, 2024, 10:17:11 am »
I think y'alls are missing the point. I'm not looking to solve the VPN issue. I'm looking to automate logging into a captive portal.
Plus some of her devices are embedded (TV, etc) and can't use WireGuard or any VPN.
So back to my original question: Is it possible to log into a captive portal in OPNsense?
Logged
Seimus
Hero Member
Posts: 521
Karma: 52
Re: Logging into a captive portal
«
Reply #6 on:
September 19, 2024, 11:32:37 am »
Maybe I am missing here something but you mentioned the school & school wifi as WAN & use WireGuard to connect to home.
But I guess your daughter is most likely on collage?
And has a lot of stuff that connects to the internet?
And basically what you want to do is:
1. Put Daughter_OPNsense as her GW?
2. Have the OPNsense log into the school system captive portal?
3. Connect Daughter_OPNsense to your home network via WG?
Regards,
S.
Logged
Networking is love. You may hate it, but in the end, you always come back to it.
OPNSense HW
APU2D2 - deceased
N5105 - i226-V | Patriot 2x8G 3200 DDR4 | L 790 512G -
VM HA(SOON)
N100 - i226-V | Corsair 16G 4800 DDR5 | S 980 500G -
PROD
fctr
Newbie
Posts: 27
Karma: 2
Re: Logging into a captive portal
«
Reply #7 on:
September 19, 2024, 04:39:35 pm »
That is EXACTLY correct. The only part I'm having trouble with is automating the captive portal login.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
24.7 Production Series
»
Logging into a captive portal