LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-11-2009, 01:42 PM   #1
rahuldevalone
LQ Newbie
 
Registered: Feb 2007
Posts: 29

Rep: Reputation: 15
Squid Server with single NIC Card.


Dear ! All,
This is Rahul Kumar.I want to configure squid proxy server but i have only one card.

My Server IP Address:-192.168.1.100
default gateway-192.168.1.2 and 2nd 192.168.1.1 (ISP Give IT)
primary dns-202.56.215.54 (ISP Give IT)
secondary dns-202.56.215.55 (ISP Give IT)

Isp cable is connect with switch and my server is also connect with same switch.


i am sending squid.conf ACL details :-

acl mylan src 192.168.1.0/24
acl noporn url_regex -i sex
acl nomp3 url_regex -i mp3$
acl zipfiles url_regex -i \.zip$
acl blockweb url_regex "/usr/local/squid/etc/blockweb"

http_access allow mylan
http_access deny noporn
http_access deny nomp3
http_access deny zipfiles
http_access deny blockweb

cache_mem 64 MB

cache_dir ufs /var/spool/squid 1000 16 256

http_port 8080

My all client are windows xp.Please help me .Internet is not working at client while is working fine at my server.
Regards,
Rahul Kumar
 
Old 04-13-2009, 06:01 AM   #2
rossonieri#1
Member
 
Registered: Jun 2007
Posts: 359

Rep: Reputation: 34
hi rahul,

Quote:
Internet is not working at client while is working fine at my server.
what do you mean by that?
from your provided information - i dont see you have a router or anything.
and there is no relation between configuring squid and internet is not working for the LAN.
do you have (or need) a router before you go to the internet?
have you configured any internet-related application like DNS, gateway etc for the client?
 
Old 04-14-2009, 04:32 AM   #3
rahuldevalone
LQ Newbie
 
Registered: Feb 2007
Posts: 29

Original Poster
Rep: Reputation: 15
Read carefully about ISP DNS & Gateway address.

Quote:
Originally Posted by rossonieri#1 View Post
hi rahul,



what do you mean by that?
from your provided information - i dont see you have a router or anything.
and there is no relation between configuring squid and internet is not working for the LAN.
do you have (or need) a router before you go to the internet?
have you configured any internet-related application like DNS, gateway etc for the client?

Dear ! Rossonier,
My ISP give me ADSL Router & Read Carefully i have already given ISP's gateway & DNS also.ISP ADSL Router have a LAN port .My company's switch is connected via this lan port with CAT5 cable.My Linux server is also connect by same switch.
My Server IP Address:-192.168.1.100
default gateway-192.168.1.2 and 2nd 192.168.1.1 (ISP Give IT)
primary dns-202.56.215.54 (ISP Give IT)
secondary dns-202.56.215.55 (ISP Give IT)
I am RHCL Certified from RHEL5.As Far as I know about Squid Server provides Internet Sharing for Clients with security.
I have been also try :-
iptables -t nat -A OUTPUT -p tcp --dport 80 -j REDIRECT --to-ports 8080
I have been enter squid port & it's ip address in IE6 Connections>LanSettings>Proxy Server>Give the squid port 8080 & server ip 192.168.1.100>check Bypass Proxy server option .
Anything else you required from my site.
Thanks for attend my problem ?
Is there anyone is good in Squid Server ?
Regards,
Rahul Kumar
 
Old 04-14-2009, 09:47 AM   #4
rossonieri#1
Member
 
Registered: Jun 2007
Posts: 359

Rep: Reputation: 34
hi rahul,

Quote:
I am RHCL Certified from RHEL5.As Far as I know about Squid Server provides Internet Sharing for Clients with security.
how nice

and, no offense of course - as a linux certified professional, IMHO - then you should already knew what squid is all about, and which other application should enable an internet connection sharing?

from your provided information then you should know what, where, and which thing needs to be fixed/done of course
 
Old 04-15-2009, 11:35 AM   #5
rahuldevalone
LQ Newbie
 
Registered: Feb 2007
Posts: 29

Original Poster
Rep: Reputation: 15
I know about squid server ? Do u know all about squid if yes then slove it .

Dear ! Rossonier,
What is this ??? I have been already given u all information about my site.If u know all about squid or u r thinking Master of Squid ? Then Slove it .Otherwise go way.
Listen Nobody is perfect in IT filed.Understand.This issue is not so simple as u think.I am working on it I will fix it very soon.
bye
Forever.
Regards,
Rahul Kumar
------------------------------------------------------------------------


then you should already knew what squid is all about, and which other application should enable an internet connection sharing?
from your provided information then you should know what, where, and which thing needs to be fixed/done of course
rossonieri#1





Quote:
Originally Posted by rossonieri#1 View Post
hi rahul,



how nice

and, no offense of course - as a linux certified professional, IMHO - then you should already knew what squid is all about, and which other application should enable an internet connection sharing?

