LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-04-2011, 03:24 AM   #1
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Rep: Reputation: 45
Squid not giving web pages to client machines.


I have configured squid on Cent OS .Internet is working on the server but on the client side there is no browsing.In the client computer web browser I also add in the proxy setting my proxy server IP with port 8080 but no success. the client computer even ping with the proxy server. Kindly view my log messages and guide me what will be the issue?
thanks garden


Code:
[root@test-proxy ~]# tail -f /var/log/messages 
Mar  4 05:02:44 test-proxy avahi-daemon[5172]: Interface eth0.IPv6 no longer relevant for mDNS. 
Mar  4 05:02:46 test-proxy kernel: ADDRCONF(NETDEV_UP): eth0: link is not ready 
Mar  4 05:02:46 test-proxy kernel: e1000: eth0: e1000_watchdog_task: NIC Link is Up 100 Mbps Full Duplex, Flow Control: RX/TX 
Mar  4 05:02:46 test-proxy kernel: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready 
Mar  4 05:02:48 test-proxy avahi-daemon[5172]: New relevant interface eth0.IPv6 for mDNS. 
Mar  4 05:02:48 test-proxy avahi-daemon[5172]: Joining mDNS multicast group on interface eth0.IPv6 with address fe80::215:17ff:fe9c:52e5. 
Mar  4 05:02:48 test-proxy avahi-daemon[5172]: Registering new address record for fe80::215:17ff:fe9c:52e5 on eth0. 
Mar  4 05:02:50 test-proxy avahi-daemon[5172]: New relevant interface eth0.IPv4 for mDNS. 
Mar  4 05:02:50 test-proxy avahi-daemon[5172]: Joining mDNS multicast group on interface eth0.IPv4 with address 10.1.81.10. 
Mar  4 05:02:50 test-proxy avahi-daemon[5172]: Registering new address record for 10.1.81.10 on eth0. 
Mar  4 05:03:38 test-proxy squid[6151]: Squid Parent: child process 6153 started 
************************************************************************************* 

[root@test-proxy ~]# tail -f /var/log/squid/access.log 
1299121147.036 179995 10.1.81.13 TCP_MISS/504 1468 GET http://www.google.com/ - DIRECT/209.85.175.104 text/html 
1299121176.038 119485 10.1.81.13 TCP_MISS/504 1481 GET http://mail.google.com/mail/? - DIRECT/209.85.175.19 text/html 
1299121183.042  59637 10.1.81.13 TCP_MISS/504 1459 GET http://www.msn.com/ - DIRECT/65.55.17.27 text/html 
1299121187.510  98559 10.1.81.13 TCP_MISS/504 0 GET http://www.msn.com/ - DIRECT/65.55.17.27 text/html 
1299121556.653 180238 10.1.81.13 TCP_MISS/504 1468 GET http://www.google.com/ - DIRECT/209.85.175.104 text/html 
1299121589.656 180604 10.1.81.13 TCP_MISS/504 1468 GET http://www.google.com/ - DIRECT/209.85.175.103 text/html 
1299122265.520 180048 10.1.81.13 TCP_MISS/504 1468 GET http://www.google.com/ - DIRECT/209.85.175.147 text/html 
************************************************************ 
 
[root@test-proxy ~]# service squid start 
Starting squid: .                                          [  OK  ] 
[root@test-proxy ~]# netstat -antp | grep 8080 
tcp        0      0 0.0.0.0:8080                0.0.0.0:*                   LISTEN      6338/(squid)         
[root@test-proxy ~]# ps aux | grep squid 
root      6241  0.0  0.0   3728   520 pts/3    S+   05:11   0:00 tail -f /var/log/squid/access.log 
root      6336  0.0  0.0   7744  1240 ?        Ss   05:13   0:00 squid -D 
squid     6338  0.0  0.1   9972  5940 ?        S    05:13   0:00 (squid) -D 
squid     6340  0.0  0.0   1512   292 ?        Ss   05:13   0:00 (unlinkd) 
root      6350  0.0  0.0   3908   688 pts/4    S+   05:14   0:00 grep squid 
[root@test-proxy ~]#
 
Old 03-04-2011, 03:56 AM   #2
milindlokde
Member
 
Registered: Apr 2007
Location: Mumbai, India
Distribution: Fedora, ubuntu
Posts: 121

Rep: Reputation: 21
port 8080 is usually remapped for http port 80 for security reasons and may not be squid port. The default port for squid is 3128.
Check your squid.conf file for line 'http_port 3128'. If it is different number then that is what you will require to be configured in browsers of client.
On client there is common setting for all applications under Administration->proxy server. However you may also require to configure the same even in individual browsers.
 
Old 03-04-2011, 04:32 AM   #3
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Original Poster
Rep: Reputation: 45
well I just disable SELinux.Then test on the client computer it does not work. At the end I stop firewall
i.e
Code:
service iptables stop
smile ....Internet work fine on the client computer.
Now I want to discuss that to disable firewall is not a good practice.It is lack of security. How can I add my trusted network into the firewall so that without disabling firewall ?
 
Old 03-04-2011, 07:28 AM   #4
milindlokde
Member
 
Registered: Apr 2007
Location: Mumbai, India
Distribution: Fedora, ubuntu
Posts: 121

Rep: Reputation: 21
iptables -t nat -A PREROUTING -d EXTERNALIP -p tcp --dport 8080 -j DNAT --to 10.1.81.13
 
Old 03-04-2011, 10:37 AM   #5
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Original Poster
Rep: Reputation: 45
Thanks for the reply.kindly can u explain the firewall rule from technical language to simple english.any other expert may participate guide me with his own experiance.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Viewing web pages of a user - squid sunils1973 Linux - Server 6 01-21-2011 11:40 AM
How do I block web pages/sites? Is squid what I should use? RHLinuxGUY Linux - Networking 3 02-06-2010 12:07 PM
Squid Clashing With Firefox Causing Web Pages to Hang Woodsman Linux - Networking 1 07-23-2009 10:44 AM
mail client won't open web pages automatically blastradius Ubuntu 1 04-29-2006 08:53 PM
Can't access Linux web server web pages from LAN client jaydave Linux - Networking 4 03-16-2003 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration