Pfsense 1.2.3 vs Vyatta CE 5 benchmark

Background

While I have been a pfSense user for about 2 years, I decided to see how the FreeBSD base OS would stack up against Vyatta, a Linux base free router software package. Without going into too much detail, main differences currently is a more CLI centric interface (close to JunOS “set” syntax) for Vyatta in comparison to a comprehensive WebGUI for pfSense. Beyond that there are many features betwene the two which I will not get into here, as my primary question here is speed.

Purpose

The goal here is to just test IP forwarding speed between the two platforms in completely stock configuration. I’m sure there are tweaks I could have made either way, but in order to be consistent, no changes were made from the base install on either platform. The hardware used is a low power Jetway mini PC. I am fully aware this is not server class hardware by any means, but until I have unlimited funds, this will have to do. Hardware specifications listed below.

Continue Reading »

Benchmarks
FreeBSD
Linux
Vyatta
pfSense

Comments (5)

Permalink

Trouble with VMware NICs and File Sharing Permissions

For anyone who is trying to access file shares inside local VM’s running windows Vista or Windows 7, the following article does a great job explaining what needs to be done in order to change the “Location” of the VMware NICs. Apparently by default Windows cannot figure out what or where they are, so it shoves them off in the Public location and disables most of their abilities. I tried the registry key fix and it worked flawlessly (albeit after a reboot).

This issue also arises if your virtual environment has a different domain than your physical host workstation, which was the case for me. This will prompt you to authenticate, but no matter what credentials you enter, the share login will be unsuccessful. Anyway, give this a shot.

http://aspoc.net/archives/2008/10/30/unidentified-network-issue-with-vmwares-virtual-nics-in-vista/

Quick Fixes
Windows

Comments (0)

Permalink

Fixing net_update_dns_internal or “DNS update failed!” For SMB and AD

Bold indicates a button clicked or key pressed.
“quotes” indicates a value which has been entered.

Grey block quote is a command typed directly into the console.

If you happen to come across the following error:

Joined ‘LOCALHOST’ to realm ‘test.lcl’
[2010/03/04 14:39:39,     0] utils/net_ads.c:1080(net_update_dns_internal)   net_update_dns_internal: Failed to connect to our DC!
DNS update failed!

This simply means that your FQDN entry for the Linux system you are trying to join is incorrect as far as AD is concerned. In this case the box LOCALHOST.LOCAL.LCL was trying to join the domain TEST.LCL and there was an obvious mismatch. However not quite as obvious of an error message. Update this information in your /etc/hosts file and you should be set!

Linux
Quick Fixes

Comments (7)

Permalink

Convert a PFX file to a PEM file

Bold indicates a button clicked or key pressed.
“quotes” indicates a value which has been entered.

Grey block quote is a command typed directly into the console.

Purpose

The following steps allow you to convert a PFX certificate file in Windows Server to a PEM file. This is important since most Linux/Unix systems prefer a PEM format for certificate use, especially something like an Apache web server.

  1. Download and install the Win32 OpenSSL (v0.9.8i) package from http://www.slproweb.com/products/Win32OpenSSL.html
  2. Create the folder C:\certs and copy your exported PFX certificate file inot the C:\certs folder. The name yourcert.pfx is used in this example.
  3. Go to Start, then click Run and type in “cmd” and press enter. This should bring up a command prompt which you can use to change into the OpenSSL bin directory.
  4. cd %homedrive%\OpenSSL\bin
  5. openssl pkcs12 -in C:\certs\yourcert.pfx -out c:\certs\newcertname.pem -nodes
  6. This should convert the file from a PFX format to a PEM format, feel free to substitute your own name instead of “newcertname.pem”. Also be sure this command is entered as one line, regardless of how it appears on this site. When prompted, enter the password you used when exporting the PFX file from the Windows certificate store. You should then receive the message “MAC verified OK”.
  7. Open “newcertname.pem” in notepad, and cut out the private key into C:\OpenSSL\bin\private\privatekey.pem (or another path and name as you see fit).
  8. Also cut out the CA Certificate into C:\OpenSSL\bin\cacert.pem
  9. Modify c:\OpenSSL\bin\openssl.cfg configuration file and change the [alt_names] to whichever alternative names you wish.
  10. Create a new request, by typing the following commands.
  11. openssl req -new -nodes -keyout privatekey.pem -out cert-request.pem
  12. openssl ca -out issued-cert -in cert-request.pem
  13. This should have created a new request and signed it with the CA’s private key. Keep in mind the path to these certificate files are not included here so make sure you are in the proper directory (i.e. the same directory) for those files.
  14. If you get errors during this procedure, clear the index.txt and serial files within the OpenSSL directory to be sure it is working with a fresh batch. Below is the configuration file for OpenSSL and is to be used as reference. Not all of the configuration is the same, so be sure to double check names of certificates and paths.

