Hi,
I'm trying to get OpenVPN working on my Pogo V4 (Mobile). It works fine without cryptodev, but when I try to enable cryptodev support from the link here it is not working.
Here is the output from the server side:
$this->bbcode_second_pass_code('', '
[root@alarm openvpn]# openvpn /etc/openvpn/server.conf
Tue Sep 23 07:18:51 2014 OpenVPN 2.3.4 armv5tel-unknown-linux-gnueabi [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on Jul 1 2014
Tue Sep 23 07:18:51 2014 library versions: OpenSSL 1.0.1i 6 Aug 2014, LZO 2.08
Tue Sep 23 07:18:51 2014 Diffie-Hellman initialized with 2048 bit key
Tue Sep 23 07:18:51 2014 Control Channel Authentication: using '/etc/openvpn/ta.key' as a OpenVPN static key file
Tue Sep 23 07:18:51 2014 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Sep 23 07:18:51 2014 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Sep 23 07:18:51 2014 Socket Buffers: R=[163840->131072] S=[163840->131072]
Tue Sep 23 07:18:51 2014 ROUTE_GATEWAY 172.16.77.1/255.255.255.0 IFACE=eth0 HWADDR=xx:xx:xx:xx:xx:xx
Tue Sep 23 07:18:51 2014 TUN/TAP device tun0 opened
Tue Sep 23 07:18:51 2014 TUN/TAP TX queue length set to 100
Tue Sep 23 07:18:51 2014 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Tue Sep 23 07:18:51 2014 /usr/bin/ip link set dev tun0 up mtu 1500
Tue Sep 23 07:18:51 2014 /usr/bin/ip addr add dev tun0 local 10.8.0.1 peer 10.8.0.2
Tue Sep 23 07:18:51 2014 /usr/bin/ip route add 10.8.0.0/24 via 10.8.0.2
Tue Sep 23 07:18:51 2014 GID set to nobody
Tue Sep 23 07:18:51 2014 UID set to nobody
Tue Sep 23 07:18:51 2014 UDPv4 link local (bound): [undef]
Tue Sep 23 07:18:51 2014 UDPv4 link remote: [undef]
Tue Sep 23 07:18:51 2014 MULTI: multi_init called, r=256 v=256
Tue Sep 23 07:18:51 2014 IFCONFIG POOL: base=10.8.0.4 size=62, ipv6=0
Tue Sep 23 07:18:51 2014 Initialization Sequence Completed
Tue Sep 23 07:19:25 2014 173.55.80.151:53079 TLS: Initial packet from [AF_INET]173.55.80.151:53079, sid=ecd9f559 01cfb84f
Tue Sep 23 07:19:25 2014 173.55.80.151:53079 VERIFY OK: depth=1, C=US, ST=CA, L=Fontana, O=Home_Lan, OU=MyOrganizationalUnit, CN=Home_Lan CA, name=EasyRSA, emailAddress=xxxx@gmail.com
Tue Sep 23 07:19:25 2014 173.55.80.151:53079 VERIFY OK: depth=0, C=US, ST=CA, L=Fontana, O=Home_Lan, OU=MyOrganizationalUnit, CN=laptop01, name=EasyRSA, emailAddress=xxxx@gmail.com
Tue Sep 23 07:19:26 2014 173.55.80.151:53079 TLS_ERROR: BIO read tls_read_plaintext error: error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac
Tue Sep 23 07:19:26 2014 173.55.80.151:53079 TLS Error: TLS object -> incoming plaintext read error
Tue Sep 23 07:19:26 2014 173.55.80.151:53079 TLS Error: TLS handshake failed
Tue Sep 23 07:19:26 2014 173.55.80.151:53079 SIGUSR1[soft,tls-error] received, client-instance restarting
')
Client is Windows. Here is the output:
$this->bbcode_second_pass_code('', '
Tue Sep 23 07:19:23 2014 OpenVPN 2.3.4 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Aug 7 2014
Tue Sep 23 07:19:23 2014 library versions: OpenSSL 1.0.1i 6 Aug 2014, LZO 2.05
Tue Sep 23 07:19:23 2014 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Tue Sep 23 07:19:23 2014 Need hold release from management interface, waiting...
Tue Sep 23 07:19:23 2014 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Tue Sep 23 07:19:23 2014 MANAGEMENT: CMD 'state on'
Tue Sep 23 07:19:23 2014 MANAGEMENT: CMD 'log all on'
Tue Sep 23 07:19:23 2014 MANAGEMENT: CMD 'hold off'
Tue Sep 23 07:19:23 2014 MANAGEMENT: CMD 'hold release'
Tue Sep 23 07:19:24 2014 Control Channel Authentication: tls-auth using INLINE static key file
Tue Sep 23 07:19:24 2014 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Sep 23 07:19:24 2014 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Sep 23 07:19:24 2014 Socket Buffers: R=[8192->8192] S=[8192->8192]
Tue Sep 23 07:19:24 2014 MANAGEMENT: >STATE:1411481964,RESOLVE,,,
Tue Sep 23 07:19:24 2014 UDPv4 link local: [undef]
Tue Sep 23 07:19:24 2014 UDPv4 link remote: [AF_INET]173.55.80.151:45491
Tue Sep 23 07:19:24 2014 MANAGEMENT: >STATE:1411481964,WAIT,,,
Tue Sep 23 07:19:24 2014 MANAGEMENT: >STATE:1411481964,AUTH,,,
Tue Sep 23 07:19:24 2014 TLS: Initial packet from [AF_INET]173.55.80.151:45491, sid=7879c30e 2aa543bb
Tue Sep 23 07:19:24 2014 VERIFY OK: depth=1, C=US, ST=CA, L=Fontana, O=Home_Lan, OU=MyOrganizationalUnit, CN=Home_Lan CA, name=EasyRSA, emailAddress=xxxx@gmail.com
Tue Sep 23 07:19:24 2014 VERIFY OK: nsCertType=SERVER
Tue Sep 23 07:19:24 2014 VERIFY OK: depth=0, C=US, ST=CA, L=Fontana, O=Home_Lan, OU=MyOrganizationalUnit, CN=alarm, name=EasyRSA, emailAddress=xxxx@gmail.com
')
Here is my server config:
$this->bbcode_second_pass_code('', '
port 45491
proto udp
dev tun
ca /etc/openvpn/ca.crt
cert /etc/openvpn/server.crt
key /etc/openvpn/server.key # This file should be kept secret
dh /etc/openvpn/dh2048.pem
server 10.8.0.0 255.255.255.0
;ifconfig-pool-persist /etc/openvpn/ipp.txt
push "route 172.16.77.0 255.255.255.0"
;push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 172.16.77.61"
client-to-client
keepalive 10 120
tls-auth /etc/openvpn/ta.key 0 # This file is secret
cipher AES-128-CBC # AES
;comp-lzo
max-clients 10
user nobody
group nobody
persist-key
persist-tun
verb 3
mute 20
')
And my client config:
$this->bbcode_second_pass_code('', '
client
dev tun
proto udp
remote xxxx.xxxx.xxxx 45491
resolv-retry infinite
nobind
persist-key
persist-tun
;ca ca.crt
<ca>
...
</ca>
;cert laptop01.crt
<cert>
...
</cert>
;key laptop01.key
<key>
...
</key>
;tls-auth ta.key 1
key-direction 1
<tls-auth>
...
</tls-auth>
cipher AES-128-CBC # AES
;comp-lzo
verb 3
mute 20
')
uname output:
$this->bbcode_second_pass_code('', '
[root@alarm ~]# uname -a
Linux alarm 3.16.3-2-ARCH #1 PREEMPT Fri Sep 19 00:31:59 MDT 2014 armv5tel GNU/Linux
')
lsmod:
$this->bbcode_second_pass_code('', '
[root@alarm ~]# lsmod
Module Size Used by
sha512_generic 7825 0
sha256_generic 8657 0
blowfish_generic 3521 0
blowfish_common 6437 1 blowfish_generic
cryptodev 32811 2
uas 16036 0
mv_cesa 11011 62
tun 18218 2
ipv6 307472 36
')
I'm using AES (tried both 128 and 256), but don't see it listed in lsmod output above.
What am I missing?