Category Archives: News - Page 5

Fix mod_rewrite erros in apache

change :


RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* – [F]

To this:


RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* – [F]
RewriteLog /var/log/apache2/rewrite.log
RewriteLogLevel 0

as described here

funny

Dilbert.com

find whats causing a busy partition in freebsd

trying to umount an nfs or external disk partition and got “partition busy” ?
use fstat -f to find out what the hold up …

-f      Restrict examination to files open in the same file systems as
             the named file arguments, or to the file system containing the
             current directory if there are no additional filename arguments.
             For example, to find all files open in the file system where the
             directory /usr/src resides, type ``fstat -f /usr/src''.

Qmail-tls notes

I am using Bill Shuff's toaster patch ( thanks bill , you rule ! ) , for some reason make cert did not work. I create the certs manually :

#openssl req -newkey rsa:1024 -x509 -nodes -days 3650 -out servercert.pem -keyout servercert.pem

qmail did show TLS up but i got an error : 

#openssl s_client -debug -crlf -starttls smtp -connect localhost:25
50883:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure:/usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/s23_clnt.c:562:

scratching my head around the net I found this and run :

#openssl ciphers > /var/qmail/control/tlsclientciphers #openssl ciphers > /var/qmail/control/tlsserverciphers 

which fixed it all: 

#openssl s_client -crlf -starttls smtp -connect localhost:25

CONNECTED(00000003)

FreeBSD, Thinkpad X40, Intel 2200BG and WPA

I have the intel 2200bg wirelss card and used the iwi-firmware .

Load modules at boot :

vi /boot/loader.conf
if_iwi_load=”YES”
wlan_load=”YES”
firmware_load=”YES”
legal.intel_iwi.license_ack=1

configure iwi network options :

vi /etc/rc.conf
ifconfig_iwi0=”WPA DHCP”

configure WPA settings :

vi /etc/wpa_supplicant.conf
ctrl_interface_group=0
network={
ssid=”ssid”
key_mgmt=WPA-PSK
psk=”shared-key”
}