Restrict static IPs (Only DHCP) on Debian Squeeze

1

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.

IlyaGulya

Posted 2013-04-27T14:52:33.430

Reputation: 35

What is acting as a DHCP server? Are you asking how to disable DHCP? – terdon – 2013-04-27T14:58:07.890

dnsmasq is DHCP server. I'm asking how to disable free DHCP leasing. I want to give IPs only to allowed MACs. – IlyaGulya – 2013-04-27T15:08:37.963

Answers

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

xpt

Posted 2013-04-27T14:52:33.430

Reputation: 5 548