Skip to content

Instantly share code, notes, and snippets.

@bradland
Created August 16, 2012 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bradland/3372913 to your computer and use it in GitHub Desktop.
Save bradland/3372913 to your computer and use it in GitHub Desktop.
# UFW commands issued
ufw default deny
ufw allow 22
ufw allow 10000
ufw allow 3306 from IP_REDACTED
ufw limit ssh/tcp
uwf logging on
ufw enable
# Output of `ufw status`
root@hostname:~# ufw status
Status: active
To Action From
-- ------ ----
22 ALLOW Anywhere
22/tcp LIMIT Anywhere
10000 ALLOW Anywhere
# nmap scan result (performed from another host)
root@buildup:~# nmap -T4 -sT IP_REDACTED
Starting Nmap 5.00 ( http://nmap.org ) at 2012-08-16 14:45 EDT
Interesting ports on hostname_redacted (IP_REDACTED):
Not shown: 995 filtered ports
PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
554/tcp open rtsp
7070/tcp open realserver
10000/tcp open snet-sensor-mgmt
Nmap done: 1 IP address (1 host up) scanned in 6.26 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment