Two OpenBSD Floppies

Two OpenBSD Floppies


Free Online Articles Directory




Why Submit Articles?
Top Authors
Top Articles
FAQ
ABAnswers

Publish Article

0 && $.browser.msie ) {
var ie_version = parseInt($.browser.version);
if(ie_version Login


Login via


Register
Hello
My Home
Sign Out

Email

Password


Remember me?
Lost Password?

Home Page > Computers > Operating Systems > Two OpenBSD Floppies

Two OpenBSD Floppies

Edit Article |

Posted: Jul 04, 2010 |Comments: 0
|



]]>

One floppy systems are very practical, as they usually have a specific goal, which cannot be said about all Live CD’s. To configure OpenBSD installed on your hard disk as router, you must make some configurations; with a floppy system already designed to work as a router no such configuration is needed (except for the most basic one like putting the proper names of network devices into configuration files). Such a diskette is portable and easy to use. You may, too, have other wishes – an MP3 player on a diskette, or even a transparent firewall.

SONaFR

There are not many one floppy OpenBSD routers or firewalls. My projects and my website usually always appears on the top in Google with keywords like: one – floppy – router – OpenBSD.

How to use SONaFR

This floppy distro has a minimal kernel. You must have two network interface cards (NIC’s) in a computer where you use this floppy. To see all the network cards available on your system, type:

ifconfig

(from within SONaFR after it boots).

To see all the cards that the SONaFR kernel supports, type:

more etc/cards

The configuration scripts of SONaFR (for example, /etc/pf.conf) may be immediately used in any OpenBSD hard disk installation for firewall/router purposes; thus anybody can learn how to configure the OpenBSD packet filter.

Transparent Firewall

This thing may also be used as a transparent firewall (invisible firewall). If you have a computer with two NIC’s (the third NIC may be used only for a SSH login with purpose to control such a transparent firewall) and you move data from one network card to another one via a bridge (without IP addresses), you work on the OSI layer 2 model (data link); thus, if you move data this way over firewall, the advantage is that you may put such a firewall anywhere – you can split any network segment without needing to configure anything (except for the transparent firewall). Such a firewall is very quick, as no decisions need to be made with respect to IP addresses a normal firewall always requires. Bandwidth, too, may be easily reduced (with use of ALTQ – ALTernate Queueing framework for BSD UNIX).

A good (and quick) overview of transparent firewalling in OpenBSD with tips and setup requirements can be found here: http://www.dalantech.com/fusionbb/showtopic.php?tid/71026/pid/71026/post/last/m/1/

First, you must create the bridge (type the following command from within SONaFR):

ifconfig bridge0 create

Then activate the bridge:

brconfig bridge0 add rl0 add rl2 up

(replace “rl0″ and “rl2″ with real network devices present on your system.)

To activate the transparent firewall, you have to run the pfctl command (for packet filtering; the /etc/pf.conf file needs to be edited if you have special requirements; SONaFR has a little editor for such a purpose, just type: mg):

pfctl -f /etc/pf.conf

The behavior of such a firewall depends on rules defined in the /etc/pf.conf file.

To run SONaFR, your minimal requirements must be at least 9,5 MB of RAM and a Pentium (486 too) computer with two network cards and a working diskette drive. However, the SONaFR’s ability to detect all possible network cards (NIC’s) is limited. This is because the system has a minimalist kernel.

The /etc/pf.conf file in SONaFR works immediately. If you have more requirements, look into pf (Packet Filter) Internet tutorials and edit the pf.conf file appropriately. The purpose of this distribution was to bring something quick and easy-to-use. The only thing that the user must do is to substitute the “nfe0″ and “rl0″ entries in the SONaFR’s pf.conf file with network devices on his or her system (/etc/pf.conf):

IntIf=”nfe0″

ExtIf=”rl0″

KarmaBSD

I often meet with broken notebooks on which the CD-ROM or floppy drive does not work. It is a pity to discard such a notebook. If some sensitive data lies on its disk and the computer’s hard drive does not boot, you will hardly find a BSD tool with use of which you can copy and save data from such a notebook’s USB port to a USB hard drive (or stick). You may oppose that there is quite a number of BSD Live CD’s today. But if the CD-ROM drive on such a notebook is broken, such an argument does not have any weight.

KarmaBSD supports mounting of a number of disk formats:

