Skip to contentSkip to conversation

Mac OS X tap support

Openvpn-devel Waldemar Brodkorb 3 participants 3 messages Sep 11, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

yesterday we found a new tun/tap kernel extension for Mac OS X here:
http://www-user.rhrk.uni-kl.de/~nissler/tuntap/

After some short testing and a small patch to OpenVPN the Mac OS X client seems to work correctly via the TAP device.

It would be nice if this patch and eventually the driver could be integrated into openvpn like the win32 driver.

If someone is interested we also would provide a binary package, which installs the tap/tun driver and OpenVPN on Mac OS X.

We have a project in our university, where we would like to use OpenVPN to secure our Wireless LAN.

Mattias Nissler: Thanks for providing this driver, there was a very short timeslice, where I was thinkning to do a tap kernel extension on my own ... but luckily Daniel Lehmann has some greater ability to use google correctly ;)

Thanks in advance
Waldemar

Signature · 4 lines
CE94 5F99 BA88 65B1 25B9  8CD1 305A FF6B F8F8 1846
gpg --keyserver x-hkp://pgp.mit.edu --recv-keys F8F81846

*** http://www.luusa.org/~wbx ***

Index: INSTALL
===================================================================
RCS file: /cvsroot/openvpn/openvpn/INSTALL,v
retrieving revision 1.37.2.2

INSTALL +3 -0
diff -d -u -r1.37.2.2 INSTALL
@@ -232,6 +232,9 @@
 
   Obtain Christoph Pfisterer's TUN driver at
   http://chrisp.de/en/projects/tunnel.html
+  or  
+  Mattias Nissler's TUN/TAP driver at
+  http://www-user.rhrk.uni-kl.de/~nissler/tuntap/
 
 * Solaris9 Sparc/64
 

Index: tun.c
===================================================================
RCS file: /cvsroot/openvpn/openvpn/tun.c,v
retrieving revision 1.37.2.21

tun.c +8 -1
diff -d -u -r1.37.2.21 tun.c
@@ -682,7 +682,14 @@
 			  tun_mtu
 			  );
       else
-	no_tap_ifconfig ();
+	openvpn_snprintf (command_line, sizeof (command_line),
+			  IFCONFIG_PATH " %s %s netmask %s mtu %d up",
+			  actual,
+			  ifconfig_local,
+			  ifconfig_remote_netmask,
+			  tun_mtu
+			  );
+
       msg (M_INFO, "%s", command_line);
       system_check (command_line, "Mac OS X ifconfig failed", true);
       tt->did_ifconfig = true;
#1 lore raw
Quoted 10 lines · Waldemar Brodkorb

Hi,

yesterday we found a new tun/tap kernel extension for Mac OS X here:
http://www-user.rhrk.uni-kl.de/~nissler/tuntap/

After some short testing and a small patch to OpenVPN the Mac OS X client seems to work correctly via the TAP device.

Quoted 7 lines

It would be nice if this patch and eventually the driver could be integrated into openvpn like the win32 driver.

If someone is interested we also would provide a binary package, which installs the tap/tun driver and OpenVPN on Mac OS X.

That would be great if you wanted to do it. OpenVPN on OS X really needs a maintainer.

Quoted 4 lines

Mattias Nissler: Thanks for providing this driver, there was a very short timeslice, where I was thinkning to do a tap kernel extension on my own ... but luckily Daniel Lehmann has some greater ability to use google correctly ;)

That's cool -- I didn't even know someone had written a new driver.

James

#2 lore raw
In reply to Waldemar Brodkorb

Hi,

just to say a few words myself...

Quoted 5 lines

It would be nice if this patch and eventually the driver could be integrated into openvpn like the win32 driver.

do that if you like, therefore I put it under BSD style license. However, I wrote the driver only weeks ago (it is online since August 24th), so there may be some bugs/weaknesses. Therefore I am interested in any bugreports, suggestions and problems encountered.

Quoted 5 lines

Mattias Nissler: Thanks for providing this driver, there was a very short timeslice, where I was thinkning to do a tap kernel extension on my own ... but luckily Daniel Lehmann has some greater ability to use google correctly ;)

Well, perhaps that's not your fault, google had only two weeks until now to pick it up ;-) I was quite amazed that they are so quick.

Have fun,

Mattias