Skip to content

Instantly share code, notes, and snippets.

@AliSajid
Forked from anonymous/lsof-i-Pnl
Last active August 29, 2015 14:02
Show Gist options
  • Save AliSajid/28e3b5d5a5f80e1fb18b to your computer and use it in GitHub Desktop.
Save AliSajid/28e3b5d5a5f80e1fb18b to your computer and use it in GitHub Desktop.
# Generated by iptables-save v1.4.7 on Thu Jun 19 11:52:07 2014
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [10278:531921]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 21 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 25 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 631 -j ACCEPT
-A INPUT -p udp -m state --state NEW -m udp --dport 631 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
# Completed on Thu Jun 19 11:52:07 2014
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
rpcbind 1379 32 6u IPv4 11367 0t0 UDP *:111
rpcbind 1379 32 7u IPv4 11369 0t0 UDP *:706
rpcbind 1379 32 8u IPv4 11370 0t0 TCP *:111 (LISTEN)
rpcbind 1379 32 9u IPv6 11372 0t0 UDP *:111
rpcbind 1379 32 10u IPv6 11374 0t0 UDP *:706
rpcbind 1379 32 11u IPv6 11375 0t0 TCP *:111 (LISTEN)
avahi-dae 1418 70 13u IPv4 11592 0t0 UDP *:5353
avahi-dae 1418 70 14u IPv4 11593 0t0 UDP *:49007
rpc.statd 1436 29 5r IPv4 11812 0t0 UDP *:764
rpc.statd 1436 29 8u IPv4 11828 0t0 UDP *:56101
rpc.statd 1436 29 9u IPv4 11832 0t0 TCP *:46345 (LISTEN)
rpc.statd 1436 29 10u IPv6 11836 0t0 UDP *:53006
rpc.statd 1436 29 11u IPv6 11840 0t0 TCP *:43028 (LISTEN)
cupsd 1516 0 6u IPv6 12124 0t0 TCP [::1]:631 (LISTEN)
cupsd 1516 0 7u IPv4 12125 0t0 TCP 127.0.0.1:631 (LISTEN)
cupsd 1516 0 9u IPv4 12128 0t0 UDP *:631
sshd 1623 0 3u IPv4 12655 0t0 TCP *:22 (LISTEN)
sshd 1623 0 4u IPv6 12660 0t0 TCP *:22 (LISTEN)
vsftpd 1634 0 3u IPv4 12682 0t0 TCP *:21 (LISTEN)
httpd 1724 0 4u IPv6 13029 0t0 TCP *:80 (LISTEN)
httpd 1730 48 4u IPv6 13029 0t0 TCP *:80 (LISTEN)
httpd 1731 48 4u IPv6 13029 0t0 TCP *:80 (LISTEN)
httpd 1732 48 4u IPv6 13029 0t0 TCP *:80 (LISTEN)
httpd 1733 48 4u IPv6 13029 0t0 TCP *:80 (LISTEN)
httpd 1734 48 4u IPv6 13029 0t0 TCP *:80 (LISTEN)
httpd 1735 48 4u IPv6 13029 0t0 TCP *:80 (LISTEN)
httpd 1736 48 4u IPv6 13029 0t0 TCP *:80 (LISTEN)
httpd 1737 48 4u IPv6 13029 0t0 TCP *:80 (LISTEN)
qpidd 1743 497 10u IPv4 13115 0t0 TCP *:5672 (LISTEN)
qpidd 1743 497 11u IPv6 13116 0t0 TCP *:5672 (LISTEN)
master 3258 0 12u IPv4 29120 0t0 TCP 127.0.0.1:25 (LISTEN)
master 3258 0 13u IPv6 29122 0t0 TCP [::1]:25 (LISTEN)
sshd 3313 0 3r IPv4 30656 0t0 TCP 192.168.122.20:22->192.168.122.1:56630 (ESTABLISHED)
sshd 3317 500 3u IPv4 30656 0t0 TCP 192.168.122.20:22->192.168.122.1:56630 (ESTABLISHED)
Starting Nmap 5.21 ( http://nmap.org ) at 2014-06-19 11:49 PDT
Nmap scan report for gamma (192.168.122.20)
Host is up (0.00042s latency).
Not shown: 996 closed ports
PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
80/tcp open http
111/tcp open rpcbind
Nmap done: 1 IP address (1 host up) scanned in 0.09 seconds
Starting Nmap 5.21 ( http://nmap.org ) at 2014-06-19 11:48 PDT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00051s latency).
Hostname localhost resolves to 2 IPs. Only scanned 127.0.0.1
Not shown: 994 closed ports
PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
25/tcp open smtp
80/tcp open http
111/tcp open rpcbind
631/tcp open ipp
Nmap done: 1 IP address (1 host up) scanned in 0.18 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment