CSF commands for managing your server firewall. 1. Enable csf and lfd if previously disabled csf -e Or csf –enable 2. Disable csf and lfd completely csf -x Or csf –disable 3. Restart firewall rules csf -r Or csf –restart 4. Start the firewall rules csf -s Or csf –start 5. Flush/Stop firewall rules (Note: […]
See MoreTag: firewall
Introduction and basic usages of iptables under Unix/Linux
* What is iptables in Linux ? Iptables is a rule based firewall system and is normally pre-installed on a Unix operating system which is controlling the incoming and outgoing packets. Basic structure of iptables The structure for the iptables is like, Tables which has chains and the chains which contains rules. Tables —> Chains […]
See MoreBlock FTP access using firewall
Block FTP access using the IPtables(Default system firewall) 1) If you want to completely disable the FTP access on the server then run the command : root@server[#] iptables -A INPUT -p tcp –dport 21 -j DROP 2) If you want to block FTP access for a Specific IP then run the below command : root@server[#] […]
See More