Assume the server’s IP address is 125.121.156.156. Now we can block all ftp connections to the server withe the following ip tables rule
iptables -I INPUT -s 0.0.0.0 -d125.121.156.156 -p tcp -m tcp –dport 21 -j DROP
Now we can allow only authorised ip by the folloing rule. Assume the IP to be allowed is [...]
Archive for the ‘Linux’ Category
restrict ftp access using iptables
November 25th, 2009
Aneesh Install Apache, Mysql, PHP in Linux Server
November 9th, 2009
Aneesh Installing Apache
[root@server ~]# wget http://opensource.become.com/apache/httpd/apache_1.3.41.tar.gz



Posted in