Type of medium: USB; CD-ROM/DVD; network

Format: NTFS; ISO9660; EXT2FS; FAT MSDOS file systems; UDF; NFS file system (network)

How to prepare a disk

KarmaBSD, too, has the OpenBSD’s base system tools such as newfs, disklabel, fdisk, etc., so if the hard drive (and the CD-ROM drive, too) on your notebook is broken, you may insert a new one into it and prepare your MS-DOS partition, for example:

fdisk -e wd0

then type:

print (or help to learn more); then:

edit 0 (if 0 is the partition you want to edit); then: 04 (for DOS FAT16), or 0B or 0C (both for FAT32), or A6 (for OpenBSD), A5 (for FreeBSD), A9 (for NetBSD), 83 (for Linux), 82 (for Linux swap). After you specify the operating system, type “quit” to save changes.

Finally, the partition needs one more thing – a format. To make the FAT32 format on your hard drive, type:

newfs_msdos -F 32 /dev/rwd0i

How to mount disks

To mount any drive (NTFS drive, for example), type:

disklabel wd0

or

disklabel sd0 (USB disk)

You will then see all available partitions marked with letters like j, k, l, m.

If you type:

mount_ntfs /dev/wd0j /mnt

your NTFS partition (“j”) will be mounted to the /mnt directory (as read only).

Serial console

This mini BSD also supports serial console (capturing output of a remote computer’s screen to the screen of the local computer over a serial cable). Type:

set tty com0

at the boot prompt when KarmaBSD starts; then on your desktop computer (not the one on which KarmaBSD runs) type:

tip tty00

This way you can control any computer that has a broken keyboard or display (a very common failure with notebooks). Instead of the command “tip tty00″ you must type in another OpenBSD box, you may use Putty, a free program also available for Windows.

The most important thing – music

KarmaBSD, too, can work as a one floppy MP3 player, as the purpose of this thing was to maximally utilize broken notebooks (computers). MP3 files can be played over network, too (NFS). It is all very simple. From within KarmaBSD you just type:

1

The script (“1″ for /dev/cd0a; or “2″ for /dev/cd1a) will mount your CD with MP3 files, it will create a playlist in /tmp, and with use of mpg123 you will automatically listen to hours of never-ending music or audiobooks by pressing one single key (1).

How to put these floppy systems on a CD

Today, when floppy drives gradually disappear from computers, both these one floppy systems may be quite easily put on a CD; to make the ISO image of any bootable diskette, just type dd (to copy the diskette’s contents to a file – floppy.fs in our case); if you download the image of KarmaBSD or SONaFR, you do not have to do this, as you will have the same image you will create with the following command, but in case you first try the floppy, it may also be handy to do it this way):

dd if=/dev/fd0a of=floppy.fs

Then run:

mkisofs -b floppy.fs -c boot.cat -R -v -o /bootableCDfromFloppy.iso .

(do not worry if “boot.cat” is not available)

The dot (.) at the end of the above mkisofs command is for the current directory, so you must run this command in the (current) directory where the floppy.fs file resides. If floppy.fs is in the /flp directory, for example (or use: dd if=/dev/fd0a of=/flp/floppy.fs), cd to it (cd /flp) and run the mkisofs command as you see above.

The two above-mentioned one floppy systems can be thus used on a CD. To use multiboot, download several of my one floppy systems in one multiboot ISO image: FreeBSD.nfo.sk

I want to thank the RootBSD team for allowing me to distribute this thing.

Retrieved from “http://www.articlesbase.com/operating-systems-articles/two-openbsd-floppies-2775154.html

(ArticlesBase SC #2775154)

Submit articles to Articlesbase.com, and watch your traffic increase. Click here to make it happen.
Liked this article? Click here to publish it on your website or blog, it’s free and easy!

Juraj Sipos -
About the Author:

I live in Europe, Slovakia; my karma is here: Juraj’s karma

]]>

Questions and Answers

Ask our experts your Operating Systems related questions here…

Ask

200 Characters left

Does my wireless router have a firewall ?

Rate this Article

1
2
3
4
5

vote(s)
0 vote(s)

Feedback
RSS
Print
Email
Re-Publish

Source:  http://www.articlesbase.com/operating-systems-articles/two-openbsd-floppies-2775154.html

