Donnerstag, 26. Mai 2016

Protect PHP Admin with IPTables

just in case you have phpAdmin running at port 2000 and you want to protect it:

iptables -I INPUT -m tcp -p tcp --dport 2000 -j ACCEPT
service iptables save

to block 

iptables -I INPUT -m tcp -p tcp --dport 2000 -j REJECT
service iptables save

Freitag, 20. Mai 2016

Iridium 9555 time correction

In case your Iridium 9555 shows as date March 3, 2015 please dial:
*#99#2014051114235500# 
Press Green Key
Turn power Off



In case you want to test your Iridium 9555 just call (toll free)

0014807525105

Montag, 16. Mai 2016

Certs ssh authorized_keys automatic login does not work

Hi,

in case you are using CENTOS and you stored your authorized_keys in /home/USER/.ssh/ you may wondering, why an automatic login does not work.

Check the rights of your authorized_keys:

-rw-rw-r-- is too much.

This solves your problem (login as current user!)


chmod go-w ~/
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys




Samstag, 14. Mai 2016

openSSL SSL Certificate check and other hints

In case you need to confirm, that your private key matches to your certificate:

openssl x509 -noout -modulus -in server.crt | openssl md5
openssl rsa -noout -modulus -in server.key | openssl md5


Check Certificate

openssl x509 -text -noout -in ABC.crt 

Freitag, 13. Mai 2016

Apache

Some "Bookmarks" you need for fast debugging:

sudo netstat -ltnp | grep '443'

vi httpd.conf


chown clamav:clamav /var/log/clamav/freshclam.log

apachectl -k stop

apachectl testconfig