Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can i restrict access to the Internet for users with static IPs? Can i disable free dhcp leasing?

I'm running Debian Squeeze with dnsmasq as dhcp server. All users has their own ip, mapped to mac.

Thanks.

share|improve this question
    
What is acting as a DHCP server? Are you asking how to disable DHCP? –  terdon Apr 27 '13 at 14:58
    
dnsmasq is DHCP server. I'm asking how to disable free DHCP leasing. I want to give IPs only to allowed MACs. –  IlyaGulya Apr 27 '13 at 15:08

1 Answer 1

  1. use dnsmasq as DHCP server
  2. List all your known devices in /etc/ethers
  3. List all your static IPs in /etc/dnsmasq.d/dnsmasq.intranet.conf. Ref: DNSmasq Installation & Configuration
  4. Use the following (in /etc/dnsmasq.d/dnsmasq.intranet.conf) to ignore any unknown clients

    # Ignore any clients which are not specified in dhcp-host lines
    # or /etc/ethers.
    dhcp-ignore=tag:!known

  5. Ref: http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq.conf.example

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.