nerdexam
Red_Hat

RH302 · Question #181

141: Using squid block Internet to 192.168.1.0/24 Network and allow to 192.168.0.0/24 Network.

1. vi /etc/squid/squid.conf #default: http_port 8080 #Recommended minimum configuration: Near the src acl src section acI allownet src 192.168.0.0/255.255.0 acI denynet src 192.168.1.0/255.255.0 #Default: http_access deny all #Under Here http_access allow allownet http_access…

Network configuration

Question

141: Using squid block Internet to 192.168.1.0/24 Network and allow to 192.168.0.0/24 Network.

Explanation

  1. vi /etc/squid/squid.conf #default: http_port 8080 #Recommended minimum configuration:

Near the src acl src section

acI allownet src 192.168.0.0/255.255.0 acI denynet src 192.168.1.0/255.255.0 #Default:

http_access deny all

#Under Here http_access allow allownet http_access deny denynet 2. service squid start 3. chkconfig squid on

Topics

#Squid#proxy ACL#network filtering#access control lists

Community Discussion

No community discussion yet for this question.

Full RH302 Practice