WhileNetworking

  • Home
  • CCNA
  • Cisco Packet Tracer Download
    • Cisco packet tracer 6.3
    • cisco packet tracer 6.2
    • Cisco Packet Tracer 7
  • Linux Server Management
  • About Us
  • Privacy Policy
  • Contact Us

How to set up Proxy server in CentOS / Red Hat ?

You are most welcome to this post.
proxy server set up in linux (centOS/Red Hat)
Really thanks to you for your interest in this topics. :)

Friends, in our previous post we’ve discussed some thing about the configuration of proxy server. In this post we’ll enjoy:

How to set up Proxy server in CentOS / Red Hat ?

Now lets see the steps clearly:

At first we’ll clean all the data of “YUM”:

[root@localhost ~]# yum clean all

 

Then we clear our screen, that is our terminal screen:

[root@localhost ~]# clear

 

We’ve imported our proxy, you can find this proxy from your internet service provider:

[root@localhost ~]# http_proxy = http://172.16.200.1:3128

 

We are now updating the Yum database:

[root@localhost ~]# yum -y update

 

Install squid, which will work as proxy server:

[root@localhost ~]# yum -y install squid

 

Install iptables, which is also required for the configuration of proxy server:

[root@localhost ~]# yum -y install iptables-services

 

Now enable and restart the squid and iptables software:

[root@localhost ~]# systemctl enable squid

[root@localhost ~]# systemctl start squid

[root@localhost ~]# systemctl enable iptables

[root@localhost ~]# systemctl start iptables

 

Now you need to backup the squid configuration file:

[root@localhost ~]# cp /etc/squid/squid.conf    /etc/squid/squid.conf.org.back

[root@localhost ~]# nano /etc/squid/squid.conf

 

Uncomment line ##
cache_dir ufs /var/spool/squid 100 16 256 (100 MB, 16 Level)

Press “Ctrl+o” to save

Press “Ctrl+x” to exit

[root@localhost ~]# nano /etc/squid/squid.conf

at the end write,

( Here see, I’ve written two IP address. One is LAN IP address and the other is my domain (iict) IP address )

acl lan src 192.168.10.0/24
acl iict src 172.16.0.0/16
http_access allow lan
http_access allow iict

 

Press “Ctrl+o” to save

Press “Ctrl+x” to exit

 

 

[root@localhost ~]# systemctl restart squid

 

Again open the configuration file:

[root@localhost ~]#nano /etc/squid/squid.conf

Write:

visible_hostname iict.com

 

Now you need to configure firewall,

[root@localhost ~]# firewall-cmd –zone=public –add-port=3128/tcp –permanent

[root@localhost ~]# firewall-cmd –reload

 

You also need to disable the SELinux. follow the commands:

[root@localhost ~]# nano /etc/selinux/config

SELinux=enforcing  Make it to SELinux=disabled

 

Now reboot the system

[root@localhost ~]#reboot

 

To forward LAN, just use these commands:

[root@localhost ~]# iptables –A INPUT –m state –state NEW –m tcp –p tcp –dport 3128 –j ACCEPT

[root@localhost ~]#  systemctl restart iptables

[root@localhost ~]# systemctl restart squid

 

See the internet access log:

[root@localhost ~]# tail –f /var/log/squid/access.log

 

So you’ve successfully set up a proxy server. To check your proxy server, open Firefox browser. Give IP address (Options>>advanced>>network>>connection>setting>>Manual proxy configuration)

Now after pressing ” OK “, just enter any website address, it will work, if you’ve implemented all the steps properly.  Also if you check the access.log file, you can check the log information of browsing.

In the previous post I’ve shown, how to block specific keyword, website or IP address.

Hope that You have enjoyed learning it.

 

proxy server set up in linux (centOS/Red Hat)

Proxy server set up in linux (centOS/Red Hat)

Jul 8, 2016Himadri
 

Share with friends :

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Tumblr (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
  • Click to email a link to a friend (Opens in new window)
  • Click to share on Pocket (Opens in new window)
  • Click to share on Telegram (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to print (Opens in new window)

Related

Configuring Proxy server in Linux (CentOS / Red Hat)Cisco Packet Tracer 7 FAQ

Leave a Reply Cancel reply

5 × 2 =

Himadri

Hi, I'm Himadri. I love blogging with tech topics, specially computer networking. We'll have more fun in the upcoming day. Stay with me. :)

July 8, 2016 5 Comments Linux installation and server managementactiviries of proxy server, proxy server set up in centOS, Proxy server set up in linux, Proxy server set up in Red Hat1,268
Feel Free to Share :)
0
GooglePlus
0
Facebook
0
Twitter
0
Digg
0
Delicious
0
Stumbleupon
0
Linkedin
0
Pinterest
Find Us on Facebook
Choose a category !!
  • CCNA
  • Cisco Certification Exam
  • cisco packet tracer 6.2
  • Cisco packet tracer 6.3
  • Cisco Packet Tracer 7
  • Cisco Packet Tracer 7.1
  • Cisco Packet Tracer 7.2.1
  • Cisco Packet Tracer 7.3
  • Cyber Security
  • Engineering Ebooks
  • Excel
  • IELTS Ebook
  • Internet
  • Know computer
  • Know your computer
  • Laser Processing of Material
  • Linux installation and server management
  • PDF
  • Technology
  • Uncategorized
Top posts
  • Free download Cisco Packet Tracer 7 for linux (64 bit)
  • Packet tracer 6.2 student version for Linux - Free download
  • Know about Host-Based Intrusion Prevention System
Archieves
Get latest updates by Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 19 other subscribers
W
SC
wordpress counter
Analytics
Recent Comments
    Browse by categories
    Cyber SecurityLinux installation and server managementCCNAKnow your computerKnow computerCisco Packet Tracer 7UncategorizedCisco Certification ExamInternetPDFCisco Packet Tracer 7.3Engineering EbooksCisco packet tracer 6.3cisco packet tracer 6.2Cisco Packet Tracer 7.1TechnologyExcelLaser Processing of MaterialCisco Packet Tracer 7.2.1IELTS Ebook
    Feel free to contact with us

    Hi, any kind of comment or suggestion is valuable to us. So feel free to contact with us.

    Email: himadri.shekhar.bd@gmail.com

    Name: WhileNetworking.com

    2021 © WhileNetworking
     

    Loading Comments...