from your provided information then you should know what, where, and which thing needs to be fixed/done of course
 
Old 04-15-2009, 01:33 PM   #6
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,223

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
Quote:
Originally Posted by rahuldevalone View Post
What is this ??? I have been already given u all information about my site.If u know all about squid or u r thinking Master of Squid ? Then Slove it .Otherwise go way.
Listen Nobody is perfect in IT filed.Understand.This issue is not so simple as u think.I am working on it I will fix it very soon.
Rahul:

Please write and spell clearly, you're very difficult to understand. Also, there's no need to be insulting...Rossonier brings up a good point. If you are RHCE, you should already KNOW how to set up routing tables, and what Squid is used for. Coming here and bullying people by saying things like "Then solve it or go away", isn't a good way to get ANYONE to help you with ANYTHING, but you seem to do it on almost every post you make. If you're using RedHat Enterprise, why don't you CALL THEM FOR SUPPORT.

This question has been covered on here before, too, and a brief search will show you the responses. This page:

http://teladan98.wordpress.com/2007/...-with-one-nic/

Will give you more info on a single-nic configuration, which I found after a quick Google search. Unless the Squid server has two NIC's, it's very easy for clients to bypass it, unless you're doing DNAT on a switch, which renders Squid almost pointless with a single NIC.

Last edited by TB0ne; 04-15-2009 at 01:35 PM.
 
Old 04-16-2009, 10:41 AM   #7
rahuldevalone
LQ Newbie
 
Registered: Feb 2007
Posts: 29

Original Poster
Rep: Reputation: 15
Thanks for your support.

Dear ! TB0ne Sir,
I am sorry to say ,I do not want to use any bad word for anyone.I do not want to insult Mr. Rossonier.
But see his activity first."He is saying there is no relation between configuring squid and internet is not working for the LAN."

What does it shows ? If he do not know very much about squid.He should not be attend this problem.I worked on Squid Sever many times .I like this web very much.I share my views & solve many times in this web.
I create a Virtual NIC rest of all leave same.Now it is working.I appreciate u and knowledge.
I have been fixed this issue.
Regards,
rahul kumar

------------------------------------------------------------------------



Quote:
Originally Posted by TB0ne View Post
Rahul:

Please write and spell clearly, you're very difficult to understand. Also, there's no need to be insulting...Rossonier brings up a good point. If you are RHCE, you should already KNOW how to set up routing tables, and what Squid is used for. Coming here and bullying people by saying things like "Then solve it or go away", isn't a good way to get ANYONE to help you with ANYTHING, but you seem to do it on almost every post you make. If you're using RedHat Enterprise, why don't you CALL THEM FOR SUPPORT.

This question has been covered on here before, too, and a brief search will show you the responses. This page:

http://teladan98.wordpress.com/2007/...-with-one-nic/

Will give you more info on a single-nic configuration, which I found after a quick Google search. Unless the Squid server has two NIC's, it's very easy for clients to bypass it, unless you're doing DNAT on a switch, which renders Squid almost pointless with a single NIC.
 
Old 04-16-2009, 10:55 AM   #8
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,223

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
Quote:
Originally Posted by rahuldevalone View Post
Dear ! TB0ne Sir,

I am sorry to say ,I do not want to use any bad word for anyone.I do not want to insult Mr. Rossonier.
But see his activity first."He is saying there is no relation between configuring squid and internet is not working for the LAN."

What does it shows ? If he do not know very much about squid.He should not be attend this problem.I worked on Squid Sever many times .I like this web very much.I share my views & solve many times in this web.
I create a Virtual NIC rest of all leave same.Now it is working.I appreciate u and knowledge.
I have been fixed this issue.
No, he was right, and you were out of line. You've had 23 total posts here, and have acted this way on several of them. And as he pointed out, if you are RHCE, and have done so much work with Squid, why did you post such a simple problem?

Also, AGAIN, write clearly...your sentences make very little sense.
 
Old 04-16-2009, 02:19 PM   #9
jonnytabpni
Member
 
Registered: Sep 2008
Posts: 68

Rep: Reputation: 16
1) yum install squid
2) set clients to use squid server's ip in proxy settings (Defaults to port 3128)

If you want security, use squidguard. Very simply to setup and no need to worry about squid acl's.

IE6? Really?

Be nice - we are only trying to help you! (for free!)

Last edited by jonnytabpni; 04-16-2009 at 02:21 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to redirect squid traffic to a specific nic card scream Linux - Newbie 0 03-08-2009 03:57 AM
single ip bypass squid caching server banker_09 Linux - Newbie 2 02-27-2009 09:13 AM
Bandwidth Utilizaton of NIC Card of Liux Server sheraz Linux - Newbie 2 03-12-2008 05:17 AM
problems routing with single NIC bravo_veinticinco Linux - Networking 1 12-16-2005 03:30 AM
RedHat 7.3 Install ? (NIC Card and X Server) rshadow Linux - Hardware 2 09-29-2002 07:40 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration