LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices



Reply
 
Search this Thread
Old 03-19-2005, 03:08 PM   #1
darknova2k
LQ Newbie
 
Registered: Mar 2005
Posts: 2

Rep: Reputation: 0
Distro for the 'cafe. Redirects, logins, etc.


My uncle just emailed me and told me that he wants me to install wireless internet access in one of his resturants!

At first I wanted to just throw a copy of smoothwall on an old box and put it on that network with a couple wireless access points. Easy. But my uncle gets the idea from a friend that he needs a couple of extra little features and I'm not sure if any router distros out there currently have any of these without having to pay for them!

List of what he's looking for:

Ability to remotely monitor traffic. Be emailed or SMS'd if an access point goes down.

VPN so he can admin the access points remotely

Bandwidth management. So we can limit bandwidth based on mac or IP Address.

Login page so that just visitors see a page with info on the access being provided that will have a login and a short disclaimer or terms of use section. Like it blocks internet access until they see the terms of use page then click "AGREE". Then once they click that, the internet is active for their mac address.

Page redirect. So that it redirects to a certain page when that person logs in

I know it's asking a lot. But I guess he stayed in a hotel once that had stuff like this and agreed with his friend when he suggested it.

I researched some gateways on ebay and they're like $300-$600 and some are even $1,000 for these features! Is there any FREE distro out there that has these features without having to configure the hell out of an install or with easy package upgrades? Like. I don't want to spend forever trying to figure out how to play around with radius or anything like that because I still don't get it (how to use radius or configure it).

Does anyone have any suggestions? My uncle seems hell bent on this kind of install. I'll do it for him but only if I can find the proper router distro.
 
Old 03-19-2005, 03:29 PM   #2
cylix
Member
 
Registered: Dec 2004
Location: Ohio
Distribution: Fedora Core 3
Posts: 125

Rep: Reputation: 15
Everything can be done outside of a specific distribution.... most distro's will even include the needed tools.

I've already done most of it (with the exception of a login page) That really just sounds like it could be implemented with a CGI script that kicks in an ipfilter script to allow that address access to the external network. So by default, your routing everything on port 80 to your local server and changing that rule once someone clicks a button.

Traffic monitoring is simply done via ipfilter rule sets and your flavor of graph generation. Probably by now someone has already rolled a utility to handle this (I had to do mine by myself some time ago

For failure detection, you simple implement some monitoring for the ip addresses. MIDAS is probably over kill for this, but it does a good bit of stuff. Instead, if NetSaint is still under active development you can give it a whirl. (be prepared to get your hands dirty as the last time I looked at it there was no gui installed).

Instead of VPN, you could simply use SSH tunneling and a simple utility to redirect needed ports. (Just some web based monitoring should do and all that entails is port 80) SSH will give you more flexibility if you need more ports or maybe just https available to a specific IP range.

Everything else is just simple reports and the medium is not difficult.

You are just going to be pooling a little bit of knowledge from here and there.

But as far as I understand, there is no distribution which does exactly what you are asking for.

I might be wrong....
 
Old 03-20-2005, 04:09 PM   #3
darknova2k
LQ Newbie
 
Registered: Mar 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the reply. Does anyone else have any suggestions also??
 
Old 03-22-2005, 08:05 PM   #4
cylix
Member
 
Registered: Dec 2004
Location: Ohio
Distribution: Fedora Core 3
Posts: 125

Rep: Reputation: 15
I'll go ahead and break things down...

netsaint - monitor ap's, send email when down, you could even configure a modem to page you.

login license:

default ipfilter rule: redirect all port 80 traffic to say 8080 to apache which serves up a cgi script.
The cgi script takes your ip address and adds an ipfilter rule to exclude you from this default ruleset.

Now here is where it gets fuzzy. ipfilter doesn't seem to care about time at least, not that I can tell, so here is where you can do some script magic. You could add the ip address and logon time. Then a script can come in from cron and check to see if their time allotment is up. At that point it could easily remove them from the exclusion list or normal forward rule. Ideally, you would also want a logoff option. (I would recommend implementing a quick way to create an account linked to some email address)

Another idea is to configure squid with logins. You get the benefit of not worrying about firewall rule sets and the bonus of caching to save some bandwidth. I'm sure there is some squid magic to log them off or time out.

remote monitoring - again, just keep it simple, there are free clients available and you could setup a quick easy logon to forward the localport of say 4501 to your local network of port 80. (or just allow remote access to netsaints web monitor)

bandwidth utilization - mrtg and ipfilter rules for accounting. if you want to get funky you could break bandwidth down by username (but that would be more work)

The more I look at your requests, the easier it seems to be to implement them, but I can't really sit down for a day and write up a howto. (Their are enough collections around and probably tools to do a lot of this)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirects in Zope (ZMS) nyk Programming 0 09-06-2005 06:08 AM
which distro for cafe linus johann Linux - General 6 09-02-2005 09:58 AM
which distro is suitable for internet cafe? x09h Linux - Distributions 11 05-08-2005 03:30 PM
Apache redirects?! How rincewind Linux - Software 3 02-23-2005 03:43 PM
which Linux distro for an internet cafe machine vannet Linux - Distributions 7 02-20-2004 06:17 AM


All times are GMT -5. The time now is 05:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration