| by Mark | No comments

PF Firewall

Configureren Commando om de firewall (PF) aan te zetten: # kldload pf Firewall automatisch bij het opstarten aanzetten: # ee /etc/rc.conf # Enable PF (load module if required) pf_enable=”YES” # rules definition file for pf pf_rules=”/etc/pf.conf” # additional flags for pfctl startup pf_flags=”” # start pflogd(8) pflog_enable=”YES” # where pflogd should store the logfile pflog_logfile=”/var/log/pflog” […]

Read More
| by Mark | No comments

Mergelog

Mergelog Mergelog is a small and fast C program which merges by date httpd log files in ‘Common Log Format’ from web servers behind round-robin DNS. It has been designed to easily manage huge log files from highly stressed servers. mergelog is distributed with zmergelog which supports gzipped log files. Installatie # cd /usr/ports/www/mergelog # […]

Read More
| by Mark | No comments

Jail

Configuratie Maak een sh bestand aan # ee /etc/jail.sh D=/usr/jail/192.168.1.142 cd /usr/src mkdir -p $D make world DESTDIR=$D make distribution DESTDIR=$D mount_devfs devfs $D/dev De sh bestand uitvoeren. sh jail.sh Aanpassen van de rc.conf bestand. ee /etc/rc.conf jail_enable=”YES” # Set to NO to disable starting of any jails jail_interface=”fxp0″ jail_devfs_enable=”YES” jail_procfs_enable=”YES” jail_list=”www” # Space separated […]

Read More
| by Mark | No comments

Dump en Restore

Inleiding The traditional UNIX® backup programs are dump and restore. They operate on the drive as a collection of disk blocks, below the abstractions of files, links and directories that are created by the file systems. dump backs up an entire file system on a device. It is unable to backup only part of a […]

Read More
| by Mark | No comments

Common Address Redundancy Protocol

The Common Address Redundancy Protocol or CARP is a protocol which allows multiple hosts on the same local network to share a set of IP addresses. Its primary purpose is to provide failover redundancy. For example, if there is a single computer running a packet filter, and it goes down, then either the networks on […]

Read More
| by Mark | No comments

Cron

Cron In het bestand /etc/crontab kunnen diverse aanpassingen gedaan worden. De opbouw is al volgt minute hour mday month wday who command Elke 15 minuten 0,15,30,45 * * * * root /usr/local/bin/cronprog Elke nacht om kwart over een 15 1 * * * root /usr/local/bin/cronprog Links FreeBSD Handbook Cron

Read More
| by Mark | No comments

Libssh

LibSSH2 Om de libSSH2 module te gebruiken als PHP extension, doe het volgende Getest vanaf plesk versie 8.1.1 # cd /usr/ports/security/pecl-ssh2 # make install clean

Read More
| by Mark | No comments

Date

Date Display or set date and time Datum en tijd goedzetten # date 0707041018 De opbouw van de cijfers achter date is als volgt: 07 07 04 10 18 Jaar Maand Dag Uur Minuten

Read More
| by Mark | No comments

PostgreSQL

Algemeen Een database backuppen: /usr/local/psa/postgresql/bin/pg_dump -cDx databasename > /home/dump.sql Een database restoren: /usr/local/psa/postgresql/psql -f backupfile databasename username Het probleem is alleen dat je voor het dumpen een database de PGUSER en PGPASSWORD als environment variabelen moet opgeven. Ik weet hoe je dit doet in bash, maar niet in ssh: export PGUSER=postgresql export PGPASSWORD=bQ… Dus maak […]

Read More
| by Mark | No comments

SEC (Simple Event Correlator)

SEC (Simple Event Correlator) is an open source and platform independent event correlation tool that was designed to fill the gap between commercial event correlation systems and homegrown solutions that usually comprise a few simple shell scripts. SEC accepts input from regular files, named pipes, and standard input, and can thus be employed as an […]

Read More