Category Archives: Security

Apache : Unable to configure RSA server private key

Apache startup failed – look at /var/log/httpd/ssl_error_log and show the following error : Unable to configure RSA server private key SSL Library Error: x509 certificate routines:X509_check_private_key:key values mismatch The private key and the certificate do not match. You can compare the certificate and the key with the following commands : View the certificate modulus using… Read More »

Linux : TCP Treason uncloaked

If you see those dmesg output message, this mean that someone is attacking your server. Probably by sending fragmented packets. TCP: Treason uncloaked! Peer 0.0.0.0:00000/80 shrinks window 76154906:76154907. Repaired. This may be avoid by manually blocking this IP in IPtables or if this is a DDoS attack, automated script may be used. See above (use with… Read More »

Linux : How to block IP address with IPtables

Here is a quick how to block a specific IP address with the IPtables Linux firewall. Open the IPtables script : vi /etc/sysconfig/iptables To block INBOUND IP address, add the following : iptables -A INPUT -s 0.0.0.0 -j DROP To block OUTBOUND IP address : iptables -A OUTPUT -p tcp -d 0.0.0.0 -j DROP (replace… Read More »