Category Archives: FreeBSD

How to setup a basic SAMBA share

FreeBSD Samba how-to based on the one at www.bsdvault.net. Some errors have been corrected (from the original at bsdvault.net), but please let us know if you find any in this version.

1) Install the Samba port

cd /usr/ports/net/samba && make install

2) Read the files in /usr/local/share/doc/samba

They will help to drag you out of the pit of ignorance.

3) Copy /usr/local/etc/smb.conf.default to /usr/local/etc/smb.conf

4) Before you edit smb.conf you will need a shared files directory. I tend to use /usr/smbshares/files so that will be used in this example:

mkdir -p /usr/smbshares/files

PPTP VPN server using MPD-Netgraph

Currently, I am testing a few different vpn solutions to secure my wireless network at home. This is just the barebones steps I went through to get MPD setup and running for Windows XP clients.

mpd-netgraph setup:

I followed the suggestions in the following urls:

http://lists.freebsd.org/pipermail/freebsd-security/2003-July/000466.html

http://www.blackh0le.net/articles/vpn-dun-howto.html

Background Info:

10.x.x.0/24 was my internal network
192.168.0.0/24 was my wireless cloud

1. System specs:

Celeron 333
128MB RAM
4GB Harddisk
2 NICs

The rest really doesn’t matter.

2. Install FreeBSD:

minimal + kern developer install

kernel compile:

ipfilter
ipfilter_log
ipfilter_default_block

qmail Toaster Recovery

Ok, here is another one that was specifically geared to my setup, but I thought it may help someone else out in a pinch. I lost the motherboard for my web/email server due to that “capacitor problem”. What follows is how I got everything back up and functional. The server consisted of Apache and qmail, plus various other odds and ends. Another item to note is that this is a FreeBSD 5.1-RELEASE system, linux admins change settings accordingly.

First, I get the basics on there so I have network connectivity and the tools I use to make everything go smoothly, not to mention there are some security issues involved.

SambaLESS Windows Printing

Printing from FreeBSD workstations to a Windows based print server without using Samba. I got fed up dinking with Samba in fairly short order, so this is the route I took. Enter CUPS (Common Unix Printing System). Works really well if you have no need for Netbios shares on your LAN. I also hear it works with Samba as well, but I didn’t spend any time on that.

Read on for information on how I got it working.

Read on for information on how I got it working.

Windows Server:

Inspiron 2650 + FreeBSD

Just slapped together a little how-to on getting FreeBSD installed on a Dell Laptop. As always, comments are welcome. This is the first interation of this how-to, so if you see anything wrong, have a suggestion or whatever, please post a comment!

1. Boot FreeBSD CD
a. At Booting [Kernel] in 10 seconds; hit space
b. At OK type boot -c
c. At config> eisa 0
d. At config> quit

2. Install FreeBSD minimal set
a. Install ports collection
b. Install kernel sources

*NOTE*
If you need assistance with the install of FreeBSD,
visit http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install.html