Tip of The Day - Custom Kernel and FreeBSD-Update

Posted by Ben Allen Wed, 20 Feb 2008 03:40:00 GMT

When upgrading from FreeBSD 6.2 to FreeBSD 6.3 with freebsd-update (detailed here) and using a custom built kernel, there is one extra step to be fully upgraded. After you follow the three steps from the instructions and reboot for the second time, you will be unpleasantly surprised to see that you are still using a 6.2 kernel. In fact all you need to do now and go rebuild your customized kernel, install it and reboot. Now you will have a customized 6.3 kernel installed.

Tip: Changing Interface Names in FreeBSD

Posted by Ron Valente Fri, 01 Feb 2008 15:31:00 GMT

If you are building a firewall/NAT/Snort box and you want/need to rename the interfaces from the device names themselves it can easily be done in FreeBSD.

Edit your /etc/rc.conf file

ifconfig_rl0_name="internal"
ifconfig_rl1_name="external"
ifconfig_rl2_name="DMZ"

ifconfig_rl0="inet 10.0.0.1 netmask 255.255.255.0"
ifconfig_rl1="dhcp"
ifconfig_rl2="192.168.0.1"

The above is just a simple example of a three interface firewall that has a DMZ network for servers and a internal network for all NAT'd machines.

FreeBSD 6.3 Released

Posted by Ben Allen Sat, 19 Jan 2008 00:30:00 GMT

FreeBSD 6.3 was released early this morning. The official announcement can be found here: http://www.FreeBSD.org/releases/6.3R/announce.html

Highlights from the announcement

  • KDE updated to 3.5.8, GNOME updated to 2.20.1, Xorg updated to 7.3

  • BIND updated to 9.3.4

  • sendmail updated to 8.14.2

  • lagg(4) driver ported from OpenBSD/NetBSD

  • unionfs file system re-implemented

  • freebsd-update(8) now supports an upgrade command

The last feature I'd like to comment on. Essentially what freebsd-update can now do is upgrade releases. In other words you can now upgrade a FreeBSD 6.3 system to FreeBSD 6.4. To upgrade 6.2 to 6.3 via this method look further down on the announcement linked above. After I have gone through this process, I'll make another post with my experiences, and full instructions.

[Update]
Instructions on doing an update from FreeBSD 6.x to FreeBSD 7:
FreeBSD major version upgrades
Instructions on doing a minor update From FreeBSD 6.x to FreeBSD 6.3:
FreeBSD minor version upgrades

Tip of the Day - FreeBSD portupgrade

Posted by Ben Allen Sat, 05 Jan 2008 07:00:00 GMT

One complaint I’ve always had about FreeBSD port’s tree is upgrading outdated installed ports. Typically you need to go by hand and uninstall all the dependancies of a port, upgrade the port, and then reinstall all the dependancies. However, there are a few solutions for port upgrade management. The one I like the best is portupgrade that is available in the ports tree under /usr/ports/sysutils/portupgrade.

I have three typical usages:

Upgrade all ports, recursively reinstall any dependancies, and install any build dependancies

portupgrade -arR

Upgrade all ports, but ignore dependancies

portupgrade -a

Upgrade a single port, recursively reinstall any dependancies, install any build dependancies

portupgrade -rR <portname>

Tip of the Day - freebsd-update

Posted by Ben Allen Mon, 12 Nov 2007 08:59:00 GMT

In FreeBSD 6.2 and later, the freebsd-update command allows you to update binaries of your base operating system.

It has four commands:

fetch - Inspects current system and downloads available needed updates.

install - After a fetch is run, this installs the downloaded updates.

rollback - Rollback the most recent update.

cron - Sleeps a random amount of time from 1 second to an hour, inspects the current system and downloads the available needed updates. If you have set an email address in the configuration file /etc/freebsd-update.conf it will email you with a list of needed updates (by default this email it sent to root locally). As its name depicts this is ideal for running freebsd-update in cron.

Resources:
man 8 freebsd-update
man 5 freebsd-update.conf

Older posts: 1 2 3