
22nd February 2006, 16:01
|
|
Junior Member
|
|
Join Date: Feb 2006
Location: Iowa
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
AUP w/ squid redirections
I am an 'advanced' linux/network admin looking for assistance...
I have a gentoo linux box w/ iptables redirecting all traffic through it to the local squid box. I would like to have people 'agree' to an AUP (acceptable use policy) before they are able to access the internet. (like a hotel does)
I have been scouring the internet for answers to this and have (so far) come up with nothing.
Any help would be greatly appreciated.
In the meantime I will be browsing the forums here and answering some questions. 
thanks!
|

22nd February 2006, 18:07
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
You could set up an Apache, and if people come there the first time, they see the AUP, and after they've accepted it, you could use Apache's proxy module to fetch the content from Squid. Something like
Code:
ProxyPassReverse / http://<squid_server>:8080/
in combination with rewrite rules...
|

22nd February 2006, 18:58
|
|
Junior Member
|
|
Join Date: Feb 2006
Location: Iowa
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
hm...ok. I have apache already running on the box, but do not have that module right now. I will have to research that, but it sounds as if that would work.
Would all the traffic then go though apache as well as squid?
|

22nd February 2006, 23:45
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
Quote:
|
Originally Posted by alterself
Would all the traffic then go though apache as well as squid?
|
Yes. I don't know any other solution right now...
|

23rd February 2006, 01:03
|
|
Junior Member
|
|
Join Date: Feb 2006
Location: Iowa
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
hmm...ok, i think that would add a little too much load on apache, but the server is a big boy...  so anyway, do you have any idea how they manage to do it at hotels and other 'public' access networks?
Let me give you more details. This network is on a vlan of the hospital network (on which i am the admin) and this vlan is going to be for public access (wireless and wired). We need/want to be able to make people agree to an AUP first. I already have the public network going through the squid box via iptables (transparently) as i stated already. This box is running apache, and many other GPL'd based software as well.
SO, if you have any other ideas (im still workin on the apache module) please let me know.
thanks!
|

23rd February 2006, 07:58
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
Quote:
|
Originally Posted by alterself
hmm...ok, i think that would add a little too much load on apache, but the server is a big boy...  so anyway, do you have any idea how they manage to do it at hotels and other 'public' access networks?
|
No, not really.
Another solution might be that you make Squid redirect the first request from every client to your AUP page by manipulating the fist DNS query...
|

23rd February 2006, 15:21
|
|
Junior Member
|
|
Join Date: Feb 2006
Location: Iowa
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
ok. all these ideas sound great, and no offence to you, as you have been a great help, but I need working solutions. I have asked this question other places and scoured the net for answers, and all anyone has is theories...
I think the dns query would be a good way to do it, but how would it get straighted out that it was the 'first' time that machine had been on that network, so that it didnt just randomly kick users back to the AUP?
This may turn out to be completly futile after all.
|

23rd February 2006, 16:32
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
I can't give you an out-of-the-box solution as I've never done something like this before. I can only give you food for thought...
|

23rd February 2006, 18:26
|
|
Junior Member
|
|
Join Date: Feb 2006
Location: Iowa
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
|
Originally Posted by falko
I can't give you an out-of-the-box solution as I've never done something like this before. I can only give you food for thought...
|
...yes i know that (now). As I said, I do appreciate the ideas.
Hopefully we can get a few other people to pick up on this thread and provide some feedback.
Somewhere out there someone other me has had to have wanted to do this. [and got it to work...]
thanks again!
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 20:14.
|
Recent comments
1 day 11 hours ago
1 day 19 hours ago
1 day 22 hours ago
2 days 7 min ago
2 days 1 hour ago
2 days 3 hours ago
2 days 4 hours ago
2 days 5 hours ago
2 days 21 hours ago
2 days 22 hours ago