Squid Proxy Server with Restricted Access , Error no internet

!! ////

 

Restricting Access to specific Web sites

 

DHCP server with NAT

# DHCP Client

#1. DHCP sunucusuna giren adamin,  ping atabilmesi icin, asagidaki komutu yazmasi gerekir.  NAmeserver olarak dhcp sunucusunu vermesi gerekir. 

nameserver 172.20.0.1
# bunu yazdiktan sonra ping atiyor. ama Dosya indiremiyor.

DHCP SERVER

# If the client wants to connect  internet,  The DHCP server should enable  ip forwarding, after that

should   SET default GATeway  to   NAT router GW.

route add default gw 192.168.122.1

 route add default gw 192.168.122.1

Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.122.1 0.0.0.0 UG 0 0 0 eth2
0.0.0.0 172.20.0.1 0.0.0.0 UG 0 0 0 eth0
172.10.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1

 

 

 

 

 

 

 

 

LastOrDefault: Where an Element Is Not Found

uses Skip to get all but the first 4 elements of the array.