Created
May 9, 2020 22:50
-
-
Save LaurentFough/344a2509803f179f152671cd4a862191 to your computer and use it in GitHub Desktop.
OhMyZSH - iptables plug-ins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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