Nomoa.com

Paving the way for .NET in Tonga

OpenBSD

Categories
Main Menu
Subscribe to Our RSS Feed Subscribe to Comments Feed Signup for MSN Alerts to Nomoa.com: Articles Signup for Yahoo Alerts to Nomoa.com :: News Articles
Google Ads
Low ~ No Cost Technology 4 Productivity and OpenBSD
Browse in : All > Soap Box > Low No Cost Tech
All > Soap Box > OpenBSD
Any of these categories

Options :
View Article Map
Log In to Contribute
View Archives
Soap Box
[ Soap Box ]

Test that firewall

Posted by: Samiuela LV Taufa on July 09, 2008 11:48:53 AM

Had my first session of validating firewall rules on Monday and Tuesday, wohooo that’s an experience. My previous installations were of small systems, so I have previous experience in ‘drafting’ the firewall rules, putting it in and letting it go live. Testing and validating the firewall essentially meant sitting there in front of the firewall server and watching traffic, tweaking issues as they became known.

Firewalls are the quality of the walls between buildings. The higher grade your firewall, the higher probability your building isn’t going to burn down, should the building next door go up in flames.

The quality of the construction material of your firewall is just part of the toolkit for minimising danger to your building, you also need to ensure that there’s no open passage for the fire to enter your building while avoiding your firewall barrier. One building that went up in flames had a decent firewall, but they had large ventilation shafts between the building and the next building, leading directly to highly combustible material. Fire from the adjoining building spread into our building through the ventilation shafts and the building came down, while the firewall held firm.

The burnt building looked like the aftermath of a bombing, the inside collapsed in soot while the firewall stood alone.

Lesson 1: Physical firewalls have the same limitations as their electronic / communications firewall counter-parts. They are only as good as the material their built with, and the ventilation shafts between your side of the firewall and the next.

Unless you want to burn your firewall to test it, the general idea is to test the materials and the process of producing your firewall.

With our computer firewall firewall, we have existing best practise procedures for designing and building the firewall, and we’re now in the stage of testing the “ventilation” shafts built into our firewalls to validate whether the rules we’ve set up for what to allow in and out through the ventilation shafts behave as we expect.

I haven’t heard of any automated tools for doing the testing, so if you’ve heard of one please do tell us.

At the moment the process of testing the open ventilation shafts (in computer speak “open ports”) is to set up a simulated network on either side of our firewall and generate network traffic trying to get through the firewall in both directions. Unfortunately, the generated cannot be purely random, each “open port” or “potentially open port” has to have a specific test.

Unless you have the money, you can’t really duplicate your live network in this test environment, so you end up spending a lot of time doing the network configuration dance, continuously readjusting your various test machines to simulate other machines and providing different services as well as simulating trying to get through the firewall to the other side.

Lesson 2: You really want a set of command-line tools for doing this. Windows greater user-feedback (GUI?) is nice, but it can really use up your time when things don’t work as expected (and how often is that the truth in a test environment.)

This is when it’s good to have several machines on an independent set of networks (i.e. at minimum you’re testing the firewall with two networks) but just as importantly several monitors, keyboards, and a cool smooth swivel chair to spin around in.

Don’t bother doing this using terminal/ssh connections, that is just a recipe for frustration and avoiding configuration options you need to consider (because often enough changes you need to do will throw you out of your terminal/ssh session)

Lesson 3: Physical hardware is way cooler than the virtual world on its own.

Most of what we tested only needed testing a direct connection to the server, but our last test before quitting for the day last night was to test whether a connection from a connection would go through on a virtual connection (VPN.) Woo hoo, that wasn’t easy, but it wasn’t as hard as initially expected (since we’d done similar stuff previously.)

If you’ve got almost the cash, where you can’t afford a full simulated network, but can afford a good size beefy duo of machines for either side of the simulated network, then you would probably go with using a network of virtual machines on either side of your firewall. Now, that would be way cool, but I don’t think my laptop is beefy enough (yet)

Oh yeah, my preferred firewall ? OpenBSD with PF, of course. For user VPNs, I’m doing pretty good with installing OpenVPN.


Soap BoxMeanderings
[ Soap Box | Meanderings ]

