Editor in Chief: Olga Kartseva Dear Readers! [email protected] Contributing: BSD is already becoming international magazine. People Jan Stedehouder, Rob Somerville, Marko Milenovic, Petr all over the world have an access to our magazine and Topiarz, Paul McMath, Eric Vintimilla, Matthias Pfeifer, Theodore Tereshchenko, Mikel King, Machtelt Garrels, Jesse Smith download it. We are happy that our work is so appreciated and BSD magazine popularity is growing!. Special thanks to: Marko Milenovic, Worth Bishop and Mike Bybee Art Director: First of all I wanted to thank you for you letters of Agnieszka Marchocka support, they mean really a lot to us and help constantly DTP: to improve! All our authors worked hard to make their Ireneusz Pogroszewski articles interesting and useful. I really hope you will like this issue as much as the previous. Senior Consultant/Publisher: Paweł Marciniak [email protected] This month topic is “BSD as a desktop”. Why this National Sales Manager: Ewa Łozowicka topic? [email protected] We thought that some of you still might have doubts Marketing Director: Ewa Łozowicka on choosing OS, so this issue surely will help you to [email protected] learn more about BSD as a desktop and help to make a decision. Executive Ad Consultant: Karolina Lesińska [email protected] But those of you who already use BSD should not Advertising Sales: close the magazine after reading my previous statement, Olga Kartseva because you could loose a lot. =) [email protected] Publisher : Software Press Sp. z o.o. SK Please feel free to contact us, we are open to critics, ul. Bokserska 1, 02-682 Warszawa not only to new ideas and suggestions. Poland worldwide publishing tel: 1 917 338 36 31 Your feedback is very important to us. www.bsdmag.org Olga Kartseva Software Press Sp z o.o. SK is looking for partners from all over Editor in Chief the world. If you are interested in cooperation with us, please contact us via e-mail: [email protected] All trade marks presented in the magazine were used only for informative purposes. All rights to trade marks presented in the magazine are reserved by the companies which own them. The editors use automatic DTP system Mathematical formulas created by Design Science MathType™. BSD 3/2010 4 Contents get started 44 Spam Control with a stock OpenBSD 06Buil Your Own FreeBSD install Update Server Girish Venkatachalam Jason Helfman Ever since e-mails became ubiquitous Experienced users or administrators responsible for several unwanted e-mails or spam also known machines or environments, know the difficult demands and as UCE (Unsolicited Commercial E-mail) challenges of maintaining such an infrastructure. The article or UBE (Unsolicited Bulk E-mail) also outlines the steps involved in creating an internal FreeBSD became popular. Any chance to control Update Server. this? OpenBSD has an excellent method to fight spam and this 14 Using OpenBSD and PF as a Virtual article is about it. Firewall for Windows Pedro Lereno 48 Choosing and The Windows firewall, by default, has many open ports Installing a Window to the local network, like the file and print sharing service Manager with FreeBSD ports, which are the source of many security holes. How Rob Somerville to protect a Windows host with a basic configuration of Step by Step installing with comments and advice. One of an OpenBSD virtual machine with PF as a NAT router and the many attractive features of BSD is that the end-user is not firewall? tied to a particular desktop or windowing environment. interview 54BSD Live Desktops Jesse Smith Last week Zafer Aydogan, founder of Jibbed, and Stefan Rinkes, founder of GNOBSD, agreed to talk with Jesse Smith about their projects (from which BSD community will surely benefit), themselves and BSD. let’s talk 56 BSD goes to the Office: Can BSD compete in a real life consulting workplace? Mike Bybee, Consultant, Fujitsu America A reminder on our last issue topic- an article about an experiment to determine a viability of BSD desktop in a how-to’s real world high pressure consulting engagement. There are many articles that expound on the succes of Linux as 20Keeping FreeBSD Applications desktop, and quite a few accounts of using a Linux desktop Up-To-Date in this case or that case. But this one is written not from a Richard Bejtlich, Principle Technologist and Director of perspective of a journalist or home user, but from a system Incident Response, General Electric administration and consulting perspective. An important system administration task, and a principle of running a defensible network, is keeping operating systems and applications up-to-date. In this article you will find multiple ways how to complete this task www.bsdmag.org 5 get started Build Your Own FreeBSD Update Server Build Your Own FreeBSD Update Server Jason Helfman Experienced users or administrators responsible for several machines, or environments, know the difficult demands and challenges of maintaining such an infrastructure. unning a FreeBSD Update Server makes it easier to Configuration: Installation & Setup deploy security and software patches to selected test Download freebsd-update-server software at http:// machines before rolling them out to production. It also www.freebsd.org/cgi/cvsweb.cgi/projects/freebsd-update- means a number of systems can be updated from server/. A tarball may be downloaded, or use and the R csup(1) local network rather than a much slower Internet connection. projects-all collection. See the man page here for csup: http:// This article outlines the steps involved in creating an internal www.freebsd.org/cgi/man.cgi?query=csup&sektion=1. FreeBSD Update Server. Update scripts/build.conf appropriately. It is sourced during build operations. Prerequisites Here is the default build.conf.default, which should be To build an Internal FreeBSD Update Server you will need the modified (Listing 1). following. Parameters for consideration would be: • A running FreeBSD system. • FTP – This is where the subroutine fetchiso() declared • A user account with at least 4Gigs of available space. This in scripts/build.subr will contact the configured source for will allow for the creation of at least updates for 7.1 and 7.2. downloading the FreeBSD ISO. This can be configured to Beyond this space requirements will need to be considered. be an http address, as well. For our purposes, ISO's are • An ssh(1) account on a remote machine to upload on the same server as our internal http server that will be distributed updates. See the man page here: http:// serving updates. The software has been configured to look www.freebsd.org/cgi/man.cgi?query=ssh&sektion=1. in that location. For this setup, we have to alter the routine to • An Apache, http://www.freebsd.org/doc/en_US.ISO8859-1/ fetch the ISO. By copying the source build.subr to scripts/ books/handbook/network-apache.html, web server, with over RELEASE/ARCHITECTURE/build.subr this file will be sourced half of the the space required for the build. For instance, instead of the released source for build.subr. my builds total 4G, and the webserver space needed to • BUILDHOSTNAME – Host where software will build. distribute updates is 2.6G. Coincidentally, this information will be displayed on updated • Basic knowledge of shell scripting with Bourne shell, sh(1). systems when issuing: % uname -v See the man page here: http://www.freebsd.org/cgi/man.cgi • SSHKEY – Key for uploading to update server where clients ?query=sh&sektion=1. will fetch patches or upgrades. A key pair is created by This article describes building an internal FreeBSD Update Server. The freebsd-update-server software, located at http://www.freebsd.org/cgi/ cvsweb.cgi/projects/freebsd-update-server/, is written by Colin Percival [email protected]; Security Officer of FreeBSD. If you thought it was fun to update your system against an Official Update Server, just wait until you have an updated system from your very own FreeBSD Update Server. 6 BSD 3/2010 www.bsdmag.org 7 get started Build Your Own FreeBSD Update Server executing . Altering ssh-keygen -t dsa Listing 1. Installation and Setup 1st step this parameter is not necessary, as standard password authentication through ssh will suffice if configured # $FreeBSD: projects/freebsd-update-server/scripts/build.conf,v 1.1 2006/08/ properly. ssh-keygen(1) has more 31 07:48:40 cperciva Exp $ detailed information in creating # Main configuration file for FreeBSD Update builds. The a key pair. The man page will have # release-specific configuration data is lower down in more information, and it can be # the scripts tree. found here: http://www.freebsd.org/ # Location from which to fetch releases cgi/man.cgi?query=ssh-keygen export FTP=ftp://ftp2.freebsd.org/pub/FreeBSD/releases &sektion=1. # Host platform • MASTERACCT – Account that files are export HOSTPLATFORM='uname -m' uploaded to on remote system. # Host name to use inside jails • MASTERDIR – Directory where files export BUILDHOSTNAME=${HOSTPLATFORM}-builder.daemonology.net are uploaded to on remote system. # Location of SSH key export SSHKEY=/root/.ssh/id_dsa Now that build directives are set, the # SSH account into which files are uploaded installation files are configured for a build. [email protected] For this example, we will use RELEASE-7.2 # Directory into which files are uploaded under amd64 architecture. Configuration MASTERDIR=update-master.freebsd.org files for i386 architecture are available with downloaded source. Listing 2. Installation and Setup 2nd step Create the build environment directory under scripts/RELEASE-7.2/amd64. # SHA256 hash of RELEASE disc1.iso image. export RELH=1ea1f6f652d7c5f5eab7ef9f8edbed50cb664b08ed761850f95f48e86cc71ef5 % mkdir -p /usr/local/freebsd-update- # Components of the world, source, and kernels server/scripts/RELEASE-7.2/amd64 export WORLDPARTS="base catpages dict doc games info manpages proflibs lib32" export SOURCEPARTS="base bin contrib crypto etc games gnu include krb5 \ This is the build.conf file that should be lib libexec release rescue sbin secure share sys tools \ placed in the directory that was created in ubin usbin cddl" the previous step (see Listing 2).
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages60 Page
-
File Size-