|
|
I managed to answer this one myself. The docs state to add "-m64" to the solaris\Makefile CFLAGS which did not seem to make any difference. The part that did help was the patch to the tun.c code. Although the README references the patch, it is only mentioned in reference to "creating multiple tunnels on Solaris" which is why I did not think it applied. However, I think the README docs are misleading since I couldn't get the devices to be created at all.. once I applied the tun.c
patch, everything magically came up!
-Rich
[solaris]# diff -uNr tun.c.orig tun.c
--- tun-1.1/solaris/tun.c.orig 2000-06-19 23:14:17.000000000 -0400
+++ tun-1.1/solaris/tun.c 2006-08-07 13:06:37.680509000 -0400
@@ -345,7 +345,8 @@
case TUNNEWPPA:
/* Allocate new PPA and assign control stream */
- p = *(int *)mp->b_cont->b_rptr;
+ /*p = *(int *)mp->b_cont->b_rptr;*/
+ p = -1;
if( p < -1 || p > TUNMAXPPA){
tuniocack(wq, mp, M_IOCNAK, 0, EINVAL);
return;
>From the OpenVPN README file:
* 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
> I've got tun-1.1 and openvpn installed on Solaris 8 SPARC, but, for the
> life of me, I cannot get openvpn to start up.
>
> I keep getting:
> Tue Aug 1 19:05:21 2006 us=715053 Diffie-Hellman initialized with 1024
> bit key
> Tue Aug 1 19:05:21 2006 us=718117 TLS-Auth MTU parms [ L:1542 D:138
> EF:38 EB:0 ET:0 EL:0 ]
> Tue Aug 1 19:05:21 2006 us=718692 Can't open /dev/tun: No such file or
> directory (errno=2)
> Tue Aug 1 19:05:21 2006 us=718720 Exiting
>
> The tun driver is installed:
> #> /usr/sbin/add_drv tun
> Driver (tun) is already installed.
>
> So.. I am not sure what else to do.. There is no /dev/tun (or related
> /dev/tun*), so I am a bit at a loss.
>
> I'm setting this up as a secondary to our primary linux openvpn server
> which seemed so easy in comparison. :)
>
> I get the feeling that I am missing a very simple, but key, step.. So..
> I was hoping someone out there might be able to point me in the right
> direction.. :)
>
> -Rich
______________________
OpenVPN mailing lists
https://lists.sourceforge.net/lists/listinfo/openvpn-users
Warning: require_once(../../../archive_common.php) [function.require-once]: failed to open stream: No such file or directory in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2006-08/msg00090.html on line 244
Fatal error: require_once() [function.require]: Failed opening required '../../../archive_common.php' (include_path='/usr/local/lib/php') in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2006-08/msg00090.html on line 244
|