
if you are facing issues regarding "yum" not working, please refer to lecture 38 for troubleshooting.
Configure proxy settings on the Windows Edge browser by enabling the open proxy settings, entering the proxy address 172.24.0.1 and port 3128, and saving to access pages.
Create an ACL named lab1 to deny the 172.24.0.0/16 network. Apply http_access deny lab1 and then allow all, and verify access on C11, C21, and C30.
Demonstrate combining acl rules in squid to block specific file types for a single system using an aaa acl and badfiles, via http_access deny with an and condition.
Backup Current Repository Configuration:
First, make a backup of your current repository configuration files.
cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
Edit the Repository Configuration:
Open the CentOS-Base.repo file in a text editor. (vi or nano)
nano /etc/yum.repos.d/CentOS-Base.repo
Update the Base Repository URLs:
Replace the existing base repository URLs with the URLs pointing to the CentOS Vault. The updated configuration should look something like this:
[base]
name=CentOS-$releasever - Base
baseurl=http://vault.centos.org/7.9.2009/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
[updates]
name=CentOS-$releasever - Updates
baseurl=http://vault.centos.org/7.9.2009/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
[extras]
name=CentOS-$releasever - Extras
baseurl=http://vault.centos.org/7.9.2009/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Save the Changes:
Save the changes and exit the text editor (Ctrl+X, Y, Enter for nano).
Clean YUM Cache:
Clean the YUM cache to ensure it uses the updated repository configuration.
yum clean all
yum makecache
Update the System:
Now you can update your system using the Vault repositories.
yum update
This should allow you to continue using yum with the archived CentOS 7 repositories.
Squid proxy server is used for internet sharing. It is one of the most widely used, very robust and powerful server. It also provides access control (ACLs) and caching. It improves response time and reduces bandwidth usage.
* Squid Proxy Server Introduction
* How to configure Squid Proxy Server and setup clients
* How to use Access Control Lists (ACLs). Different types of acls
* How to control access on basis of source IP addresses, destination domains, words, day and time, MAC addresses etc.
* How to combine various types of ACLs to fine tune access.
* How to configure Squid Authentication. How to verify whether authentication is working properly or not.
* How to setup Transparent Proxy. Setting up transparent proxy involves combining squid and iptables. What are the different settings that needs to be configured. How to access transparent proxy. What are the settings that needs to be made on client systems.
* How to setup Squid Proxy Server Lab. Squid proxy server lab consists of 4 systems. One Linux system with 2 network interface cards will act as proxy server. One NIC will will be used to connect to internet and other will be used to connect to local area network. Remaining 3 systems (2 Linux and 1 Windows) will act as squid proxy clients.
* How to configure proxy server settings in different GUI based browsers.
* How to configure CLI proxy settings.