Monthly Archives: February 2013

SPF (DNS) record

What is SPF (Sender Policy Framework) and what it is for : it is used to check sender mail address (basically a spoofing protection, spoofing is changing of mail message header and hiding of real sender address – definition link … Continue reading

Posted in Linux | Tagged , | Comments Off on SPF (DNS) record

Internet Explorer and constant prompting for (un)secure content

If you have Internet Explorer, and it brings up constant prompt for some pages : “This page contains both secure and nonsecure items. Do you want to display the nonsecure items?” And when you click on “Yes”, the same prompt … Continue reading

Posted in Uncategorized | Tagged , , | Comments Off on Internet Explorer and constant prompting for (un)secure content

Apache+fail2ban+apache-badbots

How to stop bots (see earlier post for definition)? Take care to pair up correctly Apache logs and apropriate fail2ban function! In my case apache-badbots is paired up with all access type Apache logs (this does include also SquirrelMail access … Continue reading

Posted in Linux | Tagged , , | Comments Off on Apache+fail2ban+apache-badbots

Apache+mod_evasive

Since my mail server also has webmail access, I am going to protect it also, using fail2ban for Apache. And for fail2ban to have logs to analyse, it would be good to put mod_evasive for Apache. Here is one nice … Continue reading

Posted in Linux | Tagged , | Comments Off on Apache+mod_evasive

A wonderful book for teenagers

A very well-written serial for younger and older teenagers (for parents also!) : Rangers apprentice – link on Amazon High-quality fantasy, easy to read. First four books are one whole.

Posted in Books | Tagged , | Comments Off on A wonderful book for teenagers

NTP server

NTP server or Network Time Protocol server is something that you should REALLY have in your network (it works on port 123, UDP, as source and destination). But we have a additional problem connected to time, and that is “Daylight … Continue reading

Posted in Linux | Tagged , | Comments Off on NTP server

Squid log problem

If you get such warnings in /var/log/squid/cache.log file : 2013/01/25 09:20:58| WARNING: Error Pages Missing Language: sr-rs 2013/01/25 09:20:59| errorpage.cc(293) errorTryLoadText: ‘/usr/share/squid/errors/sr-rs/ERR_ACCESS_DENIED’: (2) No such file or directory ” That means that this language error type is missing amongst the … Continue reading

Posted in Linux | Tagged , , | Comments Off on Squid log problem

How to look at several logs at the same time

Well it can be done using several SSH Putty windows, and #tail -f command. OR Using “multitail” command. Here is a nice link for it : here1, and here2 you can get it for RHEL and Fedora. The simplest use … Continue reading

Posted in Linux | Tagged | Comments Off on How to look at several logs at the same time

A nice snack

For someone who is (a little bit) on a diet…. Grind a whole carrot (smaller grind), a piece of hard cheese, and a bit of a chicken salami. A bit of salt, pepper and olive-oil, and it is done!

Posted in Kitchen | Tagged , | Comments Off on A nice snack

fail2ban + pop3 + imap

How to register unsuccesful log in on SquirrelMail webmail : In file /etc/fail2ban/jail.conf we add the following : [imap-login] enabled = true filter = imap-login action = iptables-multiport[name=BadBots, port=”http,https,pop3,pop3s,imap,imaps”, protocol=tcp”] sendmail-buffered[name=BadBots, lines=5, dest=admin-postmaster@moj.domen] logpath = /var/log/messages maxretry = 3 We … Continue reading

Posted in Linux | Tagged , , | Comments Off on fail2ban + pop3 + imap