LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Squid Server not allowing to connect to applications (https://www.linuxquestions.org/questions/linux-server-73/squid-server-not-allowing-to-connect-to-applications-4175514135/)

husain.shujat 08-10-2014 07:19 AM

Squid Server not allowing to connect to applications
 
Hi All,

I am pretty new to Linux but i can work my way around it.
So, i have made a Squid Server & internet is working properly & ACLs are good as well. The Problem is that with my proxy settings enabled on Client machine (Windows machine) i cant connect to application that connects to other servers whether local or Public server. For ex: people using SQL server cant even connect to local or remote servers through SQl & other applications that use public server are not working as well. I am able to get PING replies from them & they are accessible even through browsers, its just problem is with applications.
& as soon as i disable proxy applications works
like a charm
I have trying to find a solutions for it for weeks but cant find any. My Iptables is OFF on Squid server.

please advise.

TB0ne 08-10-2014 09:29 AM

Quote:

Originally Posted by husain.shujat (Post 5218340)
Hi All,
I am pretty new to Linux but i can work my way around it.
So, i have made a Squid Server & internet is working properly & ACLs are good as well. The Problem is that with my proxy settings enabled on Client machine (Windows machine) i cant connect to application that connects to other servers whether local or Public server. For ex: people using SQL server cant even connect to local or remote servers through SQl & other applications that use public server are not working as well. I am able to get PING replies from them & they are accessible even through browsers, its just problem is with applications. & as soon as i disable proxy applications works like a charm
I have trying to find a solutions for it for weeks but cant find any. My Iptables is OFF on Squid server.

First, think about what Squid is and what it does...it's an HTTP proxy. That's it. It DOES NOT handle ANY OTHER PROTOCOLS, period. So, if you have applications that are accessing other ports/protocols, they obviously won't work...because Squid is only allowing ONE PORT, which is http.

You need to identify what other ports are being used, then use iptables to redirect that traffic through your firewall/proxy-server accordingly.

husain.shujat 08-10-2014 10:04 AM

First of all thank you very very much for reply.
And as do your answer, do I need to open ports on squid server iptables or on Cisco firewall?
Iptables on squid is off and applications are working fine without proxy.

So please tell me in little bit detail as I am still new to this.
Thank you in advance and also if can i contact you personally?

husain.shujat 08-10-2014 10:25 AM

thanks for help
 
also if you could provide an example, that will be extremely helpful!!!!!!!!

TB0ne 08-10-2014 10:39 AM

Quote:

Originally Posted by husain.shujat (Post 5218388)
First of all thank you very very much for reply.
And as do your answer, do I need to open ports on squid server iptables or on Cisco firewall? Iptables on squid is off and applications are working fine without proxy. So please tell me in little bit detail as I am still new to this.

As said previously, you have to use iptables to redirect traffic through your proxy server. You can also open the ports directly on your firewall, but that's your choice. You say nothing about your environment, how things are connected, your DMZ, applications, ports, etc., so you will have to come up with the solution that best fits your environment and security needs. I recommend talking/working with your co-workers to figure out what's best for all concerned.
Quote:

Thank you in advance and also if can i contact you personally?
No, you cannot.
Quote:

also if you could provide an example, that will be extremely helpful!!!!!!!!
Since you probably found this site via a Google search, you should start there if you need examples/how-to guides. Putting "how to redirect port through squid proxy server using iptables" pulls up LOTS of examples.
http://www.tldp.org/HOWTO/TransparentProxy-6.html
http://wiki.squid-cache.org/ConfigEx.../LinuxRedirect
http://serverfault.com/questions/313...using-iptables

husain.shujat 08-10-2014 11:12 AM

Thanks will try .


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