4

I am using Squid as a proxy server for web cache in my local network. I have developed a utility in VB.NET that requires a remote connection to a MySQL database on a remote server over internet. I am able to connect to remote server if I disable the proxy server but can not if the proxy is enabled.

I don't know if I can use MySql Proxy in this scenario on my local proxy server and what configurations will I have to make.

Below is my squid configuration;

ACL to define ports allowed to passthrough Squid
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 3306 # mysql remote connection
acl CONNECT method CONNECT

http_access deny !Safe_ports
http_access allow Safe_ports
http_access allow CONNECT !SSL_ports

What alternative I can have to achieve a similar setup that is web cache + remote connection to mysql database.

4

3 に答える 3

2

Squid は MySQL をまったくプロキシできません。リモート接続を使用するには、ファイアウォールを構成する (または直接接続、nat などを使用する) 必要があります。

于 2012-12-11T20:16:31.023 に答える
0

Microsoft Forefront TMG で動作させることができました。アクセス ルールは、すべてのユーザーに対して、内部から外部へのポート 3306 アウトバウンド接続で作成されます。ファイアウォール クライアントもクライアント マシンにインストールする必要があります。

Squid と Polipo は、MySql へのリモート接続が必要な環境では使用できません。このようなシナリオでは、プロキシの前にローカル サーバーを設定し、リモート サーバーまたは VPN/SSH との同期メカニズムを設定することが可能です。

他の関連する読者に役立つことを願っています。

于 2013-01-03T07:57:29.553 に答える