Sed: Find and Replace The Whole Line [ Regex ]

in Categories , , last updated December 14, 2012

I have a line as follows in squid.conf file. My sever is hosted in a cloud:

acl verizonfios src 1.2.3.4

My ISP will force an IP address change every week or two. I would like to replace them with a new IP

acl verizonfios src 4.5.6.7

How do I replace the line starting with “acl verizonfios” with new IP address using sed and ssh?

How To Listen Pandora In Europe Outside USA Using Proxy

in Categories last updated January 19, 2018

I have Pandora Internet Radio One subscription, and recently I moved to Europe for a few months as part of my work schedule. The service fully available only in the United States. How do I access Pandora one service in Europe? Can I get around it by using a proxy server installed on my own server located in USA at home or ISP data center?

Squid Listen on Other Port ( Squid Configure Port Listing with SELinux)

in Categories , , , , , , , , , last updated April 20, 2009

My Squid proxy server running on port 3128. Since this is frequently scanned by adversaries looking for proxy servers; I’ve changed port to 10000 and restart squid. But my squid is not working on port # 10000 it only works on port # 3128? How do I force Squid to listen on uncommon port under CentOS Linux v5.3?

Squid Proxy Hide System’s Real IP Address

in Categories , , , , , last updated May 23, 2017

My squid proxy server is displaying system’s real IP address. I’ve a corporate password protected squid proxy server located at 202.54.1.2. My clients work from home or offices via A/DSL / cable connections. Squid should hide all system’s IP address, but it is forwarding and displaying the system’s (client computers internal) IP address. How do I configure squid to hide client’s real IP address?

Squid Proxy WARNING! Your cache is running out of filedescriptors error and solution

in Categories , , , , , , , , , , , last updated June 18, 2009

I’ve Squid Proxy server with over 100 Windows workstation. I see following error message in my cache.log file – “WARNING! Your cache is running out of filedescriptors”. Do I need to filter proxy server requests to avoid this problem? How do I fix this problem under CentOS / Fedora / RHEL / Debian Linux?