Results 1 to 2 of 2
(Sorry for the fuzz, but due to the 15 post limitation I cannot post any links. So I turned them into 'descriptions'.) I made a bug that is relevant to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-19-2012 #1
- Join Date
- Jun 2012
Strongswan fails while accessing /dev/urandom
I made a bug that is relevant to this post, it's known as launchpad bug 1014361. However, I'm turning to the community now, as I cannot believe that no one else has stumbled on this issue. I'm not using any wild configuration settings, it's just a regular roadwarrior setting using ikev2, tunnel (+ipcomp transport) and authentication using RSA signatures (PKI infra).
This is on an updated Ubuntu 12.04 barebones installation.
However, on the cliŽnt, when I want to start the connection, I get this:
root <at> Delta:~# ipsec up remote
initiating IKE_SA remote to 126.96.36.199
opening "/dev/urandom" failed: Permission denied
error generating nonce
tried to check-in and delete nonexisting IKE_SA
root <at> Delta:~# ls -la /dev/urandom
crw-rw-rw- 1 root root 1, 9 jun 17 17:54 /dev/urandom
root <at> delta:~# lsattr /dev/urandom
lsattr: Bewerking wordt niet ondersteund Tijdens lezen van vlaggen op /dev/urandom (-> says it is not supported)
root <at> Delta:~# ps -p 21021,22515,21020,22514 -o args,group,pgid,ppid,rgroup,ruser,tty,user,gid,rgi d,ruid,uid
COMMAND GROUP PGID PPID RGROUP RUSER TT USER GID RGID RUID UID
/usr/lib/ipsec/starter root 21020 1 root root ? root 0 0 0 0
/usr/lib/ipsec/charon --use root 21021 21020 root root ? root 0 0 0 0
/usr/lib/ipsec/starter root 22514 1 root root ? root 0 0 0 0
/usr/lib/ipsec/charon --use root 22515 22514 root root ? root 0 0 0 0
And it is no way my intention to start a flamewar, troll or something... But these settings work on a Gentoo cliŽnt. I'm one of the few lucky one's who managed to 'convert' my parents to use Linux and Ubuntu was the logical choice (introducing my parents to Gentoo's emerge, USE-flags, CFLAGS, compilation failures, ABI/API compatibility might happen in another 100 years ). It's a really simple setup. Basically it's and alternative installation CD. I simply only installed base and the user-session starts with startx. It has no networkmanager, no display manager and uses XFCE components to work. At boot it uses 93 out of 512 MB of RAM (so that is not an issue I suppose). PAM authentication works, I had to do some fiddling to authenticate the regular user with consolekit but this works now. Power events (shutdown, restart, hibernate) and USB devices (camera's, USB, mounting, umounting) all work flawlessly.
Thanks in advance for *any* suggestions
- 06-20-2012 #2
- Join Date
- Jun 2012
Disabling libcap functionality fixes the issue. Strongswan has a 'native' alternative, but I haven't tried that one yet.
Disabling it is not *such* a big deal as this Strongswan installation is a client. Thanks anyway!
Launchpad bug 1014361.