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?
Try adding your domain with port 21 to the IP whitelist.
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.
Ok I'll try adding that rule again even though I'm fairly sure I have in the past.
It might be easier with Virtuozzo if you are using it.
Not sure what that is. I'm using Webmin. Already did it through SSH anyway and it still blocks FTP.
Add a rule to accept everything, then check.
Sorry but I barley work with IP Tables. Can you please tell me how to do that?