From 6d7fdee1bb7322c64b9bfbb138aeb92fb28ee851 Mon Sep 17 00:00:00 2001 From: nambra Date: Fri, 4 Mar 2016 13:19:01 +0330 Subject: [PATCH] added file content --- plugins/iptables/iptables.plugin.zsh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/plugins/iptables/iptables.plugin.zsh b/plugins/iptables/iptables.plugin.zsh index e69de29b..9485db6f 100644 --- a/plugins/iptables/iptables.plugin.zsh +++ b/plugins/iptables/iptables.plugin.zsh @@ -0,0 +1,11 @@ +# Some useful iptables aliases for New SysAdmins + + +alias fw_show="iptables -L -n -v" # Displaying the Status of Your Firewall +alias fw_show_line="iptables -n -L -v --line-numbers" # Display Line +alias fw_start="service iptables start" # Start the Firewall +alias fw_restart="service iptables restart" # Restart the Firewall +alias fw_stop="service iptables stop" # Stop the Firewall +alias fw_save="service iptables save" # Save the Firewall +alias fw_icmp_drop="iptables -A INPUT -p icmp --icmp-type echo-request -j DROP" # Block ICMP Ping Request +alias fw_flush="iptables -F"