Ocserv 0.3 Not Working on Fedora 20 64Bit
info at itnserver.com
info at itnserver.com
Tue Jan 21 19:22:48 EST 2014
Hi All
Please Help Me For install and Config ocserv 0.3
Please explain step by step installation and configuration
Linux Fedora 20 64 bit
Step 1
ssh on Server and Login by root
yum groupinstall 'Development Tools'
yum install protobuf-c-devel
yum install gnutls-devel
yum install http-parser-devel
yum install tcp_wrappers-devel
yum install pcllib-devel
yum install pam-devel
yum install autogen-libopts-devel
yum install autogen
yum install dbus-devel
yum install readline-devel
yum install libnl3-devel
yum install autoconf
yum install automake
yum install autogen
yum install git2cl
yum install xz
yum update
Step 2
wget ftp://ftp.infradead.org/pub/ocserv/ocserv-0.3.0pre0.tar.xz
unxz ocserv-0.3.0pre0.tar.xz
tar -xvf ocserv-0.3.0pre0.tar
cd ocserv-0.3.0pre0
Step 3
autoreconf -fvi
./configure && make
See config.log
## --------- ##
## Platform. ##
## --------- ##
hostname = ADMIN.CISCO.NET
uname -m = x86_64
uname -r = 3.9.5-301.fc19.x86_64
uname -s = Linux
uname -v = #1 SMP Tue Jun 11 19:39:38 UTC 2013
/usr/bin/uname -p = x86_64
/bin/uname -X = unknown
/bin/arch = x86_64
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /root/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:3239: checking for pkg-config
configure:3257: found /usr/bin/pkg-config
configure:3269: result: /usr/bin/pkg-config
configure:3294: checking pkg-config is at least version 0.9.0
configure:3297: result: yes
configure:3352: checking for a BSD-compatible install
configure:3420: result: /usr/bin/install -c
configure:3431: checking whether build environment is sane
configure:3486: result: yes
configure:3637: checking for a thread-safe mkdir -p
configure:3676: result: /usr/bin/mkdir -p
configure:3683: checking for gawk
configure:3699: found /usr/bin/gawk
configure:3710: result: gawk
configure:3721: checking whether make sets $(MAKE)
configure:3743: result: yes
configure:3772: checking whether make supports nested variables
configure:3789: result: yes
configure:3884: checking whether make supports nested variables
configure:3901: result: yes
configure:3963: checking for gcc
configure:3979: found /usr/bin/gcc
configure:3990: result: gcc
configure:4219: checking for C compiler version
configure:4228: gcc --version >&5
gcc (GCC) 4.8.2 20131212 (Red Hat 4.8.2-7)
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE
Error List
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or
directory
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or
directory
conftest.c:54:26: fatal error: minix/config.h: No such file or directory
conftest.c:21:26: fatal error: minix/config.h: No such file or directory
conftest.c:35:27: error: expected expression before ')' tokenif (sizeof
((sighandler_t)))
conftest.c:36:20: error: expected expression before ')' token if (sizeof
((sig_t)))
conftest.c:36:15: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'universal'
conftest.c:36:15: error: unknown type name 'universal'
conftest.c:42:4: error: unknown type name 'not'
conftest.c:42:12: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'endian' not big endian
configure:6728: $PKG_CONFIG --exists --print-errors "gnutls >= 3.1.10"
configure:6745: $PKG_CONFIG --exists --print-errors "gnutls >= 3.1.10"
configure:6864: $PKG_CONFIG --exists --print-errors "dbus-1 >= 1.1.1"
configure:6881: $PKG_CONFIG --exists --print-errors "dbus-1 >= 1.1.1"
configure:6957: $PKG_CONFIG --exists --print-errors "libprotobuf-c"
configure:6974: $PKG_CONFIG --exists --print-errors "libprotobuf-c"
configure:7119: $PKG_CONFIG --exists --print-errors "libnl-route-3.0 >=
3.1"
configure:7136: $PKG_CONFIG --exists --print-errors "libnl-route-3.0 >=
3.1"
conftest.c:37:36: fatal error: security/pam_appl.h: No such file or
directory
collect2: error: ld returned 1 exit status
/* Override any GCC internal prototype to avoid an error.
conftest.c:94:20: error: expected expression before ')' token if (sizeof
((pid_t)))
conftest.c:85:13: error: initializer element is not constant
configure:9667: $? = 1
conftest.c:86:10: error: unknown type name 'not' not a universal capable
compiler
conftest.c:86:16: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'universal'
conftest.c:86:16: error: unknown type name 'universal'configure:9732: $?
= 1
configure:10829: checking whether strerror_r is declared without a macro
conftest.c:118:1: error: unknown type name 'choke' choke me
conftest.c:121:1: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'int'
conftest.c:126:19: error: conflicting types for 'gettimeofday'
conftest.c:143:10: error: 'fpurge' undeclared (first use in this
function)
conftest.c:147:10: error: 'gets' undeclared (first use in this function)
conftest.c:273:24: fatal error: net/if_tun.h: No such file or directory
And ........
configure: exit 0
Step 4
certtool --generate-privkey > ./test-key.pem
certtool --generate-self-signed --load-privkey test-key.pem --outfile
test-cert.pem
Step 5
config file sample.config
And
src/ocserv -f -c src/sample.config
See Error
Unknown user: nobody
Then
open file sample.config And Change To
#run-as-user = nobody
#run-as-group = nobody
Save
And
src/ocserv -f -c src/sample.config
See
listening (TCP) on (MY IP):443...
listening (UDP) on (MY IP):443...
Then
netstat -lnptu
Port 443 is not in the list For LISTEN
ocserv not working
Please help me
More information about the openconnect-devel
mailing list