Using OpenVPN with cryptodev on Pogo V4 (Mobile)

Ask questions about Arch Linux ARM. Please search before making a new topic.

Re: Using OpenVPN with cryptodev on Pogo V4 (Mobile)

Postby nwestfal » Fri Sep 26, 2014 2:17 pm

@Socaltom,

New dependency? I see that I too have cryptsetup installed.

When I tested between two pogo devices with cryptodev, it seemed to work, but not with Windows or other Linux clients not using cryptodev. How are you using it?

Do you happen to know which version of openssl-cryptodev you were using when it was still working for you?

Although I'm guessing the problem would be in the current cryptodev kernel module rather than userland utilties.
-Neal
nwestfal
 
Posts: 30
Joined: Wed Sep 03, 2014 11:24 pm

Re: Using OpenVPN with cryptodev on Pogo V4 (Mobile)

Postby WarheadsSE » Fri Sep 26, 2014 2:20 pm

$this->bbcode_second_pass_quote('', 'W')hen I tested between two pogo devices with cryptodev, it seemed to work, but not with Windows or other Linux clients not using cryptodev. How are you using it?


Sounds like the two pogos have the same inherent flaw, thus are compatible.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Using OpenVPN with cryptodev on Pogo V4 (Mobile)

Postby Socaltom » Fri Sep 26, 2014 2:55 pm

$this->bbcode_second_pass_quote('nwestfal', '@')Socaltom,

New dependency? I see that I too have cryptsetup installed.

When I tested between two pogo devices with cryptodev, it seemed to work, but not with Windows or other Linux clients not using cryptodev. How are you using it?

Do you happen to know which version of openssl-cryptodev you were using when it was still working for you?

Although I'm guessing the problem would be in the current cryptodev kernel module rather than userland utilties.


I was using version openssl-crytodev-1.0.1.i-1-arm

I could connect to my openvpn server ( NAS-325) from a windows 7 client just fine, but I couldn't SSH in. The logs were full of encryption errors. It appears that cryptodev has been pulled from the repos. Prior to my upgrade it was working just fine.
Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: Using OpenVPN with cryptodev on Pogo V4 (Mobile)

Postby nwestfal » Fri Sep 26, 2014 3:34 pm

cryptodev module is part of linux-kirkwood:

$this->bbcode_second_pass_code('', '
[root@Anduin extra]# uname -a
Linux Anduin 3.16.3-2-ARCH #1 PREEMPT Fri Sep 19 00:31:59 MDT 2014 armv5tel GNU/Linux
[root@Anduin extra]# pwd
/usr/lib/modules/3.16.3-2-ARCH/extra
[root@Anduin extra]# ls -l
total 56
-rw-r--r-- 1 root root 50354 Sep 18 23:34 cryptodev.ko
[root@Anduin extra]# file cryptodev.ko
cryptodev.ko: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), BuildID[sha1]=88a056319da27626743c1baedaad8cefd8398523, not stripped
[root@Anduin extra]# pacman -Q linux-kirkwood --list | grep cryptodev
linux-kirkwood /usr/lib/modules/3.16.3-2-ARCH/extra/cryptodev.ko
[root@Anduin extra]#
')
-Neal
nwestfal
 
Posts: 30
Joined: Wed Sep 03, 2014 11:24 pm

Re: Using OpenVPN with cryptodev on Pogo V4 (Mobile)

Postby Socaltom » Fri Sep 26, 2014 4:06 pm

So does that mean it uses it by default?
Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: Using OpenVPN with cryptodev on Pogo V4 (Mobile)

Postby nwestfal » Fri Sep 26, 2014 5:27 pm

No, I do believe you still have to explicitly load it with modprobe or automatically at boot with appropriate file placed in /etc/modules-load.d/

E.g. these are the instructions I used when I was trying to get it to work:

$this->bbcode_second_pass_code('', '
pacman -Syyu
pacman -S openssl-cryptodev
echo 'KERNEL=="crypto", MODE="0666"' > /etc/udev/rules.d/99-cryptodev.rules
# Load the kernel module manually after each new boot:
modprobe cryptodev
# or let systemd load it automatically on boot
echo "cryptodev" > /etc/modules-load.d/cryptodev.conf
')

(from viewtopic.php?f=30&t=2452)
-Neal
nwestfal
 
Posts: 30
Joined: Wed Sep 03, 2014 11:24 pm

Re: Using OpenVPN with cryptodev on Pogo V4 (Mobile)

Postby sputnik » Fri Sep 26, 2014 8:17 pm

I too have been having trouble recently with cryptodev and openvpn. Also with prosody, hmm, something else too. Openvpn will not start, Pidgin will not connect to my prosody server.
It is a problem with kernels > 3.16. I have a 3.15.8 archlinuxarm kernel still and it works fine with that.
Moonman has recently filed a bug on the cryptodev github site. I followed the chain of that conversation, made the patches, still I find the same problem.
This occurred as I was switching from non-fdt kernels to fdt and it really hurt my brain :D But no, it's only the version that counts. Using Bodhi's new uboot(Thanks for the great work Bodhi! not just the uboot). Ahem, not archlinuxarm.
For now I've removed the cryptodev module from loading, guess we are going to have to file a bug.
Regarding Bodhi's warning about possible data corruption, I had problems back in May, filed a bug at the cryptodev github site, Nikos is quite a helpful fellow and I believe the issues folks are having are due to the foot-dragging by the openssl team in replacing the eng_cryptodev.c file, supplied by the cryptodev team to them. They have repeatedly told them it is out of date, have given them a new file, still we get the same faulty file. I also wrote to the openssl mailing list and commented on it.
Replacing that file and recompiling openssl fixed all of my problems until now.
sputnik
 
Posts: 14
Joined: Mon Jan 16, 2012 6:50 pm

Re: Using OpenVPN with cryptodev on Pogo V4 (Mobile)

Postby sputnik » Thu Oct 09, 2014 6:56 am

Tentatively speaking, all seems back to normal with the 3.17.0 kernel. Openvpn and prosody seem fine with cryptodev installed.
sputnik
 
Posts: 14
Joined: Mon Jan 16, 2012 6:50 pm

Re: Using OpenVPN with cryptodev on Pogo V4 (Mobile)

Postby moonman » Fri Oct 10, 2014 12:55 am

Have you tried 3.16.4 ? Is it still buggy on that one? (Linux-kirkwood)
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Using OpenVPN with cryptodev on Pogo V4 (Mobile)

Postby sputnik » Fri Nov 28, 2014 6:33 pm

Sorry for the delay moonman, wasn't following.
No, if it works, don't fix it, haven't tried regressing to the 3.16 series, why? All fine now, a couple of months on the 3.17 series.
sputnik
 
Posts: 14
Joined: Mon Jan 16, 2012 6:50 pm

PreviousNext

Return to User Questions

Who is online

Users browsing this forum: No registered users and 36 guests