hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : FTP problem
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

FTP problem

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 08-07-2004, 01:28 PM
cannibal cannibal is offline
Web Hosting Master
 
Join Date: May 2003
Posts: 793

FTP problem


Hi

I don't know what is the problem on my server, no one from my clients can access FTP

they can access when I run

/sbin/iptables -F

but after hours from that the problem appear again

any one knows how can I fix it or any ideas !

thanks

cannibal

Reply With Quote


Sponsored Links
  #2  
Old 08-07-2004, 01:35 PM
wakkow wakkow is offline
WHT Addict
 
Join Date: Aug 2002
Location: Davis, CA
Posts: 169
What are your iptables entries before you flush it (or while ftp doesn't work)? Do a 'iptables -L'

Reply With Quote
  #3  
Old 08-07-2004, 01:42 PM
cannibal cannibal is offline
Web Hosting Master
 
Join Date: May 2003
Posts: 793
What this command will do

iptables -L

???

Reply With Quote
Sponsored Links
  #4  
Old 08-07-2004, 02:00 PM
wakkow wakkow is offline
WHT Addict
 
Join Date: Aug 2002
Location: Davis, CA
Posts: 169
From the man page:
Code:
       -L, --list [chain]
              List all rules in the selected chain.  If no chain is  selected,
              all  chains  are  listed.
It will list all the rules.. Since flushing the table fixes the problem, there must be an entry causing it.

Reply With Quote
  #5  
Old 08-07-2004, 02:45 PM
cannibal cannibal is offline
Web Hosting Master
 
Join Date: May 2003
Posts: 793
root@ns1 [~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain FUDP (0 references)
target prot opt source destination

Chain LA (0 references)
target prot opt source destination

Chain LD (0 references)
target prot opt source destination

Chain PROHIBIT (0 references)
target prot opt source destination

Chain PZ (0 references)
target prot opt source destination

Chain RESET (0 references)
target prot opt source destination

Chain SSH_LOG (0 references)
target prot opt source destination

Chain TELNET_LOG (0 references)
target prot opt source destination

Chain acctboth (0 references)
target prot opt source destination

Reply With Quote
  #6  
Old 08-07-2004, 02:57 PM
wakkow wakkow is offline
WHT Addict
 
Join Date: Aug 2002
Location: Davis, CA
Posts: 169
Is that run when FTP works or when it's broken? There are no entries which would be the case if you ran "iptables -F" to flush it.

Reply With Quote
  #7  
Old 08-07-2004, 03:08 PM
cannibal cannibal is offline
Web Hosting Master
 
Join Date: May 2003
Posts: 793
that after FTP works I entered iptables -F before it

Reply With Quote
  #8  
Old 08-09-2004, 07:32 AM
cannibal cannibal is offline
Web Hosting Master
 
Join Date: May 2003
Posts: 793
I run iptables -L when it's broken

it shows like chacking IPs one by one not like the massege that I wrote up

any idea !

Reply With Quote
  #9  
Old 08-09-2004, 12:46 PM
wakkow wakkow is offline
WHT Addict
 
Join Date: Aug 2002
Location: Davis, CA
Posts: 169
To make sure I understand, it shows a listing of IP's? Do any of them say "DROP" in the first column? Any that say that means the firewall is droppnig those packets. You must have a saved entry in there that's causing the problem, but I'm not sure how it showed up in the first place or why it reoccurs.

You can try finding which entry is dropping packets to port 21, delete that entry and run 'iptables-save'.. It's hard to say without being on your machine.

Reply With Quote
  #10  
Old 08-11-2004, 12:57 AM
cannibal cannibal is offline
Web Hosting Master
 
Join Date: May 2003
Posts: 793
Yha

There are alot of DROP in the first column

how can I fix it ??

Reply With Quote
  #11  
Old 08-17-2004, 06:15 AM
cannibal cannibal is offline
Web Hosting Master
 
Join Date: May 2003
Posts: 793
from LogWatch

Dropped 417 packets on interface eth0

Reply With Quote
  #12  
Old 08-18-2004, 03:48 AM
zoomx zoomx is offline
Junior Guru Wannabe
 
Join Date: May 2003
Posts: 96
How can I find which entry is dropping packets to port 21

and how can I delet it ??

Reply With Quote
  #13  
Old 08-18-2004, 02:05 PM
CArmstrong CArmstrong is offline
Retired Moderator
 
Join Date: Aug 2003
Location: Pittsburgh
Posts: 3,475
What distribution? If RedHat,

Code:
cat /etc/sysconfig/iptables
At least for me, that's the script that's imported into iptables on system startup. Post the contents of that and we can help you edit.

__________________
WHT HelpDesk

Reply With Quote
  #14  
Old 08-20-2004, 08:23 AM
cannibal cannibal is offline
Web Hosting Master
 
Join Date: May 2003
Posts: 793
Its RedHat Fedora

cat /etc/sysconfig/iptables

cat: /etc/sysconfig/iptables: No such file or directory

Reply With Quote
  #15  
Old 08-20-2004, 11:29 AM
wakkow wakkow is offline
WHT Addict
 
Join Date: Aug 2002
Location: Davis, CA
Posts: 169
If you run "iptables -F" to clear the firewall then "iptables-save" or "/sbin/service iptables save" to save the empty firewall.. I wouldn't recommend doing this since it will completely clear all your entries.. But you've already been running that way anyways.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Outbound Spam Causing Sleepless Nights? Blog 2013-05-13 09:52:21
How To Deliver Products Customers Will Pay For with David Koston - HostingCon 2012 Web Hosting News 2012-07-18 10:46:16
HostingCon Preview: Q&A with David Koston of Fortuity LLC Web Hosting News 2012-07-10 12:54:20
eleven Survey Lists Spam as Greatest Email Security Threat in Ten Years Web Hosting News 2011-12-02 21:50:09
The Lesson of the Ten, with Jeff Hardy Web Hosting News 2011-08-08 22:12:01


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?