LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to block internet based on IP address (https://www.linuxquestions.org/questions/linux-server-73/how-to-block-internet-based-on-ip-address-4175554253/)

subbu2k2in 09-23-2015 12:03 AM

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...

pan64 09-23-2015 03:19 AM

looks like dhcp misconfiguration, but we need more info...

subbu2k2in 09-23-2015 03:33 AM

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.


All times are GMT -5. The time now is 03:46 PM.