Skip to main content

Squid interview question #3: What is the default port of squid and how to change its operating port?

The default port on which squid runs is 3128.



We can change the operating port of squid from default to any custom unused port by editing its configuration file which is /etc/squid/squid.conf





Open ‘/etc/squid/squid.conf’ file and with editor.

# vi /etc/squid/squid.conf



Find the following line:

# http_port 3128


Change into:

# http_port 8080



I changed 3128 port into 8080, you can change what you require.

Now restart squid service.
# service squid restart
That is it, we have successfully changed the port squid proxy server.



We can confirm squid new port by using the following command:


netstat -antl | grep 8080




Open Firewall Port:

Make sure to open ports that we changed now 8080.
see below iptables rule:

Comments

Popular posts from this blog

Course Syllabus: Advanced Linux System Administration and Networking

Course Outline Advanced Linux System Administration and Networking
Introduction  LinkLinux FoundationLinux Foundation TrainingLaboratory ExercisesDistribution DetailsLinux Networking Concepts and ReviewOSI Model Introduction and Upper LayersOSI Model Transport LayerOSI Model Network LayerOSI Model Lower LayersNetwork TopologyDomain Name SystemSystem ServicesManaging System ServicesNetwork ConfigurationRuntime Network ConfigurationBoot Time Network ConfigurationIntro to OpenVPNNetwork Troubleshooting and MonitoringNetwork TroubleshootingClient-Side TroubleshootingServer-Side TroubleshootingNetwork MonitoringRemote AccessRemote Access HistoryIntro to CryptographySecure Remote AccessRemote GraphicsDomain Name ServiceOverview Of DNSBIND (named) ServerBIND Zone ConfigurationHTTP ServersApacheApache ConfigurationApache Virtual HostsApache SecurityAdvanced HTTP ServersMod RewriteMod AliasMod StatusMod IncludeMod PerlPerformance ConsiderationsEmail ServersEmail OverviewPostfixDovecotFile Shar…

Networking: HP Switches Firmware Downloads

Download all HP Switches Latest Firmware here:

https://h10145.www1.hp.com/Downloads/ProductsList.aspx?lang=en&cc=il&prodSeriesId=3963985

Please contact Techeia.com or comment below if you need any assistance to upgrade your firmware.



OR
Select your product link below:

HP Switch 2520-24-PoE(J9138A)
https://h10145.www1.hp.com/Downloads/SoftwareReleases.aspx?ProductNumber=J9138A&lang=en&cc=il&prodSeriesId=3963985

HP ProCurve 1810G - 24 GE PROCURVE J9450A
https://h10145.www1.hp.com/Downloads/SoftwareReleases.aspx?ProductNumber=J9450A&lang=en&cc=il&prodSeriesId=3963985


Other HP switch models included in the above link are:
JH103AHP FF 12916E Switch ChassisJH104AHP FF 12900E Main Processing UnitJH255AHP FF 12908E Switch ChassisJH262AHP FF 12904E Switch ChassisJH263AHP FF 12904E Main Processing UnitJD238CHP 7510 Switch ChassisJD239CHP 7506 Switch ChassisJD240CHP 7503 Switch ChassisJD242CHP 7502 Switch ChassisJH207AHP 7500 1.2T Fabric IRF-only MPUJH208AHP 7502 Ma…

Visio Stencils for Cisco Switches and Routers

This is to provide the direct link to download visio stencils of various cisco products. Please comment if you are unable to get the visio stencil for a specific product. We will update the stencils and provide you with a direct link.

Please use the Following links to download visio stencils for the Cisco Routers and Switches.

http://www.cisco.com/c/en/us/products/visio-stencil-listing.html

Application Networking Services


Application Control Engine-ACE XML Gateway (ZIP - 105 KB)  11/Jun/2008


Application Networking Services-Wide Area Application Engine (ZIP - 2 MB)  15/Jan/2008


Cisco WAAS (ZIP - 911 KB)  12/Jun/2012 Cisco Interfaces and Modules


Interfaces and Modules-HWIC (ZIP - 40 KB)  14/Jan/2008


Modules-Line Cards (ZIP - 1 MB)  21/May/2009


Modules-Network Modules (ZIP - 1 MB)  22/Aug/2003


Modules-Port Adaptors (ZIP - 674 KB)  08/Oct/2003


Modules-Shared Port Adapters(SPA) (ZIP - 2 MB)  18/Dec/2008


Modules-VICs (ZIP - 117 KB)  13/Mar/2003


Modules-WICs (ZIP - 94 KB)  12/Mar/2003


Power Systems - C…