• 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…

  • Computer

    APC UPS power failure handling agent on FreeBSD

    On FreeBSD 8.1, 2010-08-03 Install the port: sysutils/apcupsd Change in configfile: /usr/local/etc/apcupsd/apcupsd.conf: UPSNAME UPS2 UPSCABLE usb UPSTYPE usb DEVICE /dev/ugen0 (Find the correct device by doing dmesg | grep "American Power Conversion" ) Add to rc.conf: apcupsd_enable="YES" And start it:…

  • Computer

    Update FreeBSD base system and ports

    Lars Sommer, 2009-10-06, using sources and manual rebuildingUpdated at 2010-01-25, using freebsd-update and portsnap instead Update base system: freebsd-update fetch freebsd-update install --- Update ports: portsnap fetch update portversion -l "<" portaudit -Fda portupgrade -a portaudit -Fda --- New releases…

  • 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…

  • 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…

  • 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…

  • 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…

  • 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;…

  • 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…