OpenVPN, how good is security

Posted by: Samiuela LV Taufa on June 08, 2008 11:53:20 PM


Soap Box
[ Soap Box ]

Securing your connections without a password

Posted by: Samiuela LV Taufa on August 09, 2007 1:33:50 PM

I'm kind of promoting that people don't use passwords for their connections, but to use keys instead ?

Environment:

Windows XP Desktop want to connect securely -to-
Unix Server running OpenSSH (e.g. Linux, BSD)

Why?

The primary rationale for promoting the use of keys amongst friends is the susceptibility of people to create less than 12 character passwords and easily fall into the habit of reusing or choosing simple passwords, which invariably increases the possibility that a hacker can automate an attack to get into your system.

By using keys, which are significantly more difficult to whack, you not only offer a higher level of security, but you can now use seriously difficult to crack passwords.


Soap Box
[ Soap Box ]

mail.show_headers weird problem

Posted by: Samiuela LV Taufa on July 17, 2007 3:50:46 PM

Thunderbird 2.0.0.X

Problem:

Printing email messages results in getting half-a-page of mail header information, before the actual message content. This is ugly as well as wasting paper and ink.

Summary:

For the past couple of months I've been having this problem with Thunderbird 2.0.0.X (5-pre at the moment) whereby printing mail messages means that I always get a print of mail envelope headers which can be very long (nearly half-a-page for some messages.) I couldn't find anything in the print-options to turn the thing off and have been looking at different options for the past month.

Today, I finally hit upon: mail.show_headers default integer 2

[enigmail: userprefs]

Replacement of Mozilla's show all headers (because the original value is overriden)
user_pref("extensions.enigmail.show_headers",1);
JS: Both mail.show_headers and extensions.enigmail.show_headers control the viewing of the headers (normal=1 / all=2).
As Enigmail needs to see all headers, it sets mail.show_headers to 2 and stores the desired view in extensions.enigmail.show_headers.
The default is derived from the setting of mail.show_headers.

Of course, once you know where the 'problem' is, it becomes easier to find the 'solution.'

Unfortunately, the printing process doesn't have a separate setting (to allow you to differentiate what you get on screen as opposed to what you get out the printer.) The solution to my printing problem is:

Set mail.show_headers to "1" (without the quotes)

But what happens to my enigmail now?


Thunderbird
  Tagged As: 
print view
PermaLink
Soap Box
[ Soap Box ]

The new jig gig

Posted by: Samiuela LV Taufa on July 11, 2007 12:04:07 PM

Will soon be in the market for getting a new PC, largely because this thing I'm running has hit its last legs and consistently freezes when I'm working with new image files from my 10MB digital camera.

I was going to take a look at getting the new gig from a local vendor (i.e. sorry DELL and others) but reading stories such as Jeff and Scott putting together their new machine just makes you wonder whether it isn't time to splash it on a custom home building kit.

Building a PC part 1

Over the next few days, I'll be building Scott Hanselman's computer. My goal today is more modest: build a minimal system that boots.

I'd like to dispel the myth that building computers is risky, or in any way difficult or complicated. If you can put together a LEGO kit, you can put together a PC from parts. It's dead easy, like snapping together so many LEGO bricks. Well, mostly. Have you seen how complicated some of those LEGO kits are?

Granted, building computers isn't for everybody. There are plenty of other things you might want to do with your time, like, say, spending time with your children, or finding a cure for cancer. That's why people buy pre-assembled computers from Dell. But if you need fine-grained control over exactly what's inside your PC, if you desire a deeper understanding of how the hardware fits together and works, then building a PC is a fun project to take on. You can easily match or beat Dell's prices in most cases, while building a superior rig -- and you can learn something along the way, too.

Here's the complete set of parts we ordered, per the component list.

All you need is a few basic tools to build this PC. I typically use needle-nose pliers, wire cutters, and a small phillips screwdriver.


Soap BoxChaos
[ Soap Box | Chaos ]

The Gallery2 update that wasnt

Posted by: Samiuela LV Taufa on July 05, 2007 5:10:51 PM

