*EDIT*
Everyone needing a solid openvpn 2/2.1 client check out Viscosity. It costs $9 but it's very slick (30-day trial available). It also works with DHCP w/o issue and finally delivers a feature to disable time machine over VPN [cries tears of joy]
http://viscosityvpn.com/
Original 10.5.2 thread:
As TunnelBlick currently doesn't work for me I'm using OpenVPN from the CLI and it *is working*. I should note I'm using newer OpenVPN2 and tun/tap drivers than is currently supplied w/ TunnelBlick. Since these updated versions work I'm going to try manually updating TunnelBlick w/ the current OpenVPN2 binary and TUN/TAP drivers and see if that also works as the TunnelBlick interface is very useful.. Of course, manual install of openvpn and drivers as well as CLI openvpn usage is best suited for CLI-savvy folks.
***EDIT: Turns out the newer openvpn2 binary and updated tun/tap drivers can be quickly patched into Tunnelblick (see end of post for instructions) - I now have Tunnelblick working/stable***
***EDIT: At the request of a few folks I've posted the latest drivers/binary in this thread as well as to the DD forum:
Click to view attachment
http://www.dd-wrt.com/phpBB2/viewtopic.php?p=178231#178231 ***
***EDIT: 10.5.5 Quick DHCP fix:
try changing your up script to do a manual ip address vs. dhcp...
change: ipconfig set tap0 DHCP
to: ipconfig set tap0 MANUAL 192.168.1.xxx 255.255.255.0
(assuming your destination network is on the 192.168.1.x subnet) ***
INSTRUCTIONS:
1) Install Tun/Tap drivers (version: 01/21/2008)
http://www-user.rhrk.uni-kl.de/~nissler/tuntap/
2) Install Xcode 3.0 Tools
http://developer.apple.com/tools/download/
3) Install Macports v1.6
http://www.macports.org/
4) Install OpenVPN2 (and dependencies) via Mac Ports
bash-3.2# cd /opt/local/bin
bash-3.2# sudo ./port selfupdate
MacPorts base version 1.600 installed
Downloaded MacPorts base version 1.600
The MacPorts installation is not outdated and so was not updated
selfupdate done!
bash-3.2# sudo ./port search openvpn
openvpn net/openvpn 1.6.0 easy-to-use, robust, and highly configurable VPN
openvpn2 net/openvpn2 2.0.9 easy-to-use, robust, and highly configurable VPN
bash-3.2# sudo ./port install openvpn2
---> Fetching lzo2
---> Attempting to fetch lzo-2.02.tar.gz from http://www.oberhumer.com/opensource/lzo/download/
---> Verifying checksum(s) for lzo2
---> Extracting lzo2
---> Configuring lzo2
---> Building lzo2 with target all
---> Staging lzo2 into destroot
---> Installing lzo2 2.02_2+darwin_9
---> Activating lzo2 2.02_2+darwin_9
---> Cleaning lzo2
---> Fetching zlib
---> Attempting to fetch zlib-1.2.3.tar.bz2 from http://www.zlib.net/
---> Verifying checksum(s) for zlib
---> Extracting zlib
---> Applying patches to zlib
---> Configuring zlib
---> Building zlib with target all
---> Staging zlib into destroot
---> Installing zlib 1.2.3_1
---> Activating zlib 1.2.3_1
---> Cleaning zlib
---> Fetching openssl
---> Attempting to fetch openssl-0.9.8g.tar.gz from http://www.openssl.org/source/
---> Verifying checksum(s) for openssl
---> Extracting openssl
---> Applying patches to openssl
---> Configuring openssl
---> Building openssl with target all
---> Staging openssl into destroot
---> Installing openssl 0.9.8g_0
---> Activating openssl 0.9.8g_0
---> Cleaning openssl
---> Fetching openvpn2
---> Attempting to fetch openvpn-2.0.9.tar.gz from http://www.openvpn.net/release/
---> Verifying checksum(s) for openvpn2
---> Extracting openvpn2
---> Configuring openvpn2
---> Building openvpn2 with target all
---> Staging openvpn2 into destroot
---> Installing openvpn2 2.0.9_1
---> Activating openvpn2 2.0.9_1
---> Cleaning openvpn2
5) Reboot and verify tunnel drivers loaded
bash-3.2# kextstat -l|grep foo
110 0 0x52d8e000 0x6000 0x5000 foo.tap (1.0) <7 6 5 2>
109 0 0x52d85000 0x6000 0x5000 foo.tun (1.0) <7 6 5 2>
6) Execute OpenVPN
MacBookPro:~ Joshua$ sudo /opt/local/sbin/openvpn2 --cd /Users/Joshua/Library/openvpn --config /Users/Joshua/Library/openvpn/simple.conf
Mon Apr 14 18:35:34 2008 OpenVPN 2.0.9 i686-apple-darwin9.2.2 [SSL] [LZO] built on Apr 14 2008
Mon Apr 14 18:35:34 2008 IMPORTANT: OpenVPN's default port number is now 1194, based on an official port number assignment by IANA. OpenVPN 2.0-beta16 and earlier used 5000 as the default port.
Mon Apr 14 18:35:34 2008 WARNING: file 'static.key' is group or others accessible
Mon Apr 14 18:35:34 2008 LZO compression initialized
Mon Apr 14 18:35:34 2008 gw 192.168.0.1
Mon Apr 14 18:35:34 2008 TUN/TAP device /dev/tap0 opened
Mon Apr 14 18:35:34 2008 ./simple.up tap0 1500 1579 init
add net 99.99.99.99: gateway 192.168.0.1
delete net 0.0.0.0: gateway 192.168.0.1
route: writing to routing socket: Network is unreachable
add net 0.0.0.0: gateway 192.168.1.1: Network is unreachable
Mon Apr 14 18:35:34 2008 Attempting to establish TCP connection with 99.99.99.99:443
Mon Apr 14 18:35:35 2008 TCP connection established with 99.99.99.99:443
Mon Apr 14 18:35:35 2008 TCPv4_CLIENT link local: [undef]
Mon Apr 14 18:35:35 2008 TCPv4_CLIENT link remote: 99.99.99.99:443
Mon Apr 14 18:35:36 2008 Peer Connection Initiated with 99.99.99.99:443
Mon Apr 14 18:35:37 2008 Initialization Sequence Completed
*** EDIT:
7) (Optional) To update Tunnelblick w/ the latest openvpn2 binary and tun/tap drivers:
bash-3.2# sudo -s
bash-3.2# cd /Applications/Tunnelblick.app/Contents/Resources/
bash-3.2# mv tap.kext tap.kext.orig
bash-3.2# mv tun.kext tun.kext.orig
bash-3.2# mv openvpn openvpn.orig
bash-3.2# cp -R /Library/Extensions/tap.kext ./
bash-3.2# cp -R /Library/Extensions/tun.kext ./
bash-3.2# cp -R /opt/local/sbin/openvpn2 ./openvpn
***
Josh
