Geekdom

Geeks of the World Unite!

 

7

Aug

OpenVPN

Posted by Rich  Published in Linux, Solaris, Technical

Openvpn, for those that are unfamiliar with it, is an excellent point-to-point VPN software package.

I tried it out in an environment where both ends were Fedora Core Linux systems and the installation went extremely well. In fact, it was almost simple. :) The tough part was getting the configuration fine-tuned enough such that it would be both secure yet easy to use.

The real key was an article in SysAdmin that covered how someone installed OpenVPN on a Linux server, and built a customized OpenVPN install on a Windows desktop system using the NullSoft Install System.

It was not long before the environment was completely off of the Cisco VPN hardware (part of the PIX) and fully on OpenVPN. The trick, however, was battling the situation where the single Linux server was down for one reason or another (a failed mirrored drive). The only secondary system that was available was a Solaris 8 system which is the predominant system in our environment anyhow.

So, I set about getting OpenVPN up and running. Unfortunately, Solaris 8 does not have a built in tunnel device (aka: tun) that OpenVPN requires. The documentation within the OpenVPN readme was a little misleading:

* Solaris

For 64 bit, I used the tun-1.1.tar.gz source and compiled it.

Of course there is a but :)
In the tun-1-1\solaris\Makefile I changed a line so it compiles with 64 bit

CFLAGS = $(DEFS) -m64 -O2 -Wall -D_KERNEL -I.

I just added -m64 and it worked.

The tun driver works fine as said previously, however we noticed there is a minor problem when creating multiple tunnels on Solaris.
Mr Tycho Fruru changed the code in tun.c file where he locked the tun device number to -1. This way it is impossible to specify the name of the tun device but it is still possible to have multiple devices.
The modification will increment automatically meaning starting from tun0 —> tunX I know you are not responsible for the tun coding but if you think the modification can be useful for you feel free to use it.

http://openvpn.net/solaris/tun.c

Now, that tells me that you need to add the option to the CFLAGS to build it as a 64-bit binary and that, if you are creating multiple tunnels, you need to patch the tun.c file.

BZZT. Wrong. You need to do both if you want to do anything with the device, otherwise Solaris will not make any of the /dev/tun* devices, and, hence, OpenVPN will not work.

Of course, that minor difference in terminology resulted in about 4 business days of effort on-again/off-again effort to get OpenVPN working on Solaris 8.

Another individual contacted me regarding his troubles getting the “tun” driver to build and install properly under Solaris 8, and I helped walk him through it. Oddly, he couldn’t even get it to compile (through no failure of his own)! I sent him a tar file of my patched and compiled version and he was able to get things up! So, I thought I would make it available here (not sure why, but wordpress stripped out some of the periods.  The file should be named tun-1.1-patched.tar.gz). Perhaps I was lucky (seems that way) to get it to compile.

Related Articles

  • Squid + NTLM authentication failing in a Windows 2008 Domain Environment (August 17th, 2010)
  • Generating self signed SSL certificates (August 14th, 2010)
  • Renew Self-Signed SSL Certificate on Linux (August 14th, 2010)
  • Windows 7 and Squid via NTLM authentication via Samba (July 16th, 2010)
  • Adding LDAP authentication to ESX (July 25th, 2009)

No user responded in this post

Subscribe to this post comment rss or trackback url

Search

Categories

  • Fun
  • Games
  • Linux
  • Movies
  • Rants
  • Solaris
  • Technical
  • Uncategorized
  • Windows

Archives

  • August 2010
  • July 2010
  • January 2010
  • July 2009
  • June 2009
  • May 2009
  • January 2009
  • December 2008
  • November 2008
  • September 2008
  • July 2008
  • June 2008
  • March 2008
  • February 2008
  • December 2007
  • August 2007
  • July 2007
  • April 2007
  • March 2007
  • February 2007
  • January 2007
  • November 2006
  • October 2006
  • September 2006
  • August 2006
  • July 2006
  • August 2005

Meta

  • Register
  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
August 2006
S M T W T F S
« Jul   Sep »
 12345
6789101112
13141516171819
20212223242526
2728293031  

Blogroll

  • Brian Jones - Musings of an Anonymous Geek
  • Steve Elgersma - Random uploaded bits of Steve’s mind
  • WesMo Projects - Necessity Is The Mother Of Invention

Recent Post

  • Squid + NTLM authentication failing in a Windows 2008 Domain Environment
  • Generating self signed SSL certificates
  • Renew Self-Signed SSL Certificate on Linux
  • Windows 7 and Squid via NTLM authentication via Samba
  • iPhone SMS Archiving
  • Adding LDAP authentication to ESX
  • Extend the root LVM with a live system
  • Majordomo to Mailman migration
  • ESX/ESXi and the AMD Phenom X4 9500
  • Enabling SSH on ESXi

Recent Comments

  • VMware Workstation 6.5.0 + fedora 1… in Fedora 10 + VMware Workstation 6.5.0
  • Ben in Openvpn + Windows = One Awesome VPN Setup (Quick a…
  • Geekdom » Post Topic in Fedora (with Gnome) and VMWare Workstation 6.5 = k…
  • stephen01 in Fedora (with Gnome) and VMWare Workstation 6.5 = k…
  • Avoid One Thing » Blog Archiv… in MythTV Tweaks
  • I Organize » Blog Archive &ra… in Playing an iPod (or other music player) on a lapto…
  • iPod: Apple iPod Music Downloads, F… in Playing an iPod (or other music player) on a lapto…
  • Apple Ipod, Ipod Nano and Ipod Vide… in Playing an iPod (or other music player) on a lapto…
  • Rich in BIOS updates to a Mach Speed Viper K8M8MS rev 2 mo…
  • Rich in BIOS updates to a Mach Speed Viper K8M8MS rev 2 mo…
© 2007 Geekdom
Theme based upon one created by Wired Studios
Valid XHTML | Valid CSS 3.0
Powered by Wordpress