Remote connection to web server

hazee

Distinguished
Jan 8, 2009
12
0
18,510
I can not connect to MySQL database(on a web server) using a VB.Net application, over a remote user connection. I can browse http and https without any issue but none of the other safe ports are available for communication. Though I am able to connect without the proxy server. MySQL remote connections are established on port number 3306.

Below is the squid.config file; ( I have given an extra space in 'c:' and '\' )
**Windows platform**

#Modified by Hazee Dec 08 2012
http_port 8080
cache_mgr the_email_id
visible_hostname the_host_name
hierarchy_stoplist cgi-bin ?
cache_mem 64 MB

cache_dir ufs c: /Squid/cache01 1000 16 256
cache_dir ufs c: /Squid/cache02 1000 16 256
cache_dir ufs c: /Squid/cache03 1000 16 256

cache_access_log c: /Squid/var/logs/access.log
cache_log c: /Squid/var/logs/cache.log
cache_store_log c: /Squid/var/logs/store.log
mime_table c: /Squid/etc/mime.conf
pid_filename c: /Squid/var/logs/squid.pid
ftp_user the_ftp_user
diskd_program c: /Squid/libexec/diskd.exe
unlinkd_program c: /Squid/libexec/unlinkd.exe
logfile_daemon c: /squid/libexec/logfile-daemon.exe
cache_store_log none
forwarded_for off
via off
httpd_suppress_version_string on
uri_whitespace strip

maximum_object_size 4194240 KB
maximum_object_size_in_memory 1024 KB

#redirect_program c: /usr/local/squidGuard/squidGuard.exe

#authenication with Windows server
auth_param ntlm program c: /squid/libexec/mswin_ntlm_auth.exe
auth_param ntlm children 5

acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/255.255.255.255
acl allowed_hosts src 201.1.1.0/255.255.255.255

#Limit upload to 2M and download to 3M
request_body_max_size 2048 KB
reply_body_max_size 5000000 allow all

1.default refresh patterns
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
#ACL to define ports allowed to pass through Squid
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 3306
acl Safe_ports port 443
acl SSL_ports port 443

acl CONNECT method CONNECT
http_access deny !Safe_ports
http_access allow CONNECT !SSL_ports
http_access allow localhost
http_access deny all

always_direct allow all

icon_directory c: /Squid/share/icons
error_directory c: /Squid/share/errors/English
coredump_dir c: Squid
 

hazee

Distinguished
Jan 8, 2009
12
0
18,510
Thanks for the replies .. :p


I have tried tcp_outgoing_address with no help ..

I have also tried to use
acl serverip dst 178.x.x.x/255.255.0.0

but no use.