Server Sandbox

Common commands


  • netstat -a | more
    show ports and services that you are using.
  • ifconfig
    Know network options.


  • dig
    Do DNS query.
  • host
    Know the IP of a name.
  • nslookup
    Check if DNS is resolve correctly.


  • telnet 25
    Basic query to SMTP service.


  • telnet 110
    Basic query to POP service.


  • ldapsearch -x -H ldap://LDAP_IP -b "cn='',ou='',o='',c=''" FIELD
    Search in the LDAP IP.


  • curl -I
    Get HTTP head of the response.


  • openssl version -d
    Report your SSL directory
  • openssl req -x509 -newkey rsa:2048 -keyout cakey.pem -days 3650 -out cacert.pem Generate CA autosign in the server
  • openssl x509 -in cacert.perm -text
    Check that your server certificate is standard by x509
  • openssl rsa -in cakey.perm -text
    Check taht your server certificate is RSA correct
  • openssl req -new -nodes -newkey rsa:1024 -keyout serverkey.pem -out servercsr.pem
    Generate certificate client
  • openssl ca –keyfile cakey.pem -in servercsr.pem -out servercert.pem
    Sign certificate client by the server
  • openssl s_server -cert servercert.pem -key serverkey.pem -www
    Check that your client certificate is valid