How to: Add Multiple Google Calendars into iCal

19/02/2024 Categories: Logiciel Tags: , , Comments off

Source: therealmacgenius.com

Do you have a GMail or Google account and use Google Calendar?  Have you ever needed to view multiple calendars in iCal, but can’t? Getting your Google Calendar into your iCal is fairly easy with a few simple steps.

To begin, you will need to do is fire up iCal, in iCal “Preferences,” and click on “Accounts” at the top. Then under “Account Type” select “Google” and fill out your username and password. After the window disappears go to “Server Settings” and make sure the server address is www.google.com, and that the port “use SSL” is checked. After you have checked over those things you will need to click on “Delegation” which should be right next to “Server Settings.” Click all the boxes of Calendar Categories that you would like to have in iCal and it in a few minutes your calendar should have the events from Google Calendar. iCal will automatically bring in new changes every 15 minutes; however, if you wish to have it done faster, just change the rate in the “Refresh Calendars” box.

There you go, all of your Google Calendars should now be in iCal, now you don’t have to view Google Calendars’ “Microsoft looking” interface.

Categories: Logiciel Tags: , ,

PHP MySQL Benchmark Tool (PMBT v. 0.2)

19/02/2024 Categories: Bases de données, Logiciel Tags: , , , , Comments off

Source: Reasons Unbeknownst

The old saying “Need is the father of innovation” (or something like that) held true this weekend. I was looking for an easy way to benchmark MySQL for some RAM drive InnoDB experimentation but couldn’t find anything cross platform, user friendly, and created after 2005. So I built an early version of what I was looking for.

This is a very synthetic benchmark for now. In some instances InnoDB is much faster than MyISAM (simultaneous reads/writes) but that doesn’t come across in these results. I’m planning on beefing up the benchmark options in later versions. This tool is currently useful in benchmarking hard drive / RAID performance when using InnoDB. It’s also good for basic my.cnf tweaking. Lire la suite…

Fail2ban, POSTFIX and SPAM

18/02/2024 Categories: Logiciel, Réseau Tags: , , , , , Comments off

source: deribin.com

Very simple solution:
1) add rule to /etc/fail2ban/jail.conf:

[spam]
enabled = true
filter = spam
action = iptables[name=SPAM, port=smtp, protocol=tcp]
sendmail-whois[name=SPAM, [email protected], [email protected]]
logpath = /var/log/mail.log
bantime = 3600
ignoreip = 127.0.0.1 xxx.xxx.xxx.xxx/xx
maxretry = 2

Lire la suite...

Linux Debian – XChat & FiSH plugin : Crypter vos conversations IRC avec Blowfish

18/02/2024 Categories: Logiciel, Réseau Tags: Comments off

source: Yohann's blog

Afin de garder un peu d’intimité sur un salon IRC, vous pouvez crypter vos conversations.

Les personnes n’ayant pas connaissance de la clef de cryptage ne verront que du Braille :

<pseudo> +OK xVUrz/Egtcg1
<pseudo> +OK PuA621ObE81/zK9Fs17LfdN0
<pseudo> +OK zCeES1cO0YQ.hM.fe0dLF1N04KAF01JIvQl0XNS0P1bSPIg.DMg.V16nSSF

En fait, tout ceci est une conversation en français tout à fait compréhensible, du moment ou l’on connait la clef de cryptage, et où tout le monde utilise le même charset.

Je vous explique dans la suite de ce billet, comment compiler le plugin BlowFish pour XChat, sous Linux Debian.

source: http://www.queret.net/blog/post/2007/10/02/102-linux-debian-xchat-fish-plugin-cypter-vos-conversations-irc-avec-blowfish

Afin de garder un peu d’intimité sur un salon IRC, vous pouvez crypter vos conversations.

Les personnes n’ayant pas connaissance de la clef de cryptage ne verront que du brailles :

<pseudo> +OK xVUrz/Egtcg1
<pseudo> +OK PuA621ObE81/zK9Fs17LfdN0
<pseudo> +OK zCeES1cO0YQ.hM.fe0dLF1N04KAF01JIvQl0XNS0P1bSPIg.DMg.V16nSSF

En faite tout ceci est une conversation en français tout à fait compréhensible, du momment ou l’on connais la clef de cryptage, et ou tout le monde utilise le meme charset.

Je vous explique dans la suite de ce billet, comment compiler le plugins BlowFish pour XChat, sous Linux Debian. Lire la suite…

Categories: Logiciel, Réseau Tags:

Rate-limit Incoming Port 22 Connections

17/02/2024 Categories: Réseau, Sécurité Tags: , , , , Comments off

Both netfilter and pf provides rate-limit option to perform simple throttling on incoming connections on port # 22.

Iptables Example

The following example will drop incoming connections which make more than 5 connection attempts upon port 22 within 60 seconds:

#!/bin/bash
inet_if=eth1
ssh_port=22
$IPT -I INPUT -p tcp --dport ${ssh_port} -i ${inet_if} -m state --state NEW -m recent  --set
$IPT -I INPUT -p tcp --dport ${ssh_port} -i ${inet_if} -m state --state NEW -m recent  --update --seconds 60 --hitcount 5 -j DROP

Call above script from your iptables scripts. Another config option:

$IPT -A INPUT  -i ${inet_if} -p tcp --dport ${ssh_port} -m state --state NEW -m limit --limit 3/min --limit-burst 3 -j ACCEPT
$IPT -A INPUT  -i ${inet_if} -p tcp --dport ${ssh_port} -m state --state ESTABLISHED -j ACCEPT
$IPT -A OUTPUT -o ${inet_if} -p tcp --sport ${ssh_port} -m state --state ESTABLISHED -j ACCEPT
# another one line example
# $IPT -A INPUT -i ${inet_if} -m state --state NEW,ESTABLISHED,RELATED -p tcp --dport 22 -m limit --limit 5/minute --limit-burst 5-j ACCEPT

See iptables man page for more details.

*BSD PF Example

The following will limits the maximum number of connections per source to 20 and rate limit the number of connections to 15 in a 5 second span. If anyone breaks our rules add them to our abusive_ips table and block them for making any further connections. Finally, flush keyword kills all states created by the matching rule which originate from the host which exceeds these limits.

sshd_server_ip="202.54.1.5"
table <abusive_ips> persist
block in quick from <abusive_ips>
pass in on $ext_if proto tcp to $sshd_server_ip port ssh flags S/SA keep state (max-src-conn 20, max-src-conn-rate 15/5, overload <abusive_ips> flush)