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.

  • 1
    Close this question and move it to Server Fault Commented May 16, 2012 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 ;) Commented May 17, 2012 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.

  • OP asks for all internet traffic, not all web traffic. A Gateway might be better. Commented May 17, 2012 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 Commented May 17, 2012 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).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .