Friday, August 25, 2017

Configuring OpenVPN to run automatically on system startup


  1. Download and install OpenVPN
  2. Save config file (ovpn) in C:\Program Files\OpenVPN\config folder.
  3. Create a txt file with the file name auth.txt.  The first line being the user name and the second line being the password for your OpenVPN server.
  4. Save auth.txt folder in the C:\Program Files\OpenVPN\config folder.
  5. Edit the config/ovpn file and add the following line: auth-user-pass auth.txt
  6. Go to setting of OpenVPN and uncheck start on windows startup.
  7. Open Task Scheduler and create a Basic Task
  8. Start on user log on.
  9. The program will be: "C:\Program Files\OpenVPN\bin\openvpn-gui.exe"
  10. Add arguments: --connect "ENTER CONFIG FILE NAME HERE"
  11. Start task after network connection is established.

Saturday, August 5, 2017

FreeNAS iPerf - Measure Maximum TCP and UDP Bandwidth Performance

How to test network performance with FreeNAS server and Windows.

  1. Disable windows firewall.  This is necessary if you want to test both send and recieve speeds using the -r switch.
  2. Launch shell in FreeNAS.
  3. Determine the version of iPerf the is installed.  Type: iperf -v
  4. Download and extract respective iPerf version in root folder (c:\iperf) of Windows machine you will be testing with FreeNAS. Download link:
  5. Launch command prompt as administrator and navigate to iPerf folder (c:\iperf).
  6. In FreeNAS server shell stat iPerf server by typing: iperf -s
  7. On windows machine (iPerf client) in command prompt, navigate to iPerf folder type: iperf.exe -c FreeNASIP -P 10 -t 15 -r
  8. iPerf will run 10 simultaneous processes for 15 seconds and display results.
  9. When finished testing, on FreeNAS server type: killall iperf .  You may need to enter this command two times.  This is required as your CPU usage will likely be very high until you kill iPerf.