This is a quick how-to on getting the latest version (v2.034, November 2016) of Netdisco up and running on FreeBSD 11. It’s assumed you have your base system installed, have set your shell and installed sudo or given your account wheel access. To start, we need the following prerequisites installed:

  1. p5-DBD-Pg (this will install Perl)
  2. postgresqlXX-server
  3. net-snmp
  4. curl

Using pkg, it’s as simple as:

 

 

 

 

 

 

More »

On a recent portupgrade I received some dreaded ***stop error***’s regarding php5-filter and php5-zip ports. The output was as follows:

“Skipping ‘lang/php5-extensions’ (php5-extensions-1.3) because a requisite package ‘php5-zip-5.2.12’ (archivers/php5-zip)
failed (specify -k to force)
** Listing the failed packages (-:ignored / *:skipped / !:failed)
– devel/automake110 (port directory error)
– devel/automake19 (port directory error)
! devel/autoconf (autoconf-2.62) (install error)
* devel/autoconf (autoconf-2.67)
* lang/php5 (php5-pcre-5.2.12)
* lang/php5 (php5-spl-5.2.12)
! security/php5-filter (php5-filter-5.2.12) (missing header)
! archivers/php5-zip (php5-zip-5.2.12) (missing header)
* lang/php5-extensions (php5-extensions-1.3)”

At first, I needed to resolve the autoconf issue and a pkg_info *auto yeilded some interesting information-four different versions of each with separate wrappers. Apparently devel/autotools has had some ongoing cleanup taking place, which AHEM (yes, I make bonehead sysadmin mistakes too ;-), I failed to catch while reading the /usr/ports/UPDATING file prior to running portugrade… More »

In my previous post I discussed the issue I resolved with Sendmail on FreeBSD 7. Since I am always testing different configurations with my setup on a test box, I discovered the deeper problem which involved a corrupted /usr/src. To resolve, I did the following…

More »

After years of running a legacy version of FreeBSD, I felt it was time for me to bring my web/mail server up to the latest version (7). At near completion, I had just my sendmail config to complete and was I ever surprised to find the lack of documentation for troubleshooting sendmail and FreeBSD 7!

More »

I have been meaning to write this little snippet about portsnap for some time. I think it was around the first of the year when my CVSup cron quit working and after digging into it a bit, noticed some major problems in the CVSup snapshot. In search of a different method to update and upgrade the FreeBSD ports tree, I found the portsnap utility. More »

I recently rebuilt our main proxy server at work and decided to get some sort of authentication mechanism installed. With Squid version 2.5 and above they have built-in external “helper” programs, one of which is msnt_auth which is far easier to get to work against an active directory domain than ntlm_auth. CAVEAT, this does not work with transparent proxying, however, this works very well if you autoconfig browsers or use group policy to point the machines on your network to the squid box. The following steps are what I did to get it to work. More »

Ever run across this one? You install a port that prompts you for configuration options and it fails. You run a “make distclean” or “make deinstall” hoping to get rid of the options you chose or hoping to be prompted again during the install, but you don’t get prompted again.

Simply type “make rmconfig”  and reinstall the port to get the option window during your next install

Problems configuring Apache2 virtual hosts?  Try setting the wildcard character on NameVirtualHost without the port number. Do the same for all virtual hosts in the file. Make sure to use proper document root or server alias directives.
example:
virtual hosts

At work I run a mixture of Server03 with AD and FreeBSD. For network monitoring/alerting I use a combination of nagios and cacti but on two different servers. Since I work for a school district and money was (and still is) an issue when I arrived there in 2004, I set up the nagios system on a spare x86 PC. I did the same for cacti but then moved it to a box that was donated to us recently. In an effort to consolidate multiple systems into the one donated box (a Dell PE2450), I rebuilt nagios and upgraded it to version 2. More »

I had an interesting encounter this past weekend with rebuilding sendmail on freebsd. See if you know this one…

You setup Sendmail as an MTA and configured it with a new .cf file. You can send email just fine. As root you get email for the local system just fine. You test your new .cf file by telnet via smtp port on the local machine, primarily to see the configuration settings confSMTP_LOGIN_MSG and greet_pause in action. Everything checks out. When you try to send email from a pop or imap client, it says that the communication to your mail server was interrupted. Telnet to the smtp port (from remote host) gives an automatic disconnect. You can recieve email on the client but not send email. You run an nmap on the localhost and it reveals the smtp port and your configured pop and imap ports are open but an nmap from a remote host reveals a closed smtp port. A ps ax | grep sendmail reveals a running sendmail process.
What’s the problem? More »