Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

We have 300 hosts in our LAN. They use a linux server as default gateway. We need to send all traffic through a server machine which would then forward it to internet.

I want to add a central login system, where all students need to login first to access internet. Unauthorized access will be redirected to a link. Process should be like this,

Student_Request-> Login -YES-> Internet 

How can i implement this? i mean from where should i start? Is there any tools to control iptable kind of settings? And one thing, our server is running in linux.

share|improve this question

migrated from stackoverflow.com May 17 '12 at 15:00

This question came from our site for professional and enthusiast programmers.

1  
Close this question and move it to Server Fault –  Mike Pennington May 16 '12 at 17:35
    
Keyword suggestion: "captive portal". That's what such systems are called. "<expletive deleted> annoyance" would also meet the latter criterion but give you less usable results ;) –  rackandboneman May 17 '12 at 15:15

2 Answers 2

You are looking for a http proxy server. Very often, squid-proxy is used for this purpose.

If you are also looking for web content filtering, Dansguardian supports per-user authentication and might do what you're looking for.

share|improve this answer
    
OP asks for all internet traffic, not all web traffic. A Gateway might be better. –  happyhairydude May 17 '12 at 15:04
    
OP is probably not a native English speaker. I had to edit his post to get something understandable before it was migrated from Stack Overflow. While not explicitly stated, he seemed to be most concerned with http –  Mike Pennington May 17 '12 at 15:38

I think, from your description, you should be looking at Network Access Control (http://en.wikipedia.org/wiki/Network_Access_Control). There are countless products (hardware, software) to choose but you may be interested to look at PacketFence (http://www.packetfence.org/home.html) an open source product which runs very nicely on Linux machines (prefers RedHat).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.