Skip to content

Instantly share code, notes, and snippets.

@LaurentFough
Created May 9, 2020 22:50
Show Gist options
  • Save LaurentFough/344a2509803f179f152671cd4a862191 to your computer and use it in GitHub Desktop.
Save LaurentFough/344a2509803f179f152671cd4a862191 to your computer and use it in GitHub Desktop.
OhMyZSH - iptables plug-ins
# 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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment