Tag Archives: Freebsd

FreeBSD run problem after upgrade

FreeBSD upgrade from 7.4->8.1 or 8.1->8.2
Freebds freeze on boot.

Boot on single user mode and ADD to /boot/device.hints


Apache auth pam tacacs+

Встановлюємо mod_auth_pam.
В httpd.conf добавляємо.

LoadModule auth_pam_module libexec/apache22/mod_auth_pam.so

<Directory /home/cisco/>

AllowOverride All
AuthPAM_Enabled on
AuthPAM_FallThrough off
AuthUserFile /dev/null
AuthBasicAuthoritative Off
AuthName    “Security forever!”
AuthType    Basic
require     valid-user


Далі створюємо
Прописуємо в нього

<IP tacacs серверу> “comunity”



auth sufficient pam_tacplus.so try_first_pass

Резервне відновлення з копії

Freebsd dd restore
#echo -e "open host \n \n user <user>,<pass>
\n cd backup/ \n get dd.iso.gz \"|gzip -cd |dd of=/dev/ad0s1"| ftp

Alternative Freebsd dd restore
#echo "get dd2.iso.gz \"|gzip -cd | dd of=/dev/ad0s3\"" | ftp -i ftp://<user>:<pass>@

Резервне копіювання

dd if=/dev/ad0 of=ad0
gzip ad0
echo "put ad0.gz ad0.gz"|ftp -i ftp://user:pass@ftp.host

#dd over ftp
echo -e "put \"|dd if=/dev/ar0 | gzip\" ar0.iso.gz"| ftp -i ftp://user:pass@ftp.host/

### Altenative
echo -e "open ftp.host \n \n user login pass \n put \"|dd if=/dev/md2 | gzip\"md2.iso.gz"| ftp

SpamAssasin 2010 bug

Spam Assasin
I had to edit /opt/zimbra/conf/spamassassin/72_active.cf and I modified line 543 to be:
>>>> header FH_DATE_PAST_20XX Date =~ /20[2-9][0-9]/ [if-unset: 2006]