May
Raw FTP Commands
Posted by packetmad as Daemons, FreeBSD, Linux, OS, Unix, ftp
I retrieved it from here: http://www.nsftools.com/tips/RawFTP.htm
List of raw FTP commands
(Warning: this is a technical document, not necessary for most FTP use.)
Note that commands marked with a * are not implemented in a number of FTP servers.
Common commands
Jan
Maintenance: gps.kulish.com
Posted by packetmad as Daemons, FreeBSD, OS, ntp
The gps.kulish.com FQDN will be re-directed to our backup stratum 2 server during a short maintenance window from 1700 – 2000 CDT US.
ntp pool clients should see no interruption in services. However, this means that kulish.com will be providing a stratum 2 time source while the gps is offline. **
Stratum 1 services are expected to resume at, or before, 2000 CST.
During maintenance we will be making final adjustments to the GPS system before going “live”.
** A second stratum 1 server will be coming online Q2 2008 to avoid the stratum bump in the future.
Jan
Bind9: Master Only
Posted by packetmad as Daemons, FreeBSD, Linux, OS, Unix, dns
Configuration for a master only DNS server.
1. WILL NOT answer queries
2. WILL NOT forward queries
3. WILL NOT perform recursion
4. WILL allow transfers from specified slaves
Zone and configuration files are backed up disk to disk via rsync.
Single point editing of our name space.
Single point of failure. If server is lost, updates to DNS cannot be made until another master is brought online.
options {
directory “/etc”;
pid-file “/var/run/named.pid”;
version “Windows 3.11″;
allow-query {“none”; };
allow-recursion {“none”; };
notify yes;
also-notify {
IPn.IPn.IPn.IPn;
};
allow-transfer {
IPn.IPn.IPn.IPn;
};
};
Mar
Spam Bashing
Posted by packetmad as Daemons, FreeBSD, Linux, OS, Unix, smtp
We finally have our spam filtering back in place at kulish.com. We’ve set it to a semi-aggressive filter where pretty much every incoming email is marked with a spam score.
We’re using the postfix+amavis+clamd+spamassassin setup.
While we’ve been doing without it for a few months (using client side stuff until I found time), I still don’t remember it working this well on the last server install.
Here’s a wopper of an email, just after the installation and testing were completed. The receiving parties and server names have been sanitized to protect the marginally innocent (**PROTECTED**).
Dec
Simple MySQL Backup Script
Posted by packetmad as Databases, FreeBSD, Linux, MySQL, OS, Perl, Scripting, Unix
Below is a simple database backup script to use with MySQL.
#!/usr/bin/perl -w
use strict;
# Backup – Script used to backup MySQL databases to an NFS share.
# VERSION: 1.2
# DATE: 12152005
# AUTHOR: packetmad
# This is a Freebsd 4.x-centric script. It may run on other
# versions of Freebsd, or any other BSD for that matter, but I
# wrote it on a Freebsd 4.7 system. It’s not even guaranteed
# to run on that.
Dec
STSE Supercluster
Posted by packetmad as FreeBSD, OS
I’ve spent the last few months picking at a FreeBSD clustering project. Well, with some help from BSDHound and the Central Iowa Linux Users Group (CIALUG), it’s finally complete.
I clustered 4 Pentium 133s running FreeBSD 5.1-Release using LAM-MPI for the messaging interface and Ganglia for the monitoring. You can view the statistics here, but you must be registered and signed-in to do so (the pages are fairly graphic intensive).
I believe there will be a clustering How-To posted to BSDHound.com in the future, and if it is, I will be sure to post and update here.
Dec
Mounting Jumpdrives in FreeBSD
Posted by packetmad as FreeBSD, OS
After my fiasco trying to get FBSD to auto mount when the jumpdrive was inserted, I ended up just creating a little perl script to take care of it for now (being finals week and all). It’s not much and does absolutely no error checking, but if anyone has any suggestions, they are more than welcome.
Keep in mind, you must have the proper settings active in your kernel for this to work.
Here it is:
#!/usr/bin/perl -w
use strict;
Dec
Fixing fstab Problems in FreeBSD
Posted by packetmad as FreeBSD, OS
I made a bad decision that resulted in a non-bootable (to single user only) FreeBSD system. Now I realize that no one really cares what kind of jam I’m in, just like I don’t normally care what kind they are in. But when you have to sit through some ‘open sourcer’ stroke his own ego with the “I know something or where to find it, and you dont. I know its a simple question to answer quickly, but Im just gonna post tidbits of a manpage out of context” attitude, it really irritates me.
Oct
How to setup a basic SAMBA share
Posted by packetmad as Daemons, FreeBSD, OS
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
Sep
PPTP VPN server using MPD-Netgraph
Posted by packetmad as FreeBSD, OS
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
Blog Statistics
NTP^2 Epoch
Network
-
Recent
