View previous topic :: View next topic |
Author |
Message |
jasetheface n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/TV Stars/scotty1.jpg)
Joined: 23 Apr 2004 Posts: 20 Location: Brazoria Tx
|
Posted: Mon Oct 11, 2004 2:12 pm Post subject: DHCP |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
nemo_ Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/1119924807412ddf3f76f02.png)
Joined: 19 Sep 2002 Posts: 167 Location: Brussels, Belgium
|
Posted: Mon Oct 11, 2004 2:59 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
ajnabi Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 21 May 2004 Posts: 208
|
Posted: Mon Oct 11, 2004 3:04 pm Post subject: vpn |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
jasetheface n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/TV Stars/scotty1.jpg)
Joined: 23 Apr 2004 Posts: 20 Location: Brazoria Tx
|
Posted: Mon Oct 11, 2004 6:13 pm Post subject: Assigning mac to ip............. |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
nemo_ Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/1119924807412ddf3f76f02.png)
Joined: 19 Sep 2002 Posts: 167 Location: Brussels, Belgium
|
Posted: Mon Oct 11, 2004 7:02 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
codemaker Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/79408042841ead5e6730ea.gif)
Joined: 03 Jun 2004 Posts: 398 Location: Lisboa, Portugal
|
Posted: Mon Oct 11, 2004 8:56 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
jasetheface n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/TV Stars/scotty1.jpg)
Joined: 23 Apr 2004 Posts: 20 Location: Brazoria Tx
|
Posted: Mon Oct 11, 2004 9:01 pm Post subject: VPN |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
nemo_ Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/1119924807412ddf3f76f02.png)
Joined: 19 Sep 2002 Posts: 167 Location: Brussels, Belgium
|
Posted: Mon Oct 11, 2004 9:46 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
jasetheface n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/TV Stars/scotty1.jpg)
Joined: 23 Apr 2004 Posts: 20 Location: Brazoria Tx
|
Posted: Tue Oct 12, 2004 3:08 pm Post subject: Force mac address |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
codemaker Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/79408042841ead5e6730ea.gif)
Joined: 03 Jun 2004 Posts: 398 Location: Lisboa, Portugal
|
Posted: Tue Oct 12, 2004 3:25 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
jasetheface n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/TV Stars/scotty1.jpg)
Joined: 23 Apr 2004 Posts: 20 Location: Brazoria Tx
|
Posted: Tue Oct 12, 2004 10:08 pm Post subject: Question |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
nobspangle Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/210249061640b0c1d626f5b.gif)
Joined: 23 Mar 2004 Posts: 1318 Location: Manchester, UK
|
Posted: Wed Oct 13, 2004 7:21 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|