March 29, 2024, 03:44:59 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Unable to FTP with Transparent Proxy caching  (Read 4888 times)

Offline asimbutt

  • Linux Noob !
  • *
  • Posts: 5
Unable to FTP with Transparent Proxy caching
« on: August 30, 2004, 01:20:30 PM »
Dear gurus,

I have configured RH 9.0 as transparent proxy caching and its works well with my current configuration except FTP sites are unable to connect. Here is my squd.conf file:


maximum_object_size 8192 KB  
cache_mem 32 MB
cache_access_log /var/log/squid/access.log
cache_store_log none

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255

acl sn_network src 192.168.5.0/255.255.255.0
acl ip-159 src 192.168.5.159

acl SSL_ports port 443 563
acl Safe_ports port 80 21 443 563 70 210 1025-65535
acl Safe_ports port 280
acl Safe_ports port 21
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl CONNECT method CONNECT

acl msn-block url_regex -i gateway.dll

http_access allow manager localhost
http_access deny manager

http_access deny !Safe_ports
http_access deny msn-block

http_access allow sn_network
http_access deny all
icp_access allow all
miss_access allow all

visible_hostname abc.mydomain.com  
unique_hostname abc.mydomain.com

httpd_accel_host vertual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

http_port 3128

Pl help to review above file and suggest why ftp sites are unable to open with this setup. Also I tried to block MSN-chat and it work with above setup, but again there is one problem which is "I am unable to login at hotmail.com to read mails.

Thank you! in advance,

Regards,
Asim

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Unable to FTP with Transparent Proxy caching
« Reply #1 on: August 30, 2004, 01:55:31 PM »
Try to set your ftp client to work in Passive mode !!

Offline asimbutt

  • Linux Noob !
  • *
  • Posts: 5
Unable to FTP with Transparent Proxy caching
« Reply #2 on: August 31, 2004, 05:34:18 AM »
Quote from: "Ricky"
Try to set your ftp client to work in Passive mode !!

Thank you! fir the reply but my client is already using the passive mode. Any further suggestions.

Regards,
Asim

Offline asimbutt

  • Linux Noob !
  • *
  • Posts: 5
Unable to FTP with Transparent Proxy caching
« Reply #3 on: September 01, 2004, 11:18:59 AM »
Quote from: "asimbutt"
Quote from: "Ricky"
Try to set your ftp client to work in Passive mode !!

Thank you! fir the reply but my client is already using the passive mode. Any further suggestions.

Regards,
Asim

Dear all,

I find the solution for the above problem. The actual problem was:

"I configured transparent squid proxy caching and after that I am unable to access any FTP site and also unable to access any secure http sites"

The problem resolved after take care of certain port masquarading. That is I just masquarade ftp and https ports.

Regards,
Asim

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Unable to FTP with Transparent Proxy caching
« Reply #4 on: September 01, 2004, 11:59:04 AM »
Quote
The problem resolved after take care of certain port masquarading. That is I just masquarade ftp and https ports.
If you have masquarade now then hw you are sure that you were earlier using transparent proxy ? anyway.. if it is resolved then no probs !

Offline asimbutt

  • Linux Noob !
  • *
  • Posts: 5
Unable to FTP with Transparent Proxy caching
« Reply #5 on: September 02, 2004, 08:48:21 AM »
Quote from: "Ricky"
Quote
The problem resolved after take care of certain port masquarading. That is I just masquarade ftp and https ports.
If you have masquarade now then hw you are sure that you were earlier using transparent proxy ? anyway.. if it is resolved then no probs !


Yes Ricky I am sure as I am not using proxy address with my browser ......


Asim