LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Squid problem on fedora (https://www.linuxquestions.org/questions/linux-newbie-8/squid-problem-on-fedora-4175440913/)

sudo_su 12-10-2012 11:48 PM

Squid problem on fedora
 
Dear respected members,

I had installed squid on fedora but when i try to start the service with
Quote:

service squid start
it gives me error
Quote:

redirecting /bin/systemctl
i had restarted my system but the problem remains the same.

Please assist.

GlennsPref 12-11-2012 05:20 PM

Hi, you need to be root to start a system wide service.

systemctl is a new implementation of the older services system.

When you call service the system hads it over to systemctl, and the script is run, if permissable.

Code:

su
enter root password.

try to start squid...
Code:

service squid start
check it's status
Code:

service squid status
Squid may also be started by restarting the network,

make sure all the if's are up.
Code:

ifconfig
hth's, Glenn

sudo_su 12-11-2012 10:20 PM

dear glenns

Quote:

service squid start/restart/status
all gives the same error

Quote:

redirecting /bin/systemctl
Yes One of ifs is down and that is my eth1 but on centOS with same scenario I was running squid :S

GlennsPref 12-12-2012 12:56 AM

here is a bunch of checks I have used,
(not all of them have been real usefull to me other than)
to see squid being referenced and using resources.

If you have not set an ip for squid it may be running on 127.0.0.1 (localhost)
check firewall settings, and portforwarding. see forwarding check below.../etc/sysctl.conf

these codes only return info. they don't change anything.

Hope they help you to diff the changes between you centos system and fedora.

check the ips, and ports are set (3128, 1080, there is some margin for non standards.)
Code:

#!/bin/bash
#
echo "netstat -an, show network stats"
sudo netstat -an

echo "iptables -t nat -nvL, check FW, nat Chain PREROUTING for squid port activity"
sudo iptables -t nat -nvL

echo "iptables -nvL"
sudo iptables -nvL

echo "ifconfig"
sudo ifconfig

echo "cat /proc/sys/net/ipv4/ip_forward, forward squids ip to the nic ip"
cat /proc/sys/net/ipv4/ip_forward

echo "netstat -tanp | grep 3128"
sudo netstat -tanp | grep 3128

echo "squid -v"
sudo squid -v

echo "cat /etc/squid/squid.conf | grep -v '#', show file without commented lines."
cat /etc/squid/squid.conf | grep -v '#'

echo "ps ax | grep squid  #ensure the redirector is running"
sudo ps ax | grep squid


echo "grep DPT=3128 /var/log/syslog -c  #change portnumber for others"
sudo grep DPT=3128 /var/log/syslog -c


echo "tail /var/log/squid/access.log"
sudo tail /var/log/squid/access.log

cheers, Glenn

mandyapenguin 12-12-2012 10:23 AM

Try these below as root user
Code:

$(which service) squid start
$(which service) squid restart
$(which service) squid status

or
Code:

systemctl start squid.service
or
$(which systemctl) status squid.service


asimba 12-12-2012 04:50 PM

if you could share messages logs/squid logs as well


All times are GMT -5. The time now is 09:16 PM.