Troubleshooting Squid Proxy Server
Getting Troubleshooting Squid Proxy Server
Troubleshooting technics is very important to trace your problem on how fast you solve the problem. Here are the step by step tutorial for how to troubleshoot you squid proxy server when your proxy server is down. For these examples, i'm using squid which is running on Linux fedora 10.
How to troubleshoot when your squid proxy server is not running?
1. Su to root user
[fedora10@fedora ~]$ su -
Password:
[root@fedora ~]#
2. check network card
[root@fedora ~]# service network status
Configured devices:
lo eth0 eth1
Currently active devices:
lo
[root@fedora ~]#
3. Bring up network card
[root@fedora ~]# ifup eth0
[root@fedora ~]# ifup eth1
[root@fedora ~]#
4. Verify your network status
[root@fedora ~]# service network status
Configured devices:
lo eth0 eth1
Currently active devices:
lo eth0 eth1
[root@fedora ~]#
5. Check SQUID service
[root@fedora ~]# service squid status
squid is stopped
[root@fedora ~]#
6. Start SQUID service
[root@fedora ~]# service squid start
Starting squid: . [ OK ]
[root@fedora ~]#
7. Verify SQUID status
[root@fedora ~]# service squid status
squid (pid 3651) is running...
[root@fedora ~]#
8. CHECK iptables status
[root@fedora ~]# service iptables status
Table: nat
Chain PREROUTING (policy ACCEPT)
num target prot opt source destination
1 REDIRECT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 redir ports 3128
Chain POSTROUTING (policy ACCEPT)
num target prot opt source destination
1 MASQUERADE all -- 0.0.0.0/0 0.0.0.0/0
2 MASQUERADE all -- 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT)
num target prot opt source destination
Table: filter
Chain INPUT (policy ACCEPT)
num target prot opt source destination
Chain FORWARD (policy ACCEPT)
num target prot opt source destination
1 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
2 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT)
num target prot opt source destination
[root@fedora ~]#
Sometimes you need to this also. Please follow this step if you're server still not running:
1. yum clean all - to clean yum cache
[root@fedora ~]# yum clean all
Loaded plugins: refresh-packagekit
Cleaning up Everything
[root@fedora ~]#
2. yum -y update - update fedora system
========================
CLEAR SQUID CACHE
========================
1.Clear squid cache
[root@fedora fedora10]# service squid stop
Stopping squid: ................ [ OK ]
[root@fedora fedora10]#
2. go to squid cache directory
[root@fedora fedora10]# cd /var/spool/squid
[root@fedora squid]# ls
00 02 04 06 08 0A 0C 0E swap.state
01 03 05 07 09 0B 0D 0F swap.state.last-clean
[root@fedora squid]#
3. Check the path directory is correct.
[root@fedora squid]# pwd
/var/spool/squid
[root@fedora squid]#
4. Delete all files and folder inside the /var/spool/squid
[root@fedora squid]# rm -rf ./*
[root@fedora squid]#
5. Recheck the all files and folder. Make sure all empty
[root@fedora squid]# ls
[root@fedora squid]#
6. Rebuild squid cache
[root@fedora squid]# squid -z
2009/05/18 17:23:18| Creating Swap Directories
2009/05/18 17:23:18| /var/spool/squid exists
2009/05/18 17:23:18| Making directories in /var/spool/squid/00
2009/05/18 17:23:18| Making directories in /var/spool/squid/01
2009/05/18 17:23:18| Making directories in /var/spool/squid/02
2009/05/18 17:23:19| Making directories in /var/spool/squid/03
2009/05/18 17:23:19| Making directories in /var/spool/squid/04
2009/05/18 17:23:19| Making directories in /var/spool/squid/05
2009/05/18 17:23:19| Making directories in /var/spool/squid/06
2009/05/18 17:23:19| Making directories in /var/spool/squid/07
2009/05/18 17:23:19| Making directories in /var/spool/squid/08
2009/05/18 17:23:19| Making directories in /var/spool/squid/09
2009/05/18 17:23:19| Making directories in /var/spool/squid/0A
2009/05/18 17:23:19| Making directories in /var/spool/squid/0B
2009/05/18 17:23:19| Making directories in /var/spool/squid/0C
2009/05/18 17:23:19| Making directories in /var/spool/squid/0D
2009/05/18 17:23:19| Making directories in /var/spool/squid/0E
2009/05/18 17:23:19| Making directories in /var/spool/squid/0F
[root@fedora squid]#
7. Test squid start
[root@fedora squid]# squid -NCd1
2009/05/18 17:24:25| Starting Squid Cache version 3.0.STABLE13 for x86_64-redhat-linux-gnu...
*if got problem you need to troubleshoot on the network card.
8. stop the step no.7 by pressing
ctrl + c
9. Then start SQUID
[root@fedora squid]# service squid start
Starting squid: . [ OK ]
[root@fedora squid]#
10. CHECK SQUID CACHE SIZE
[root@fedora squid]# du -hs /var/spool/squid/
128M /var/spool/squid/
[root@fedora squid]#
Keywords: fedora proxy server, linux proxy server, squid proxy server, troubleshoot fedora proxy server, troubleshoot linux proxy server, troubleshoot squid proxy server
- 411 reads
Recent popular content



















