LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-07-2012, 02:52 PM   #1
kenneth_phough
Member
 
Registered: Dec 2005
Location: Birmingham, AL
Distribution: CentOS, REHL, Vine Linux
Posts: 67

Rep: Reputation: 3
Problem with only allowing registered users to use the Internet...


Hi All,

I was given the task to implement a system similar to NetReg, but have run into some trouble and need to be enlightened. (Why not use NetReg? Idk, but my boss whats me to develop our own.)

Goal:
Users who connect to our network (wired or wireless) must register their computer and agree to our AUP before being able to connect to the Internet.

Test Env Setup:

LAN <==> eth1 [ GATEWAY BOX (CentOS 5.8) ] eth0 <==> Internet


What I have so far:
1) MySQL, Apache, DHCP and DNS server running on the gateway box. (MySQL and Apache is for the front-end, i.e. registering new computers/devices)
2) Registered computers are added to /etc/dhcpd.conf and given a static IP in the 192.168.1.X/24 subnet. All non-registered computers are assigned an IP in a different subnet (192.168.2.X/24)
3) Forwarding is enabled and all users from 192.168.2.X/24 are redirected to my registration page.

Problem:
I am unable to block "Rogue" users. That is if I assign myself an IP address, gateway and DNS, I can bypass the registration page and use the Internet as I like. My thought to resolve this was to block forwarding to the internet for all and then only allow forwarding to registered IP address in iptables. But this seems cumbersome. Is there a more practical way to do this?

Thanks in advance!

Ken
 
Old 08-09-2012, 04:35 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
This has been sitting for a day so I'll guess an answer.

I might be tempted to send a proxy.pac. A smart user could figure out how to get past that so maybe I'd authenticate the user based on their logon and use that to allow access. As to how to dot that exactly I have never done it. Windows uses a similar way to authenticate against AD.
 
Old 08-10-2012, 10:16 AM   #3
kenneth_phough
Member
 
Registered: Dec 2005
Location: Birmingham, AL
Distribution: CentOS, REHL, Vine Linux
Posts: 67

Original Poster
Rep: Reputation: 3
Okay, thanks jefro! I think I might implement both proxy and net filtering and see where I get.
 
  


Reply



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
not allowing users to access internet using port 80 through squid proxy dolreich_c Linux - Security 1 08-02-2007 02:28 AM
Linux registered users DotHQ General 2 04-06-2006 04:03 PM
Only allowing users in a single group to ssh from internet eggi Linux - Security 4 12-19-2005 11:06 AM
not allowing me to login as other users madamson Solaris / OpenSolaris 7 10-07-2005 05:49 AM
RedHat 9.0 available to download For Registered Users first?? tr4nce Linux - Distributions 2 03-26-2003 08:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:31 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
Open Source Consulting | Domain Registration