Another adventure into the wild world of computer software, which resulted in our Gallery2 just failing altogether which seems to have been a combination of upgrading to Xaraya 1.1.3 as well as running the SVN Gallery2 2.3svn builds.

The 1st major disaster was Gallery2 2.3svn just failing to login, and there's a lot of new magic with the passwords, but there were also problems with just getting the database files working correctly.

Following no original plan, but with two thoughts in mind, I disastered that I was going to make a clean install. The two problems with the previous installation was:

  • A lot of bogus users had creeped into the Xaraya installations, and by association into the Gallery2 installation.
  • A lot of fluff in the database remained from the Gallery1 update to update to updates.

After quite a bit of hocus pocus, and a great deal of time trying to avoid a full new installation with the current svn code, we now have 2.2 Branch svn being used and since there's a way to switch to 2.3 when it is stable we'll go that route from now on.

Why was I on svn anyway? Because of those security faults that can wipe out your server. Now that I've learned how to use branches and switch between branches using the svn code repositories, I can be secured as soon as the code is updated instead of having to wait for a binary release etc. etc. etc.

Next problem was my Gallery Remote failing again, but fortunately we knew about that problem from previous reinstalls so we just had to find it on the web as shown below.

Gallery2 and Gallery Remote Issues

I was trying to get Gallery remote to work… but kept getting an error saying that it couldn’t find gallery_remote2.php.  After searching the Gallery forums for a few I foudn a few things, and it fixed the problem.

You need to find the  “GalleryRemote.properties”, mine was located at “C:Documents and SettingsShelby.GalleryRemoteGalleryRemote.properties”.  Open that file and add “forceGalleryVersion.n=2″ to the top line and then save it,

Next create a file named “gallery_remote2.php”, in that file add this following information.

< ?
header(”HTTP/1.0 404 Not Found”);
exit;
?>

Save that file and upload it to your gallery2/ directory and then you should be all set to use the gallery remote.

 Also @ the codex

 


Soap Box
[ Soap Box ]

Unix: Groupware on the free

Posted by: Samiuela LV Taufa on July 05, 2007 5:04:23 PM

There seems to be some interesting groupware products out there that are trying to remove Microsoft's Exchange server from the King of the Hill position it is on right now. Unfortunately,  most of the supposedly open source solutions are really closed source solutions with little teasers that are open source.

They are sort of like, we'll let you have the free cd player, radio, but you have to pay for the car. Like, give me the car without the cd player and I can put in my own!!!

Fortunately, there are a few truly open groupware products out there, and I've just come across a few that might be interesting to investigate further:

There are a number of different considerations for submerging your group into a Groupware solution, one being the maintainability of the system and the application of existing knowledge. Some of the solutions, especially the half-open source solutions, attempt to bring together a best of breed solution. In that way, you get a great, well tested base of components (mail server, calendar server, firewall, etc) that is integrated by the groupware team.

The other path, is to create everything yourself and hopefully have a better integration story (such as is with Microsoft Exchange.)

 


Soap Box
[ Soap Box ]

bsdtalk117 - One Time Passwords

Posted by: Samiuela LV Taufa on June 14, 2007 3:29:00 PM

Will Backman has a great podcast on how you can better secure your communications between yourself and your servers from remote unsecured spaces through the use of One Time Passwords (passphrases) on FreeBSD, NetBSD, and OpenBSD.

The Joy of S/Key

One Time Passwords (OTP) are certainly nothing new. In fact, they have been in use for over ten years. The idea is essentially very simple: every time you login to a system, you use a different password. If someone were to eavesdrop on the connection, the password they captured would be useless to them.

In 1994, Neil Haller of Bellcore announced the “S/KEY One Time Password System” at the Symposium on Network and Distributed System Security. It described a practical way to implement OTP that was both secure and simple. Over the years it has matured into strong, practical system that is now described by RFC2289.

The initial summary of Will's podcast is

