LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Squid problem (https://www.linuxquestions.org/questions/linux-server-73/squid-problem-660383/)

rahilmaknojia 08-04-2008 11:54 AM

Squid problem
 
Hello,

I have problem with squid, I have made proxy server on my main PC, and I have install 1 more linux in VMware and I want to give proxy to VMware Linux.

On client PC I have done proxy setting "172.16.19.66:3128"


ON server side configuration

vi /etc/squid/squid.conf

visible_hostname rahil

acl rahil src 172.16.0.0/16
http_access allow rahil


I have restarted squid service and done squid -z its work find but on client it doesn't work it shows page cannot display

dr.acul 08-04-2008 04:38 PM

As I understand, you have a linux with VMware running on it. Inside the VMware you run a second linux.
Do I have this right?

Please post your network ip's server/client and the squid.conf, because nobody can help you without your network configuration, right?

I don't know much about VMware, maybe you have to make VMware known about the proxy.

Before I forget, do you squid as a transparent proxy?

*dg*

rahilmaknojia 08-04-2008 11:44 PM

Quote:

Originally Posted by dr.acul (Post 3236663)
As I understand, you have a linux with VMware running on it. Inside the VMware you run a second linux.
Do I have this right?

Please post your network ip's server/client and the squid.conf, because nobody can help you without your network configuration, right?

I don't know much about VMware, maybe you have to make VMware known about the proxy.

Before I forget, do you squid as a transparent proxy?

*dg*


my server IP address is 172.16.19.66/16 and my client IP address is 172.16.19.85/16, and Vmware Linux is working perfect bcoz i have done dhcpd-client and done ssh everything is find with VMware, I think problem is with Server Configuration

dr.acul 08-05-2008 03:34 AM

Yes, it looks like a server misconfiguration, but it is very difficult to help you without more datails.

Quote:

On client PC I have done proxy setting "172.16.19.66:3128"
Where do you have applied this setting, I assume in a browser.

Quote:

... done ssh everything is find with VMware...
Do you connect ssh directly or over squid?

Is squid working for other machines, e.g. localhost?

rahilmaknojia 08-05-2008 04:25 AM

Quote:

Originally Posted by dr.acul (Post 3237149)
Yes, it looks like a server misconfiguration, but it is very difficult to help you without more datails.


Where do you have applied this setting, I assume in a browser.


Do you connect ssh directly or over squid?

Is squid working for other machines, e.g. localhost?

how to send squid.conf file to you so u can understand better

dr.acul 08-05-2008 05:26 AM

Just write me an e-mail over the bord email mechanism.

You can put the squid.conf in the email or, that would be nicer, wait for my response and reply to this email with the squid.conf as attachment.

rahilmaknojia 08-05-2008 07:07 AM

Quote:

Originally Posted by dr.acul (Post 3237226)
Just write me an e-mail over the bord email mechanism.

You can put the squid.conf in the email or, that would be nicer, wait for my response and reply to this email with the squid.conf as attachment.

I have emailed you squid.conf file, please check it if any problem let me know.

Thank you.

dr.acul 08-05-2008 08:45 AM

At the first brief look I found this lines:
Code:

acl rahil src 172.16.1.0/16
http_access allow rahil

Thats not your subnet, you should use 172.16.0.0/16 or 172.16.19.0/24

At the begin of this post you wrote:
Quote:

acl rahil src 172.16.0.0/16
http_access allow rahil
Can it be possible that only my config has this misconfiguration?

I will look more exact through your config later at home.

rahilmaknojia 08-05-2008 11:31 AM

Quote:

Originally Posted by dr.acul (Post 3237401)
At the first brief look I found this lines:
Code:

acl rahil src 172.16.1.0/16
http_access allow rahil

Thats not your subnet, you should use 172.16.0.0/16 or 172.16.19.0/24

At the begin of this post you wrote:

Can it be possible that only my config has this misconfiguration?

I will look more exact through your config later at home.

Yes, 1st time I put 172.16.0.0/16 but it doesn't work so I changed then also it doesn't and again I put 172.16.0.0/16

I off my firewall also its seem to be nothing happen still same problem.

dr.acul 08-05-2008 12:22 PM

Your config is ok, but the ip and netmask, however that should be cleared now.

Since your server configuration seems to be correct, you should check your network configuration.
I don't think that squid is the problem.

rahilmaknojia 08-05-2008 02:08 PM

Quote:

Originally Posted by dr.acul (Post 3237631)
Your config is ok, but the ip and netmask, however that should be cleared now.

Since your server configuration seems to be correct, you should check your network configuration.
I don't think that squid is the problem.

Yes, i was thinking same I will give u more information abt my server Network, My server IP address is 172.16.19.66 with netmask 255.255.0.0 and my default gateway is 172.16.1.1 this is configuration I got from my ISP to use NET but I want to give proxy to client PC, So on client side I have give proxy setting with 172.16.19.66:3128 and default gateway 172.16.19.66. I am stacked with this problem, :scratch::confused:

rahilmaknojia 08-06-2008 11:03 AM

Do you know hoe to solve this problem, I have disable SElinux also but not working.

linuxlover.chaitanya 08-07-2008 12:33 AM

Have you configured iptables to forward the requests? If its a transparent proxy then you need to configure iptables. Else start the squid. And put the ip address of squid in the web browser with the correct port number squid is running i.e 3128, the port on which your squid is running.

rahilmaknojia 08-07-2008 08:20 AM

Quote:

Originally Posted by linuxlover.chaitanya (Post 3239429)
Have you configured iptables to forward the requests? If its a transparent proxy then you need to configure iptables. Else start the squid. And put the ip address of squid in the web browser with the correct port number squid is running i.e 3128, the port on which your squid is running.


Yeah, My friend I have done all setting I will mail u my squid.conf conf to u and i have not done IPtable configuration it is default

linuxlover.chaitanya 08-08-2008 12:12 AM

If its not the transparent proxy then, there is no need to configure anything. Just make sure the cache is initialized and squid is started. And do not mail the squid.conf file. Better post it here in the forum. If not me someone else will come and help you. Mailing is not a good option unless really necessary.


All times are GMT -5. The time now is 11:52 PM.