LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-22-2007, 12:05 AM   #1
munirg2003
LQ Newbie
 
Registered: Jun 2007
Posts: 4

Rep: Reputation: 0
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
 
Old 06-22-2007, 12:40 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
what does the iptables logging show when you attempt to ftp??
 
Old 06-22-2007, 01:53 AM   #3
mintojoseph
LQ Newbie
 
Registered: Nov 2006
Location: Kerala
Distribution: Fedora, Debian, RHEL
Posts: 29
Blog Entries: 1

Rep: Reputation: 15
Which FTP mode are you using with ftp client?

The above rules will not work with Passive FTP.
 
Old 06-22-2007, 05:05 AM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
http://linuxmafia.com/faq/Essays/sma...ns.html#urgent
 
Old 06-25-2007, 11:45 PM   #5
munirg2003
LQ Newbie
 
Registered: Jun 2007
Posts: 4

Original Poster
Rep: Reputation: 0
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!
 
Old 06-26-2007, 02:36 AM   #6
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Well, to monitor the log file you'd do something like:
Code:
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.

Last edited by win32sux; 06-26-2007 at 02:38 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ftp(through web site access to ftp server) kelper Linux - Software 4 07-03-2015 05:14 PM
Access authenticating FTP sites using FTP Clients on XP clients via SQUID munirg2003 Linux - Networking 2 06-12-2007 10:58 PM
FTP apps keep crashing when I FTP my whole site Roosta21 Linux - Software 3 01-28-2006 06:51 PM
FTP server for FTP-only clients? bulls_i Linux - Software 1 10-25-2005 03:47 PM
Urgent Help: Perl FTP Script Using NET::FTP xboxter Programming 8 05-16-2005 06:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration