1821203 Members
3436 Online
109631 Solutions
New Discussion юеВ

Ftp put problem

 
SOLVED
Go to solution
Imran Hussain
Occasional Contributor

Ftp put problem

Hello @ good day

I'm running a proxy server using RHEL Advance Server 3.0, squid 2.5 stable7 & masquerade with iptables. The clients complaining me that they are not able to put or get to any FTP server.

Conf r as follows

squid with standard settings

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 10.0.0.0/255.0.0.0 -o eth0 -j MASQUERADE
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 8080

Thank u in advance
4 REPLIES 4
Vitaly Karasik_1
Honored Contributor

Re: Ftp put problem

AFAIK, squid is HTTP/HTTPS proxy.

For ftp proxying you may use

http://www.linux.org/apps/AppId_6668.html


AFAIK & IMHO, ftp protocol doen't work well wit hproxy.
Ivajlo Yanakiev
Respected Contributor
Solution

Re: Ftp put problem

I have same config :)
did you load thiskernel modules ?
ip_nat_ftp 3760 0 (unused)
iptable_nat 19512 2 [ipt_MASQUERADE ip_nat_ftp]
ip_conntrack_irc 3952 0 (unused)
ip_conntrack_ftp 4912 1
ip_conntrack 25160 4 [ipt_MASQUERADE ipt_state ip_nat_ftp iptable_nat ip_conntrack_irc ip_conntrack_ftp]
iptable_filter 2284 1 (autoclean)
ip_tables

It must work
Imran Hussain
Occasional Contributor

Re: Ftp put problem

Hello & Good day

My problem is solved now thanks for suggestions.
Imran Hussain
Occasional Contributor

Re: Ftp put problem

ip_nat_ftp 3760 0 (unused)
iptable_nat 19512 2 [ipt_MASQUERADE ip_nat_ftp]
ip_conntrack_irc 3952 0 (unused)
ip_conntrack_ftp 4912 1
ip_conntrack 25160 4 [ipt_MASQUERADE ipt_state ip_nat_ftp iptable_nat ip_conntrack_irc ip_conntrack_ftp]
iptable_filter 2284 1 (autoclean)
ip_tables