-   Linux - Security (
-   -   Accessing FTP site using FTP Clients s/w on XP machines. (

munirg2003 06-22-2007 01:05 AM

Accessing FTP site using FTP Clients s/w on XP machines.
My scenario is: -

- I have xp client machines with proper proxy settings. Internet is running well. Plus client ftp software i.e., Ws-ftp95 or FileZilla.

- I have Linux ES-4 with Squid 2.6-13 stable installed by me with customized options i.e; --enable-arp-acl and --enable-delay-pools etc etc. The same server has two Ethernet Interfaces i.e., Eth0 (Connected configured to my internal LAN) and Eth1 (Connected to External broadband WAN)

Now we want to upload our files from client machines using ftp client browsers mentioned above but it is not connecting to site. Eventually i have to sit on server and have to use ftp command line command to upload data and it uploads perfectly after verifying user name and password. Even i tried this as you told me but all in vain: -

#iptables -A INPUT -s myLanNetID -p tcp --dport 20 -j ACCEPT
#iptables -A INPUT -s myLanNetID -p tcp --dport 21 -j ACCEPT

#iptables -A OUTPUT -d WAN-IP -p tcp --sport 20 -j ACCEPT
#iptables -A OUTPUT -d WAN-IP -p tcp --sport 21 -j ACCEPT

#iptables -A FORWARD -s myLanNetID -d WAN-IP -p tcp --dport 20 -j ACCEPT
#iptables -A FORWARD -s myLanNetID -d WAN-IP -p tcp --dport 21 -j ACCEPT

#service iptables save

- Please let me know the correct solution in easy steps.

Best Regards

win32sux 06-22-2007 01:40 AM

what does the iptables logging show when you attempt to ftp??

mintojoseph 06-22-2007 02:53 AM

Which FTP mode are you using with ftp client?

The above rules will not work with Passive FTP.

archtoad6 06-22-2007 06:05 AM

munirg2003 06-26-2007 12:45 AM

I did my best through web and manual but
Dear win32sux

I searched the web and manual but i did'nt get to know how to check iptables logging?

Dear mintojoseph

I have tried both active and passive mode but failed. Even changed status in squid and ws_ftp95 differently but no work.

Dear archtoad6

Thnx for telling me the correct way to ask question. Onward i will follow!

win32sux 06-26-2007 03:36 AM

Well, to monitor the log file you'd do something like:

tail -f /var/log/syslog
You'd need to have LOG rules in place within your iptables configuration, though.

BTW, you were asked by mintojoseph whether you were doing active or passive transfers. It's an important question.

PS: I've removed the word "urgent" from the thread title.

All times are GMT -5. The time now is 06:33 PM.