Article Tags:
openbsd, unix, one floppy, router, transparent firewall, mp3

Related Videos

Latest Operating Systems Articles
More from Juraj Sipos


The Floppy Practice Ball – Golf Training Aid Review

Learn about Golf equipment and accessories, this video focuses on the floppy Practice Ball golf training aid. (02:03)


How to Access a Laptop Floppy Drive with USB

This short video focus’ on how to access a floppy disk with almost any Laptop, PC or Server with a USB port. (01:51)


Mayim Bialik Interview

She first entered your living room as a teenager with her floppy flower hat and amazing dance moves, on the hit series Blossom. Mayim Bialik is here talking about her long lasting career as an actress and what it is like raising kids her own way. (03:39)


How to Create an Electric Blue Storm Look

Learn how to Create an Electric Blue Storm Look (10:06)

How Do I Fix My Slow Running Computer? Here Is the Solution For a slow PC

How do I fix my slow running computer? This is the question that is in the minds of a lot of computer users like you. A slow computer may be due to a couple of different reasons. If you want to know why your computer is like that and want to know how you can fix it here is the answer.

By:
Brad Armstrongl

Computers>
Operating Systemsl
Feb 23, 2011

Tips on Dell Windows 7 Password Recovery

Never worry about Dell Windows 7 password recovery! There are options on Dell Windows 7 password reset if you need do Dell password reset.

By:
activeladiesl

Computers>
Operating Systemsl
Feb 22, 2011

Windows Optimal Settings Virus – Uninstall this software Which Does Not Optimize Your PC

The Windows Optimal Settings virus is yet another virus similar to the many fake anti-virus software which are affecting plenty of computers right now. Everyone thinks it will not happen to them until it does and they get a virus on their PC. If you get this malware on your PC you need to remove the Windows optimal settings virus fast before it does real damage to your computer.

By:
Brad Armstrongl

Computers>
Operating Systemsl
Feb 22, 2011

Remove the windows Express help virus – Protect your computer from this malware

It’s no secret why it’s so important to keep up to date security software running on your computer at all times. These days several threats hide out on the pages we visit without our or the website owners knowledge. If you are one of those people who are unprotected, you may find out too late that your PC has become over run with viruses, malware and other malicious programs. Worst of all, many of these programs use deceptive tactics in order to get onto your computer.

By:
Brad Armstrongl

Computers>
Operating Systemsl
Feb 22, 2011

Remove XP antivirus 2011 – Get Rid Of This Fake Antivirus software now

What is one of the most dangerous aspects of any malware or other computer virus? Adaptability. If designed properly they can adapt to certain things on your computer making then even harder to spot and deal with before they cause issues with your computer. One example of this is actually a name changing rogue that goes by several different names depending on what your computers operating system is, but we will just call it XP Anti-Virus 2011.

By:
Brad Armstrongl

Computers>
Operating Systemsl
Feb 22, 2011

Drivers for Windows XP

If there is a problem with one of Windows XP Driver, here are few steps which can help in resolving this.

By:
Faiz Ahmadl

Computers>
Operating Systemsl
Feb 22, 2011

Clean up PC

Is your PC running slow?
Keeping PC free of clutter can help in performance and can also increase valuable disk space.

By:
Faiz Ahmadl

Computers>
Operating Systemsl
Feb 22, 2011

Remove Windows Wise Protection – Uninstall the Windows Wise protectionVirus now

When most of us think of antivirus or anti-spyware software for our computers we believe that with these tools our PC and the information that is stored on it will be protected from the damaging effects of malicious software out there. in most cases this is the truth.

By:
Brad Armstrongl

Computers>
Operating Systemsl
Feb 22, 2011

How To Arouse Kundalini (What You Should Know Before Trying)

The article gives details necessary to know prior to trying to awake the power of Kundalini. It does not give technical details on how to go with techniques of Kundalini arousal; it rather provides all the necessary information one needs to know before he or she decides to venture out to the place where snakes bite. Beware! If you arouse Kundalini, it may be very, very dangerous.

By:
Juraj Siposl

Spirituality>
Meditationl
Jan 20, 2011

666 Beggars Want FLE Licensing: Stop The Cult Of Government

The author in his view presents an opinion that our society is based upon millions of misconceptions and some of them are explained on terms such as “cult of freedom” (or “cult of government”) with a little respect to FSF – Free Sexual Frequency, or GPL License, which is void of the three most famous words that liberated France from oligarchy – fraternite, liberte, egalite.

By:
Juraj Siposl

Computers>
Operating Systemsl
Dec 03, 2010

The Satan’s Number (ণumber) Deciphered

The article explains, on a few examples, what speculations are and that people should use their common sense and should not see devil in every number that starts or ends with 6, as also the Star of David (hexagram), or Jewish star (a sexagram in Latin) is a six-pointed geometric star figure. The text also explains how xenophobia grows, that it is culturally conditioned and that the best medical plant to heal all our problems is love – a commandment of every religion.

By:
Juraj Siposl

Spirituality>
Religionl
Nov 30, 2010

STOP LINUX COMMUNISM

Presented are views that the community behind Linux (not all) has similar practices as Soviet communists and a clear example to support this opinion is given to the reader, as the author of this article has experience from the communist Czechoslovakia. Some advantages of the BSD license are highlighted too.

By:
Juraj Siposl

Computers>
Operating Systemsl
Nov 28, 2010
lViews: 126

Khemukhi Recommends How To Improve Wikipedia

The article will help readers understand that Wikipedia is a very obscure collection of information and policies that could be improved in many respects. A deletion of one article is explained and some recommendations how Wikipedia could be changed are suggested. Goddess Khemukhi – one of the 64 yoginis – was invited into this discussion, as I wrote an entry about Her into the English Wikipedia.

By:
Juraj Siposl

News and Society>
Freel
Nov 27, 2010

WHY WIKIPEDIA IS NOT AN APPLE?

The reader will learn something from the background of Wikipedia and why I am not willing to extensively contribute to this project anymore. We all know that Wikipedia is good – it is even very good, but it is not the tastiest apple. Some article databases are!

By:
Juraj Siposl

News and Society>
Freel
Nov 25, 2010

A QUICK OVERVIEW OF BSD VS GPL LICENSE VIEWS

The article covers some differences between the BSD and GPL license, but with some more background information about OpenBSD, as communication between the two groups – Linux and OpenBSD – made both these two ships shake the waters much. Some differences in opinions about freedom are highlighted, too.

By:
Juraj Siposl

Computers>
Softwarel
Nov 25, 2010

Quick Steps to produce a bootable USB stick with FreeBSD

This article covers the steps needed to make a bootable USB stick with FreeBSD – a quick howto that also applies to a USB drive.

By:
Juraj Siposl

Computers>
Operating Systemsl
Nov 17, 2010
lViews: 120

Add new Comment

Your Name: *

Your Email:

Comment Body: *

 

Verification code:*

* Required fields

Submit

Your Articles Here
It’s Free and easy

Sign Up Today


Author Navigation

My Home
Publish Article
View/Edit Articles
View/Edit Q&A
Edit your Account
Manage Authors
Statistics Page
Personal RSS Builder
My Home
Edit your Account
Update Profile
View/Edit Q&A
Publish Article
Author Box


Juraj Sipos has 29 articles online

Contact Author

Subscribe to RSS

Print article

Send to friend

Re-Publish article

Articles Categories
All Categories

Advertising
Arts & Entertainment
Automotive
Beauty
Business
Careers
Computers
Education
Finance
Food and Beverage
Health
Hobbies
Home and Family
Home Improvement
Internet
Law
Marketing
News and Society
Relationships
Self Improvement
Shopping
Spirituality
Sports and Fitness
Technology
Travel
Writing

Computers

Computer Forensics
Computer Games
Data Recovery
Databases
E-Learning
File Types
Hardware
Information Technology
Intra-net
Laptops
Networks
Operating Systems
Programming
Security
Software

]]>

Need Help?
Contact Us
FAQ
Submit Articles
Editorial Guidelines
Blog

Site Links
Recent Articles
Top Authors
Top Articles
Find Articles
Site Map
Mobile Version

Webmasters
RSS Builder
RSS
Link to Us

Business Info
Advertising

Use of this web site constitutes acceptance of the Terms Of Use and Privacy Policy | User published content is licensed under a Creative Commons License.
Copyright © 2005-2011 Free Articles by ArticlesBase.com, All rights reserved.

I live in Europe, Slovakia; my karma is here: Juraj’s karma

Get a $100 iTunes(R) card.