Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-22-2007, 12:05 AM
|
#1
|
LQ Newbie
Registered: Jun 2007
Posts: 4
Rep:
|
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
|
|
|
06-22-2007, 12:40 AM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
what does the iptables logging show when you attempt to ftp??
|
|
|
06-22-2007, 01:53 AM
|
#3
|
LQ Newbie
Registered: Nov 2006
Location: Kerala
Distribution: Fedora, Debian, RHEL
Posts: 29
Rep:
|
Which FTP mode are you using with ftp client?
The above rules will not work with Passive FTP.
|
|
|
06-22-2007, 05:05 AM
|
#4
|
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
|
|
|
|
06-25-2007, 11:45 PM
|
#5
|
LQ Newbie
Registered: Jun 2007
Posts: 4
Original Poster
Rep:
|
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!
|
|
|
06-26-2007, 02:36 AM
|
#6
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
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.
|
|
|
All times are GMT -5. The time now is 02:49 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|