Posts

Showing posts from May, 2016

Resource Load Tips and Tricks

Redirect dynamic page to static page if resource issues arise from high traffic to a single Webpagesar -qtop -cnetstat -antplsof -itcplsof -i :80

When you see the PID that is connecting to a remote port 80 rather than accepting a connection to local port 80, use lsof -p on that pid number to find the working directory of it.

Security
Check if we support insecure SSLv2:
openssl s_client -connect 127.0.0.1:443 -ssl2Check for outbound connections to remote port 80netstat -atnp |awk '$5 ~ /80/ {print $0}'The script above this line uses regex to search for "80" within the 5th column of the `netstat -atnp` command outputnetstat -atnp |awk '$5 ~ /80$/ {print $0}'Will do the same, making sure the string search looks for "80" at the end of a stringnetstat -atnp |awk '$5 ~ /:80$/ {print $0}'Will do the same, making sure the string search looks for "80" at the end of a string AND is preceded by a colon.