• Post Reply Bookmark Topic Watch Topic
  • New Topic

Captive Portal ?  RSS feed

 
Ztopher Swift
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
Anyone knows how to write a script like the "Captiveportal" ? Redirect a user to a specific URL where they have to logon...
Thanx !
 
George Brown
Ranch Hand
Posts: 919
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is this 'Captiveportal' of which you write?
Do you mean something like the forwarding functionality offered by a RequestDispatcher (from a ServletContext)?
 
Ztopher Swift
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well actually the Captive portal is a concept that are used for WLAN users that are redirected to a site where they have to login. When the user opens their browser they are redirected to a login-stie, automatically. I would like to write a application and use sort of a �captive redirect� or Captive Portal concept to redirect a user, no matter which url he/she writes in the browser, to a local URL before he/she could browse the internet. I have tried to get information about this issue for some time now and no one seems to know. Do you, if not do you know were I could ???
URL for Captive Portal http://www.personaltelco.net/index.cgi/CaptivePortal

Cheers
 
Tim Holloway
Saloon Keeper
Posts: 18800
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the heart of the Captive Portal is the fact that you own the user's Internet gateway and are conditionally proxying (or rerouting) web requests.
 
Ztopher Swift
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, i guess. But i do own the gateway and have access. Can i write a application in java that litsens to traffics that passes through th gateway, and redirect them to my login URL ???
Cheers
 
Ztopher Swift
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Buy the way...I do not own the gateway, i'm just developing it.
Hope someone can help me ;-)
 
Tim Holloway
Saloon Keeper
Posts: 18800
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That sounds like it "ought" to be easy. If you are a tcp/ip gateway, you should be able to just write a Java application that listens on port 80 (and/or any other ports of interest), rewrites the URLs and passes them on. In other words, a rewriting proxy server.
 
Ztopher Swift
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, sounds fairly easy, but can you give me some examples. I have solved it with iptables in LINUX, but it would be cool to have a java App on my server that works on any platform. ;-)
Cheers
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!