bsdtalk117 - One Time Passwords

  • Important when you don't trust the computer you are using, such as a library computer or internet kiosk.
  • Available by default in Free/Net/Open BSD.
  • FreeBSD uses OPIE, Net/Open use S/Key.
  • One time passwords are based on your pass phrase, a non-repeating sequence number, and a seed.
  • Initial setup should be done directly on the server.
  • "skeyinit" for Net/Open, "opiepasswd -c" for FreeBSD.
  • Now you can safely (?) login to your machine from insecure locations.

    Again from The Joy of S/Key

    It is true that SSH arguably does a better job of protecting passwords from eavesdroppers. In fact SSH provides for more than that, and it also protects all content from eavesdroppers. However there is one very common form of attack to which SSH is not immune: keylogging. Keyloggers record the keys you hit, and they don't care whether you're using an SSH client or telnet. They have to be installed on the machine you are using, either in software or hardware. However, now that we live in the age of Microsoft and Cybercafes, using a trojanised machine is all too easy to do. What most people don't realise is that SSH, or at least OpenSSH, is already S/KEY aware. So why not use it ?

    So, please download and listen to the podcast


    Soap Box
    [ Soap Box ]

    Educating your old hardware, or buying your kids something other than a PS 2

    Posted by: Samiuela LV Taufa on May 14, 2007 3:51:45 PM
    Part of our investment in our kids are all those fancy advertised toys, as well as a bunch of 'educational' titles (computer programs) from Disney and other better known names in the educational software tools.
     
    We've started using older hardware (cheaper to buy) for the kids, but still have been buying CDs (albeit on the cheap compared to 'current' games)
    Computers are relatively inexpensive these days however the software that runs on the computer is still at a fairly high cost if you are looking at purchasing several titles. It seems ridiculous to go out and buy 1000's of dollars worth of software that your children can play educational games and do their school work. If you own an older computer (Pentium 2 or newer) and have a few hours free one weekend you can build your children a great computer so that they can play educational games and do their school work. Now you can finally have your computer back.

    How you ask?

    You can make your kids a usable computer by installing a free open source operating system  and some great 100% free open source applications. So first we need a operating system,  My choice of operating system for this particular task would be Ubuntu Linux primarily because it is as easy to use as Microsoft windows,  and is a one disc ISO image that you can download at  http://www.ubuntu.com/products/GetUbuntu/download?action=show&redirect=download. All the instructions you need to burn and boot the disk  are located either on or are linked from that page and are very easy to read and follow.

    If you have  an extra windows or mac license and are inclined to use Windows or mac os some of these applications will run on windows and mac. 
    There are many great applications for  children. weather they are younger  or  older   i will start with a list of applications aimed at the younger kids and i will list the application for older kids in part 2 of this article which will be posted soon

    Visit bTonga


    Soap BoxIn Tonga
    [ Soap Box | In Tonga ]

    CUPS-PDF - Printing to a PDF file on the network

    Posted by: Samiuela LV Taufa on May 07, 2007 3:10:50 PM

    I remember circa 2002/2003 Pulu and I experimented and put together a system whereby you can have all print jobs in a networked environment go to a PDF file (for archival reasons) before going out on the printers.

    CUPS-PDF

    This software is designed to produce PDF files in a heterogeneous network by providing a PDF printer on the central fileserver. It is available under the GPL and is packaged for many different distributions or can be built directly out of the source files.

    Apparently someone else thought of a better automated solution and created a program for it @ CUPS-PDF.

    At the time, we thought that it was cool and infinitely most practical for archives that all networked print jobs should be archived as proper/certifiable copies of print documents sent out from an organisation. Now, with larger / cheaper disk space it should be seriously considered?

     

    Visit bTonga


    Soap Box
    [ Soap Box ]

    Monitoring your server

    Posted by: Samiuela LV Taufa on April 30, 2007 12:39:16 PM

    [http://www.runyourownserver.org Episode 15 - Monitoring]

    After starting our documentation on installing a virtual user mail installation with Postfix / Dovecot / and PostfixAdmin I've begun to realise a number of interesting logs and log monitoring options.

    There are some basic log files that I've been keen enough on to know of the top of my head when diagnosing problems, but what about general monitoring of servers ?

    Apparently there are tools out there that can aggregate the data from different log files to provide users/admins with meaning/useful information.

    I currently don't operate a set of servers/workstations that require aggregate monitoring but it is something that has always peaked my attention as something I really need to get ontop of.

    The RYOS team previously ran a podcast on monitoring that should be interesting listening for those interested in maintaining their servers.

    Clues: Network Monitoring --> Nagios
    mrtg
    cacti
    Monitor Everything

    The core rationale is that your server needs to be operational 24/7 and you cannot observe current behaviour 24/7 so the use of the logs is the first step discovering potential problems with your beautifully running system.

    Trending.

    This is a useful idea, such as watching Demings Chart creap away from the standard quality environment.

    A higher level monitoring of the server that can point out potential problems.

    Follow the rest of the episode for your edification.


    Soap Box
    [ Soap Box ]

    Databases

    Posted by: Samiuela LV Taufa on April 30, 2007 12:35:59 PM

    [ref: http://www.runyourownserver.org Episode 12 - Databases]

    Hadn't really had to deal with something at this level, but apparently (and with some intuitive logic) when you have a database server, then it behooves you to have sufficient RAM to ensure the database can be fully loaded into RAM.

    Now, we already knew that if you are running a DNS server that DNS essentially works by keeping the whole database in RAM. Thus, for performance you should have sufficient RAM for your DNS server to keep the whole DNS Database in RAM.

    So, if you have sufficient RAM and processing power to manage the other things you are running on your system (e.g. your webserver) then you should have enough additional RAM to keep the database server running with the database loaded.

    Items to remember:

    * [Security] Only allow access to the database from the IP address's that should have access. (For example, if you are running a Website/SQL database, then you should ensure only localhost access is allowed.)
    * [Security] Have as much accounting granularity protection as possible.
    * [Security] Information in the database should be secured in some form. For example, database fields should be encrypted.
    * [Security] Ability to change users and passwords is a System Administrator necessity. Full DB Administration is another role altogether
    * [Security] SQL Injection awareness is important.
    * Plenty of GUI applications exist for Open Source Databases.


    Soap Box
    [ Soap Box ]

    Setting up your own Mail Server

    Posted by: Samiuela LV Taufa on February 12, 2007 4:59:12 PM

    Been spending sometime trying to document putting up a mail server, and it's mostly done.

    The big difference between this attempt, and previous attempts, is largely that this time we wanted to use 'virtual accounts' and for some reason, Tonga Siliva wanted to use dovecot as the IMAP/POP3/SASL server.

    So, if you're busy wanting to run your own mail server, you have all your existing choices, plus you also have the above "jumps" if you should choose to play.

     

    Visit bTonga


    OpenBSD
      Tagged As: 
      Read More  
    print view
    PermaLink
    Soap Box
    [ Soap Box ]

    For aspiring System Administrators

    Posted by: Samiuela LV Taufa on January 22, 2007 2:43:57 PM

    There is always the man pages, the info pages, or just darn money and buy a book pages.

    BSD Talk sends us across to http://www.runyourownserver.org which should be interesting for any aspiring Unix hack out there, who isn't already a programming dude(ss)

    Of course it doesn't hurt that one of my favourite OSs (other than Windows) is well represented (> 0) ;-o


    Podcast
      Tagged As: 
    print view
    PermaLink
    Soap Box
    [ Soap Box ]

    vi Survival Guide

    Posted by: Samiuela LV Taufa on May 27, 2006 10:30:09 AM

    Ok, we had our own little shortcuts panel over at http://www.nomoa.com/bsd but someone's doing something more interesting.

    free-zombie has posted a great walkthrough introduction to using vi @ http://www.nuxified.org.

    The introduction showed a number of things I haven't done in vi so there's still plenty of room to learn.

    Visit bTonga


    Note :
    Soap Box
    [ Soap Box ]

    FlightAware - track your loved ones in flight

    Posted by: Samiuela LV Taufa on May 13, 2006 10:08:27 PM

    Another lead from BSDTalk, http://www.flightaware.com

    Welcome to FlightAware

    FlightAware is a free flight tracker that will change what you think about live flight tracking and aviation data.

    Begin browsing by clicking one of the links to the left or below.

    If you know what flight or airport you're interested in, you can enter that information in the lower left

    I still can't figure out whether it supports us out here in the South Pacific, but it sure looks great, and FREE!!!

    Visit bTonga