Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.


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
up vote 1 down vote accepted
  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.

  5. Ref:

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .