How to install squid in Linux Server
Today, I will talk to you about how to install squid in the Linux server, many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.
Install squid
Proxy is a software agent or proxy server, and squid is a commonly used proxy service.
1. Install squid
[root@localhost wj] # rpm-qa | grep squid
[root@localhost wj] # yum install-y squid
Installed:
Squid.i686 7vl 3.1.10-19.el6_4
Complete!
[root@localhost wj] #
2. Set the firewall. Squid uses port 3128 by default. Users can modify some ports that do not conflict by themselves, and then add ports to the firewall.
[root@localhost wj] # gedit / etc/sysconfig/iptables
-An INPUT-m state-- state NEW-m tcp-p tcp-- dport 3128-j ACCEPT
[root@localhost phpMyAdmin] # service iptables restart
Iptables: set chain to policy ACCEPT:filter nat [OK]
Iptables: clear firewall rules: [OK]
Iptables: uninstalling module: [OK]
Iptables: apply firewall rules: [OK]
Iptables: load additional modules: nf_conntrack_ftp [OK]
[root@localhost phpMyAdmin] #
3. Start the squid service
[root@localhost wj] # service squid start
Starting squid:. [OK]
[root@localhost wj] #
4. Test, set the http proxy to ip of Linux in the browser, port number 3128
If you open a website at random, you can see it or visit it normally, indicating that the configuration is successful.
After reading the above, do you have any further understanding of how to install squid in the Linux server? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.