Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user@1:~$ sudo netstat -lnp
- Active Internet connections (only servers)
- Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
- tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 721/apache2
- tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 599/sshd
- tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 699/mysqld
- tcp6 0 0 :::22 :::* LISTEN 599/sshd
- udp 0 0 0.0.0.0:68 0.0.0.0:* 540/dhclient3
- Active UNIX domain sockets (only servers)
- Proto RefCnt Flags Type State I-Node PID/Program name Path
- unix 2 [ ACC ] STREAM LISTENING 2289 1/init @/com/ubuntu/upstart
- unix 2 [ ACC ] STREAM LISTENING 3280 699/mysqld /var/run/mysqld/mysqld.sock
- ==========================================================================================================
- user@1:~$ sudo iptables -L
- Chain INPUT (policy ACCEPT)
- target prot opt source destination
- ACCEPT tcp -- anywhere anywhere tcp dpt:www
- Chain FORWARD (policy ACCEPT)
- target prot opt source destination
- Chain OUTPUT (policy ACCEPT)
- target prot opt source destination
Advertisement
Add Comment
Please, Sign In to add comment