• Computer

    FreeBSD 6.2 release digt

    Skrevet nær FreeBSD 6.2 release tidspunktet. Jeg glaeder mig i denne tid,nu kommer releasen snart saa blid.og saa maa 6.2 da komme!Min chef hver dag til hjemmesiden gaar,og naar han logger ud, jeg staarog ser hans triste blik.Og paa hans desktop forleden dag,jeg saa en…

  • Computer,  Programmering

    Programming tools for C and Perl

    Programming tools for C and Perl, which I normally run my programs through gcov, man gcov gprof, man gprof ------ Lint: -h Apply a number of heuristic tests to attempt to intuit bugs, improve style, and reduce waste. -p Attempt to check portability of code…

  • Computer

    IPv6, DHCPd, OpenLDAP on FreeBSD

    Just a few small misc notes from my old FreeBSD server setup. There is a chance these are completely obsolete. IPv6 setup Add to rc.conf: ipv6_enable="YES" ipv6_ifconfig_fxp0="FEEE::1" ipv6_defaultrouter="FEEE::1" rtadvd_enable="YES" rtadvd_interfaces="em1" Edit /etc/rtadvd.conf em1:\ :addrs#1:addr="FEEE::":prefixlen#64:tc=ether: DHCPd ISC dhcpd in FreeBSD 8.2 Install the port: net/isc-dhcp41-server Set…

  • Computer

    FreeBSD gmirror raid 1 setup

    After installing the system on disk ad0, and wanting it to be mirrored at disk ad1. Eventually see: http://www.freebsd.org/doc/en/books/handbook/geom-mirror.html sysctl kern.geom.debugflags=17 gmirror label -vb round-robin gm0 /dev/ad0 gmirror load echo 'geom_mirror_load="YES"' >> /boot/loader.conf cp /etc/fstab /etc/fstab.old # vi /etc/fstab Replace all old ad0 references with…

  • Computer

    NTPd on FreeBSD 8.0

    Lars Sommer, lasg@lasg.dk, 2009-10-06 DISCLAIMER: This is a personal note made for personal usage. It might not be easy usable nor explaining. I'm using NTP on all machines with internet connection, to keep their clock more accurate. Remember to run tzsetup to set up correct…

  • Computer

    Rootkit-detection in FreeBSD

    Lars Sommer, lasg@lasg.dk, 2007-10-18DISCLAIMER: This is a personal note made for personal usage. It might not be easy usable nor explaining. Install these ports: security/chkrootkit security/rkhunter rkhunter install options: make options: WITH_LSOF=true WITH_NMAP=true --- chkrootkit usage: Run sometimes with: sudo chkrootkit -q Or add to…

  • Computer

    FreeBSD jails note

    Lars Sommer, lasg@lasg.dk, 2009-05-20DISCLAIMER: This is a personal note made for personal usage. It might not be easy usable nor explaining. Install these ports: sysutils/jailutils sysutils/ezjail If "make buildworld" just has been done, then ezjail-admin update -i to install the recently build world is fine.…

  • Computer

    Denyhosts on FreeBSD 8

    Lars Sommer, lasg@lasg.dk, 2011-06-20 Install the port security/denyhosts Add to /etc/rc.conf denyhosts_enable="YES" add syslogd_flags="-c" in /etc/hosts.allow add: sshd : /etc/hosts.deniedssh : deny sshd : ALL : allow Or, if anything should be denied from these hosts who fails ssh login; insert ALL instead of sshd.…

  • Computer

    Host Intrusion Detection System in FreeBSD

    Also called Host IDS or just HIDSLars Sommer, lasg@lasg.dk, 2009-01-07DISCLAIMER: This is a personal note made for personal usage. It might not be easy usable nor explaining. In ports in security, there are several HIDS utilities: aide integrit osiris ossec-hids-local samhain But which should I…

  • Computer

    GELI encryption of full drive in FreeBSD

    Lars Sommer, lasg@lasg.dk, 2010-01-27 Based on: http://www.freebsd.org/doc/handbook/disks-encrypting.html I am using harddrives two and two in RAID1 with geom_mirror. After creating a mirror, I encrypt it using GELI. Loading the GELI module for now: kldload geom_eli Insert into /boot/loader.conf: geom_eli_load="YES" In this example my geom_mirror is…