SCIENTIFIC-LINUX-USERS Archives

September 2008

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Juan Pablo Macias <[log in to unmask]>
Reply To:
Juan Pablo Macias <[log in to unmask]>
Date:
Fri, 19 Sep 2008 11:43:16 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (46 lines)
Hi

I think it would be easier to make this at firewall level. For
example, assign an IP address range from 192.168.1.10 to 192.168.1.50
to unregistered addresses, and at your gateway, use iptables to block
addresses in that range from passing through. When you register your
client, assign an ip outside that range. You could make this based on
ports too.

Juan Pablo Macias

2008/9/19 vivek chal <[log in to unmask]>:
> Hello all !
> i have made a dhcp server that assigns temporary ip address to my clients on
> first attempt and when clients fill the registration form (which includes
> host name, MAC address etc), i write  entries in dhcp.conf to assign fixed
> ip address based on their MAC address.
> Now i want my server's some services like ssh,telnet and iptables will work
> only for registered users to whom i have assigned fixed ip address in
> dhcp.conf based on their MAC address so that only registered users can
> access internet . My machine is acting as a DNS, Gateway and DHCP.
>
> Can anyone help me to write such a script as I have to implement this server
> soon.
>
> Regards
> --
> Vivek Chalotra
> GRID Project Associate,
> High Energy Physics Group,
> Department of Physics & Electronics,
> University of Jammu,
> Jammu 180006,
> INDIA.
>



-- 
To follow the path,
look to the master,
follow the master,
walk with the master,
see through the master,
become the master

ATOM RSS1 RSS2