Support Forums
My IP Tables keeps blocking FTP? - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Webmaster Support (https://www.supportforums.net/forumdisplay.php?fid=36)
+---- Forum: Web Server Support and Setup Help (https://www.supportforums.net/forumdisplay.php?fid=37)
+---- Thread: My IP Tables keeps blocking FTP? (/showthread.php?tid=19164)



My IP Tables keeps blocking FTP? - BioHazaЯd™ - 06-01-2011

For some reason, IP Tables on my Centos 5.4 VPS keeps blocking FTP. What I have to do to use FTP right now is enter the command to stop IP Tables, a few hundred files will upload, and I have to stop IP Tables again, another few hundred files, and then I have to stop it again. How do I add an exception or permanently disable IP Tables?


RE: My IP Tables keeps blocking FTP? - ★Cooldude★ - 06-01-2011

Try adding your domain with port 21 to the IP whitelist.


RE: My IP Tables keeps blocking FTP? - Solidus - 06-01-2011

You don't want to disable IP tables. You just need allow the FTP port, assuming it's 21, add this via SSH,

Code:
iptables -I INPUT -p tcp --dport 21 -j ACCEPT

You add it to the iptables rules file,

Code:
nano /etc/sysconfig/iptables
This will open the file in your editor (nano), assuming you have it.


RE: My IP Tables keeps blocking FTP? - BioHazaЯd™ - 06-01-2011

Ok I'll try adding that rule again even though I'm fairly sure I have in the past.


RE: My IP Tables keeps blocking FTP? - Solidus - 06-01-2011

It might be easier with Virtuozzo if you are using it.


RE: My IP Tables keeps blocking FTP? - BioHazaЯd™ - 06-01-2011

Not sure what that is. I'm using Webmin. Already did it through SSH anyway and it still blocks FTP.


RE: My IP Tables keeps blocking FTP? - Solidus - 06-01-2011

Add a rule to accept everything, then check.


RE: My IP Tables keeps blocking FTP? - BioHazaЯd™ - 06-01-2011

Sorry but I barley work with IP Tables. Can you please tell me how to do that?