Koozali.org: home of the SME Server

Force DHCP To Refuse Clients A DHCP Lease Depending On Client MAC Address

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Re: Force DHCP To Refuse Clients A DHCP Lease Depending On Client MAC Address
« Reply #15 on: December 28, 2008, 06:01:25 PM »
This is what he's looking for:
Code: [Select]
mkdir -p /etc/e-smith/templates-custom/etc/dhcpd.conf

echo " deny unknown-clients;" > /etc/e-smith/templates-custom/etc/dhcpd.conf/25DenyUnknownHost

Offline hatsa

  • **
  • 25
  • +0/-0
Re: Force DHCP To Refuse Clients A DHCP Lease Depending On Client MAC Address
« Reply #16 on: December 30, 2008, 01:32:08 PM »
thanx stuntshell you are the one  :hammer:

Offline hatsa

  • **
  • 25
  • +0/-0
Re: Force DHCP To Refuse Clients A DHCP Lease Depending On Client MAC Address
« Reply #17 on: December 30, 2008, 11:52:21 PM »
plz i want to Deny the pc's that have manual IP the pc's that didn't use the dhcp server to get ip plz i want to deny them to just tell me

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Force DHCP To Refuse Clients A DHCP Lease Depending On Client MAC Address
« Reply #18 on: December 31, 2008, 12:33:19 AM »
That is a seperate problem. It depends on what you want to block them from doing.

If you want to restrict Internet access, try DansGuardian.

If you want to block all network access by unauthorised users, you could investigate MAC address security on your switches.

Offline hatsa

  • **
  • 25
  • +0/-0
Re: Force DHCP To Refuse Clients A DHCP Lease Depending On Client MAC Address
« Reply #19 on: December 31, 2008, 05:36:58 AM »
thanx David Harper but i have tryed it befour i am wating for you stuntshell

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Force DHCP To Refuse Clients A DHCP Lease Depending On Client MAC Address
« Reply #20 on: December 31, 2008, 06:02:37 AM »
plz i want to Deny the pc's that have manual IP the pc's that didn't use the dhcp server to get ip

If that is what you wanted, then that is what you should have asked for. You have wasted a lot of people's time by saying that you wanted to refuse clients a DHCP lease.

SME server has no facility for selectively blocking or ignoring LAN traffic. You will need to develop it yourself, or use the capabilities of a higher end ethernet switch.

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Force DHCP To Refuse Clients A DHCP Lease Depending On Client MAC Address
« Reply #21 on: December 31, 2008, 06:17:52 AM »
I recommend TP-Link web managed switches. They have MAC security and are affordably priced.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Force DHCP To Refuse Clients A DHCP Lease Depending On Client MAC Address
« Reply #22 on: December 31, 2008, 09:49:21 AM »
If that is what you wanted, then that is what you should have asked for. You have wasted a lot of people's time by saying that you wanted to refuse clients a DHCP lease.
I second that, please read and try to follow the guidelines set out here: http://wiki.contribs.org/SME_Server:Community:Forum
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Force DHCP To Refuse Clients A DHCP Lease Depending On Client MAC Address
« Reply #23 on: December 31, 2008, 10:01:32 AM »
I second that, please read and try to follow the guidelines set out here: http://wiki.contribs.org/SME_Server:Community:Forum

I will add: hatsa please write in plain english and not in sms way, thank you ;-)

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Re: Force DHCP To Refuse Clients A DHCP Lease Depending On Client MAC Address
« Reply #24 on: January 01, 2009, 04:09:54 PM »
plz i want to Deny the pc's that have manual IP the pc's that didn't use the dhcp server to get ip plz i want to deny them to just tell me
That will be an ARP feature, not DHCP. You'll need to make all your entries static, it will be a lot of work since SME is not really designed for that. Please follow the suggestions above or change your topology, by either adding a router that does the job, or a switch capable of controlling the ARP entries.

Thanks,