mdshaonimran

Untitled

Oct 26th, 2011
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. user@1:~$ sudo netstat -lnp
  2. Active Internet connections (only servers)
  3. Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
  4. tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 721/apache2
  5. tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 599/sshd
  6. tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 699/mysqld
  7. tcp6 0 0 :::22 :::* LISTEN 599/sshd
  8. udp 0 0 0.0.0.0:68 0.0.0.0:* 540/dhclient3
  9. Active UNIX domain sockets (only servers)
  10. Proto RefCnt Flags Type State I-Node PID/Program name Path
  11. unix 2 [ ACC ] STREAM LISTENING 2289 1/init @/com/ubuntu/upstart
  12. unix 2 [ ACC ] STREAM LISTENING 3280 699/mysqld /var/run/mysqld/mysqld.sock
  13. ==========================================================================================================
  14. user@1:~$ sudo iptables -L
  15. Chain INPUT (policy ACCEPT)
  16. target prot opt source destination
  17. ACCEPT tcp -- anywhere anywhere tcp dpt:www
  18.  
  19. Chain FORWARD (policy ACCEPT)
  20. target prot opt source destination
  21.  
  22. Chain OUTPUT (policy ACCEPT)
  23. target prot opt source destination
  24.  
Advertisement
Add Comment
Please, Sign In to add comment