Squid Proxy basics

How to start squid proxy in ubuntu?

service squid start

How to restart squid proxy in ubuntu?

service squid restart

Where the configuration file for squid proxy is stored.

The squid proxy configuration file “squid.conf” you will find in “/etc/squid/”

How to check if squid proxy is running or not?

Run command “service squid status” to check the status. Check the below highlighted and you will find if the proxy is running or not.

 â squid.service - LSB: Squid HTTP Proxy version 3.x
 Loaded: loaded (/etc/init.d/squid; bad; vendor preset: enabled)
 Active: active (running) since Mon 2017-12-11 21:52:52 IST; 3s ago
 Docs: man:systemd-sysv-generator(8)
 Process: 2549 ExecStop=/etc/init.d/squid stop (code=exited, status=0/SUCCESS)
 Process: 1309 ExecReload=/etc/init.d/squid reload (code=exited, status=0/SUCCESS)
 Process: 2632 ExecStart=/etc/init.d/squid start (code=exited, status=0/SUCCESS)
 CGroup: /system.slice/squid.service
 ââ2671 /usr/sbin/squid -YC -f /etc/squid/squid.conf
 ââ2673 (squid-1) -YC -f /etc/squid/squid.conf
 ââ2674 (logfile-daemon) /var/log/squid/access.log
 ââ2675 (pinger)
â squid.service - LSB: Squid HTTP Proxy version 3.x
 Loaded: loaded (/etc/init.d/squid; bad; vendor preset: enabled)
 Active: inactive (dead) since Mon 2017-12-11 21:51:14 IST; 1min 17s ago
 Docs: man:systemd-sysv-generator(8)
 Process: 2549 ExecStop=/etc/init.d/squid stop (code=exited, status=0/SUCCESS)
 Process: 1309 ExecReload=/etc/init.d/squid reload (code=exited, status=0/SUCCESS)
 Process: 612 ExecStart=/etc/init.d/squid start (code=exited, status=0/SUCCESS)

How to use wget with squid proxy:

http_proxy=”http:// 192.168.3.134:3127″ wget http://www.google.com
Advertisements
This entry was posted in Squid proxy. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s