Continue Reading »

General
HowTos
Linux
Windows

Comments (0)

Permalink

Configuring CARP on pfSense

Purpose

With any firewall and gateway, the issue of a single point of failure is always present. In order to mitigate this Common Address Redundancy Protocol was invented for the BSD world. For those of you coming from a Cisco or other network gear manufacturer, this functions at a high level the same as VRRP or HSRP. The main difference seen with pfSense is the ability to sync configurations using pfsync. This tutorial should provide an overview of configuring this setup within pfSense and showing effects of downtime on the system.

First of all we have the general layout of this sample setup.

Continue Reading »

FreeBSD
HowTos
pfSense

Comments (0)

Permalink

Dual Boot pfSense for Testing New Versions

Recently pfSense 2.0 was released into beta stages, and as an avid 1.2.x line user, I was eager to check it out. I did still want the ability to rollback to a previous version if things were too unstable, so I configured dual booting the stable 1.2.x line with the experimental 2.0 build. Note this should also work for any other versions in the future, but these two are just used as an example.

  • Back up current configuration of stable system. Make sure you have the config.xml file handy to upload since you will actually need to re-install the system if you do not already have correctly sized slices.
  • Boot stable pfSense media. It actually does not matter which is used, but for the sake of example stable comes first.
  • Select to (i) install to the local hard disk.
  • Select < Custom Install > as shown below after configuring keyboard and display.

  • Next select the hard disk you would like to use to install the system. You may install over several drives if you wish using the same general idea, the only difference is where you place partitions. I am using a single drive setup here for simplicity and commonality.

Continue Reading »

FreeBSD
HowTos
Operating Systems
pfSense

Comments (0)

Permalink

Fixing VLAN Recognition on pfSense 1.2 and Realtek RTL8110SC NIC

If you are using pfSense (and possibly FreeBSD for that matter) you may have run into the problem of VLAN interfaces not responding after a reboot or interface creation. This leads to serious problems when this is your main router platform, as independent network segments are unable to communication.

Symptoms of this include:

  • Systems can ARP the MAC address of the network card, but are unable to ping it.
  • pfSense with Realtek RTL8110SC NIC responds to DHCP or any other layer 2 system but does not respond on layer 3.
  • Realtek RTL8110SC instability issues and inconsistent VLAN state.

The fix  for this is much less than ideal, but it works in a pinch and in most situations where absolute performance is not the key, but rather making things stable till another workaround (or suggested hardware replacement) comes up.

#ifconfig rex promisc

Where “reX” is reO, re1, etc… or whatever the name of your parent interface. Doing this on a per-vlan level will not help. Please be aware there are performance hits to this tactic, as each packet seen on the interface will be passed to the CPU, not just the ones destined for it.  It may be quick and dirty, but it works. If anyone has an alternate suggestion on why this happens, please chime in.

FreeBSD
Quick Fixes
pfSense

Comments (0)

Permalink