nerdexam
Red_Hat

RH302 · Question #112

Share the Internet using squid for your Local LAN. Proxy server should be run on 8080 port.

1. vi /etc/squid/squid.conf #default: http_port 8080 #Recommended minimum configuration: Near the src acl src section acl mynet src 192.168.0.0/255.255.255.0 #Default: http_access deny all #Under Here http_access allow mynet 2. service squid start 3. chkconfig squid on squid is…

Network configuration

Question

Share the Internet using squid for your Local LAN. Proxy server should be run on 8080 port.

Explanation

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

Near the src acl src section

acl mynet src 192.168.0.0/255.255.255.0 #Default:

http_access deny all

#Under Here http_access allow mynet 2. service squid start 3. chkconfig squid on squid is a proxy caching server, using squid we can share the internet, block the internet, to certain network. First we should define the port for squid, the standard port for squid is 3128. We can run squid on different port by specifying http_port portnumber. To block or allow the Internet access to hosts, we should create the acl (Access Control List). In this file we can specify only the IP address. Example: acl aclname src IP/Netmask After creating acl we can block or allow the internet to specified acl. http_access allow | deny alcname

Topics

#Squid proxy#internet sharing#proxy port#LAN

Community Discussion

No community discussion yet for this question.

Full RH302 Practice