Last active
April 25, 2016 20:39
-
-
Save hugsbrugs/335380a782ca9b685526 to your computer and use it in GitHub Desktop.
Linux network memo
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
# See all opened ports | |
netstat -ntlp | grep LISTEN | |
# | |
netstat - anp | |
# | |
netstat -tulpen | |
# Show uwf status | |
sudo ufw status verbose | |
# Open a port | |
sudo ufw allow 80/tcp | |
sudo ufw show added | |
sudo ufw enable | |
# fail2ban ufw rules | |
sudo ufw insert 1 deny from <ip address> | |
sudo ufw delete allow from <ip address> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment