LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-23-2015, 12:03 AM   #1
subbu2k2in
LQ Newbie
 
Registered: Sep 2015
Posts: 6

Rep: Reputation: Disabled
How to block internet based on IP address


Hi Frieds,
I have dhcp and squid servers. I have bind all my client ip addresses along with their respective MAC id's. But some times it is wokrking properly. But sometimes those are allotting to other MAC ids. Kindly help me on this.

Thanks in advance...
 
Old 09-23-2015, 03:19 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321
looks like dhcp misconfiguration, but we need more info...
 
Old 09-23-2015, 03:33 AM   #3
subbu2k2in
LQ Newbie
 
Registered: Sep 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
This is how my dhcpd.conf file is

#
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.example
# see dhcpd.conf(5) man page
#
ddns-update-style none;
ignore client-updates;

subnet 10.10.4.0 netmask 255.255.255.0
{

# --- default gateway
option routers 10.10.4.205;
option subnet-mask 255.255.255.0;


option nis-domain "xyz.com";
option domain-name "xyz.com";
option domain-name-servers 10.10.4.5;
option netbios-name-servers 10.10.4.5;
option time-offset -18000; #eastern standard time


#option broadcast-address 192.168.1.255;

after this i have given all mac ids along with ip addresses.

if there is any mistake. kindly correct me.

Last edited by subbu2k2in; 09-23-2015 at 03:35 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to do dhcpd to give a certain ip address based on mac address robertjinx Linux - Server 11 11-27-2010 05:57 AM
[SOLVED] IPTABLES: Restrict Internet access based on time of day and MAC address ScottSmith Linux - Security 7 02-09-2010 02:25 AM
Internet based mail sites block santanu.santanu Linux - Security 16 07-02-2008 04:27 AM
Squid acl block internet by ip address xzeppelin Linux - Newbie 5 05-28-2008 03:06 PM
by using iptables block mac address to restric user to access internet Farrukh Fida Linux - Networking 3 10-09-2006 07:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration