Menu:
  :. HomePage
  :. Linux
  :. Solaris
  :. Windows
  :. Programování
  :. Java + Tomcat
  :. HW obecně
  :. VoIP - Asterisk
  :. Cisco - Mikrotik - Síť
  :. O mě
  :. Fotogalerie

 Testovací:
  :. ASP projekt
  :. JSP projekt



 Doporučuji:

Savvy - profesionální webhosting, webdesign a serverhosting
Internetový obchod Stromeček.cz - hardware, software a mobily za super ceny
AirCon Miroslav
Galerie fotek
Notebooky
Webdesign Praha

www.eprdel.cz
www.root.cz
Lumimont

NAVRCHOLU.cz
A



Vaše IP:
54.224.247.42

Solaris - compilace OpenVPN

Tento navod je pro Solaris 10 x86.

Kompilace a instalace:
=======================

1. Stahnout a rozbalit driver z http://vtun.sourceforge.net/tun/tun-1.1.tar.gz

2) v adresari tun-1.1/solaris modifikujte radek #124 z tun.c
(without this the compilation doesn't work)
"TUN/TAP driver" TUN_VER, --to--> "TUN/TAP driver",

3) added following entry in if_tun.h
#define TUN_VER 1.1


1. Pro podporu OpenSSL je dobre ji nasintalovat z OpenPGK.

2. Prelozil LZO

./configure \
--with-lzo-headers \
--with-lzo-lib
make
make install



3. Prekompilovat OpenVPN

./configure \
--with-ssl-headers=/openpkg/include/ \
--with-lzo-headers=/usr/local/include \
--with-lzo-lib=/usr/local/lib
make
make install



I was able to compile lzo-2.2 and also openvpn2.0.7 without any problem.
However compilation of tun was a really hard task. After googling for solution and trying out differnet options
suggested by users, I just simply couldn't load the compiled driver
(using add_drv). No matter what I do it was always saying unable to
attach driver. Using the solaris kernel driver development guide I
successfully compiled/loaded driver for amd64 using following steps

1) Stahnout a rozbalit driver z http://vtun.sourceforge.net/tun/tun-1.1.tar.gz

2) go in tun-1.1/solaris folder and modify line #124 of tun.c (without
this the compilation doesn't work)
"TUN/TAP driver" TUN_VER, --to--> "TUN/TAP driver",

3) added following entry in if_tun.h
#define TUN_VER 1.1

4) Using steps
http://docs.sun.com/app/docs/doc/819-3159/6n5d9rbv8?a=view, in section
"Compiline with SunStudion/GNC-C Compiler (BTW I used sunstudio which is
free download now a days)
cc -D_KERNEL -xarch=amd64 -xmodel=kernel -c tun.c
/usr/ccs/bin/ld -r -o tun tun.o
(You may follow steps described for gun-c with/out non 64 arch if you
need, I didn't try them)
su
cp tun /usr/kernel/drv/amd64/tun
cp tun.conf /usr/kernel/drv/tun.conf (if it doesn't work try copying it
in drv/amd64 as well)
cp if_tun.h /usr/include/net
chown root:bin /usr/include/net/if_tun.h
rem_drv tun
add_drv -v tun

Voila get a success message as following (this is by adding -v flag in
add_drv command)
exit status = 0
devfsadm[849]: verbose: symlink /dev/tun ->
../devices/pseudo/clone@0:tun
Driver (tun) installed.

And am running openvpn successfully after this compilation/installation
right away!!


Odkazy:
http://openvpn.net/archive/openvpn-users/2006-09/msg00143.html
 
« Zpět na seznam