Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Captive Portal on Different Domain
« previous
next »
Print
Pages: [
1
]
2
Author
Topic: Captive Portal on Different Domain (Read 274 times)
run('Jimbo');
Newbie
Posts: 21
Karma: 0
Captive Portal on Different Domain
«
on:
October 24, 2024, 06:19:40 pm »
Hi, is it possible to run captive portal on a different domain/ip so that I'm not sharing my router domain?
Thanks
«
Last Edit: October 24, 2024, 09:34:15 pm by jimbo
»
Logged
Jimbo.
OPN
sense
24.7.7
------------------------
run('Jimbo');
Newbie
Posts: 21
Karma: 0
Re: Captive Portal on Different Domain
«
Reply #1 on:
October 25, 2024, 10:26:19 am »
Any pointers?
Thanks
Logged
Jimbo.
OPN
sense
24.7.7
------------------------
dseven
Sr. Member
Posts: 306
Karma: 33
Re: Captive Portal on Different Domain
«
Reply #2 on:
October 25, 2024, 11:13:02 am »
What do you mean by "sharing my router domain"?
You can specify a Hostname in the captive portal configuration, but clients must still be able to resolve that to the IP address that the capture portal service is listening on.
What problem are you trying to solve?
Logged
run('Jimbo');
Newbie
Posts: 21
Karma: 0
Re: Captive Portal on Different Domain
«
Reply #3 on:
October 25, 2024, 11:55:29 am »
I have vlans and for them to access the portal they are redirected to the router domain.. Is it possible to run the portal on a different domain so guests etc can't see the root domain...
Thanks
Logged
Jimbo.
OPN
sense
24.7.7
------------------------
dseven
Sr. Member
Posts: 306
Karma: 33
Re: Captive Portal on Different Domain
«
Reply #4 on:
October 25, 2024, 12:07:23 pm »
I'm still not sure what it is that you're trying to accomplish ... but you can put whatever hostname you want in the captive portal configuration, so long as the clients can resolve it to the IP address that the captive portal is listening on. You could use a host override in Unbound DNS with some fake hostname/domain.....
Logged
run('Jimbo');
Newbie
Posts: 21
Karma: 0
Re: Captive Portal on Different Domain
«
Reply #5 on:
October 25, 2024, 12:51:06 pm »
Yeah the unbound DNS override is sort of what I mean but I wanted it to run on a different ip also so there is no way a user could get the ip for the router...
Thanks
Logged
Jimbo.
OPN
sense
24.7.7
------------------------
dseven
Sr. Member
Posts: 306
Karma: 33
Re: Captive Portal on Different Domain
«
Reply #6 on:
October 25, 2024, 12:54:13 pm »
The IP of the router is going to be the gateway for the clients. There is no way to hide that.
Logged
run('Jimbo');
Newbie
Posts: 21
Karma: 0
Re: Captive Portal on Different Domain
«
Reply #7 on:
October 25, 2024, 01:14:04 pm »
I know that, that's why I was asking if I can run it on a different domain/IP
Thanks
Logged
Jimbo.
OPN
sense
24.7.7
------------------------
Patrick M. Hausen
Hero Member
Posts: 6807
Karma: 572
Re: Captive Portal on Different Domain
«
Reply #8 on:
October 25, 2024, 01:15:38 pm »
Quote from: run('Jimbo'); on October 25, 2024, 01:14:04 pm
I know that, that's why I was asking if I can run it on a different domain/IP
But your clients will still have the router as their default GW, so they know the router IP, anyway.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
run('Jimbo');
Newbie
Posts: 21
Karma: 0
Re: Captive Portal on Different Domain
«
Reply #9 on:
October 25, 2024, 01:17:44 pm »
They are on vlans with there own subnets/gateways...
Thanks
Logged
Jimbo.
OPN
sense
24.7.7
------------------------
Patrick M. Hausen
Hero Member
Posts: 6807
Karma: 572
Re: Captive Portal on Different Domain
«
Reply #10 on:
October 25, 2024, 01:19:35 pm »
And each of these gateways is your router, isn't it?
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
run('Jimbo');
Newbie
Posts: 21
Karma: 0
Re: Captive Portal on Different Domain
«
Reply #11 on:
October 25, 2024, 01:24:07 pm »
Course, but the firewall blocks all private networks so they can't ping the router...
Thanks
Logged
Jimbo.
OPN
sense
24.7.7
------------------------
dseven
Sr. Member
Posts: 306
Karma: 33
Re: Captive Portal on Different Domain
«
Reply #12 on:
October 25, 2024, 01:34:04 pm »
The IP address used for the captive portal is the same IP address used by clients as their gateway. You can't hide it.
Logged
run('Jimbo');
Newbie
Posts: 21
Karma: 0
Re: Captive Portal on Different Domain
«
Reply #13 on:
October 25, 2024, 01:36:15 pm »
Ok, thanks
Logged
Jimbo.
OPN
sense
24.7.7
------------------------
dseven
Sr. Member
Posts: 306
Karma: 33
Re: Captive Portal on Different Domain
«
Reply #14 on:
October 25, 2024, 01:40:22 pm »
You could actually create a loopback interface, and give it any IP address you like, and use that (either directly or through a DNS host override) as the captive portal hostname... but I still don't really see any value in that, unless you think that hiding the fact that the captive portal is running on the firewall itself has some value......
Logged
Print
Pages: [
1
]
2
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Captive Portal on Different Domain