Hy,
i have set a http traspernt proxy with squid and rule in the firewall:
iptables -A PREROUTING -t nat -i $LAN0 -p TCP --dport 80 -j REDIRECT --to-port 8080
and it function perfectly.


For the ftp i try with this rule:
iptables -A PREROUTING -t nat -i $LAN0 -p TCP --dport 21 -j REDIRECT --to-port 8080
but non function.

Squid is a HTTP proxy. You can't redirect the FTP protocol to a HTTP proxy and expect it to function as the two protocols are fundamentally different.


To proxy the FTP protocol (not only provide FTP access to HTTP clients) you need a FTP proxy such as Frox (see Related Software).

Regards
Henrik

Reply via email to