Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DHCP
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jasetheface
n00b
n00b


Joined: 23 Apr 2004
Posts: 20
Location: Brazoria Tx

PostPosted: Mon Oct 11, 2004 2:12 pm    Post subject: DHCP Reply with quote

I have My DHCP server Running It works Great......
But what I want To do Is 1 of 2 things....................

I would like it if.................

When client asked for an IP address it would look at the hostname
and if the host name matched a "LIST" some List It would give that host an IP ADDRESS.

OR........................

When A client asked for an IP Address it Promt user of client for user name and password mark that user an only give one ipaddress to that user..

I don't know if ither is possible or not but that's what I need.........

Thanks for Your help in advance.................
_________________
The world isn't a bad place, It just has some bad places.........
Back to top
View user's profile Send private message
nemo_
Apprentice
Apprentice


Joined: 19 Sep 2002
Posts: 167
Location: Brussels, Belgium

PostPosted: Mon Oct 11, 2004 2:59 pm    Post subject: Reply with quote

Quote:
When client asked for an IP address it would look at the hostname
and if the host name matched a "LIST" some List It would give that host an IP ADDRESS.


you do realize that you can't match the requestor's hostname before you assign him one, right ?

what you can do is assign a specific IP address based on the client's MAC address. It's very easy to setup, have a look at the examples in dhcpd.conf

prompting for a password is not possible, but since you can restrict leases based on the MAC you should be fine.
Back to top
View user's profile Send private message
ajnabi
Apprentice
Apprentice


Joined: 21 May 2004
Posts: 208

PostPosted: Mon Oct 11, 2004 3:04 pm    Post subject: vpn Reply with quote

I'm not 100% sure about this, but you might be wanting a VPN (Virtual Private Network). They are usually used to connect long distance, but can also be used for local network control. I'm new to them so you might have to google and read up on it to see if that is best for you.
Back to top
View user's profile Send private message
jasetheface
n00b
n00b


Joined: 23 Apr 2004
Posts: 20
Location: Brazoria Tx

PostPosted: Mon Oct 11, 2004 6:13 pm    Post subject: Assigning mac to ip............. Reply with quote

Problem with this option is users can change interfaces at will or spoof mac addresses causing system to hang. Futhermore it is hard for me to say what the mac address will be. The users on this network are an extended lan connection.
Code:
deny unknown-clients;

Does this only work for mac addresses?
if so, where would I input the known mac-address I wish to give a lease to.
_________________
The world isn't a bad place, It just has some bad places.........
Back to top
View user's profile Send private message
nemo_
Apprentice
Apprentice


Joined: 19 Sep 2002
Posts: 167
Location: Brussels, Belgium

PostPosted: Mon Oct 11, 2004 7:02 pm    Post subject: Reply with quote

If you are worrying about MAC spoofing and all then you need to start looking into VPNs - just configuring your dhcp server will not protect your LAN since any client can still assign a valid IP and ignore DHCP settings alltogether ..
Back to top
View user's profile Send private message
codemaker
Guru
Guru


Joined: 03 Jun 2004
Posts: 398
Location: Lisboa, Portugal

PostPosted: Mon Oct 11, 2004 8:56 pm    Post subject: Reply with quote

One more vote to the VPN:

If you are really serious about restricting IP assignments and you have a lot of potencial users, VPN is the way to go ;). DHCP doesn't have any secure authentication method.
Back to top
View user's profile Send private message
jasetheface
n00b
n00b


Joined: 23 Apr 2004
Posts: 20
Location: Brazoria Tx

PostPosted: Mon Oct 11, 2004 9:01 pm    Post subject: VPN Reply with quote

If I use VPN I will need to load software on all end user computers?

There is a learning curve with the users on my network that needs something that is simple......

How would it work?
_________________
The world isn't a bad place, It just has some bad places.........
Back to top
View user's profile Send private message
nemo_
Apprentice
Apprentice


Joined: 19 Sep 2002
Posts: 167
Location: Brussels, Belgium

PostPosted: Mon Oct 11, 2004 9:46 pm    Post subject: Reply with quote

the software is going to depend on your setup - there are several alternatives available for linux/windows/mac ...

you might want to lookup information on IPSEC as it is probably the best VPN you can get (but this is going to take more effort than setting up your DHCP daemon of course ..)
it's up to you to decide wether that's really needed - it's easier to make a good security policy and not allow any unauthorized device to physically connect the network (that excludes wifi, of course).
Back to top
View user's profile Send private message
jasetheface
n00b
n00b


Joined: 23 Apr 2004
Posts: 20
Location: Brazoria Tx

PostPosted: Tue Oct 12, 2004 3:08 pm    Post subject: Force mac address Reply with quote

If I tell users what mac address to use for dhcp....
Where do I code the list of mac addresses and is there a "privite range" of addresses tha I should use?

The problem with using VPN is this network will be too fluid. And I Think that vpn will be too hard for the users.............
_________________
The world isn't a bad place, It just has some bad places.........
Back to top
View user's profile Send private message
codemaker
Guru
Guru


Joined: 03 Jun 2004
Posts: 398
Location: Lisboa, Portugal

PostPosted: Tue Oct 12, 2004 3:25 pm    Post subject: Reply with quote

Every network interface card has it's unique MAC address. There's not range of MAC addresses you can use. The addresses are already assigned in the network cards hardware.

If you want to restrict assingning IP addresses to a limited number of MAC addresses, you have to make a list of your users' interface card's mac addresses. This can be a problem if you have lots of users. You can then config your dhcp server do answer to only those MAC addresses.

This is the config I use at home to assign a fixed IP address to each MAC address.

Code:

host something {
    hardware ethernet 00:A0:1E:ED:23:ED;
    fixed-address 192.168.0.5;
  }

(The MAC address listed below and hostname were changed)

You probably can also configure a range of ip addresses for each MAC but I'm not suer about that.
Back to top
View user's profile Send private message
jasetheface
n00b
n00b


Joined: 23 Apr 2004
Posts: 20
Location: Brazoria Tx

PostPosted: Tue Oct 12, 2004 10:08 pm    Post subject: Question Reply with quote

When I start DHCPD I get
Quote:
DHCPREQUSET from 'mac address' 'hostname' via interface

The name is aready set in my hostname field of my client computer........
and dhcpd see's my host name.
Is there no way to make a list of known host name and allow them
and if there not on the the list or the field is vancant to deny them?
_________________
The world isn't a bad place, It just has some bad places.........
Back to top
View user's profile Send private message
nobspangle
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1318
Location: Manchester, UK

PostPosted: Wed Oct 13, 2004 7:21 am    Post subject: Reply with quote

you can make a list of known hostnames, but you also have to include the mac address (I think) I suppose you could try it without.

Once you've created your list of known hosts you use the deny unknown-clients directive to stop any other boxes connecting.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum