Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 10 of 10
  1. #1
    Senior Member M-H's Avatar
    Join Date
    Oct 2016
    Location
    Western Europe
    Posts
    217

    Wireguard in PCP

    Recently I experimented with wireguard, and found it to be quite simple to get woking and it is a lean VPN.
    As PCP isn't built for security , a VPN could be a safe way to connect to your PCP setup from hostile networks.

    Searching for wireguard in this and the core forums makes me believe it isn't been discussed jet.
    Has anyone tried it and can post the results,
    Or can anyone help me to get a compatible binary for PCP ?

    I do not compile myself, but there are quite a lot of supported versions already : https://www.wireguard.com/install/
    and wireguard made it into the kernel. https://itsfoss.com/linux-kernel-5-6/
    So I assume it is not impossible or extra difficult to get it working with pcp.

    Regards M-H
    Pi based multi-room audio system powered by PiCorePlayer(s):
    Pi3B with Phat-dac in a Rasptouch, 2 pi B+ with Cirrus Logic Audio Card, Pi Zero with Phat-beat , and a few other tests...

  2. #2
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,178
    Most are using openvpn.

    Wireguard is using an out of tree crypto kernel module. 5.6 is not even going to be rpi-next. Rpi is only going to 5.4 for the next release.
    Last edited by paul-; 2020-04-11 at 13:07.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  3. #3
    Senior Member M-H's Avatar
    Join Date
    Oct 2016
    Location
    Western Europe
    Posts
    217
    indeed in kernel is probably going to take quite some time, but would it be feaseble to generate a userspace version like ubuntu, andoid and windows are using now ?
    Pi based multi-room audio system powered by PiCorePlayer(s):
    Pi3B with Phat-dac in a Rasptouch, 2 pi B+ with Cirrus Logic Audio Card, Pi Zero with Phat-beat , and a few other tests...

  4. #4
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,178
    Anything is feasible

    The biggest issue is getting the modules built. Normally not a huge deal, but on the pi4, we are running a 64 bit kernel, so the modules need to be 64bit too......pCP doesn't have 64bit build tools. (I cross-compile the kernels in a 64 bit environment on my Ubuntu machine)
    Last edited by paul-; 2020-04-11 at 13:50.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  5. #5
    Senior Member M-H's Avatar
    Join Date
    Oct 2016
    Location
    Western Europe
    Posts
    217
    So would a 32 bit version be much easier to compile ?

    If I undestand correct, The modules do not need to be compiled in the kernel, and 32bit userspace programs can even run with the 64bit kernel. (https://www.wireguard.com/compilation/)
    But correct me and explain, if needed. I am not into developping software

    Anyway it is a test first of all, so if it needs to run on a pi 2 or less and proves to be functional, we can decide on improvements later on.
    In the meantime I have started a test with a regular linux distro to host a secured LMS.

    Regards M-H
    Pi based multi-room audio system powered by PiCorePlayer(s):
    Pi3B with Phat-dac in a Rasptouch, 2 pi B+ with Cirrus Logic Audio Card, Pi Zero with Phat-beat , and a few other tests...

  6. #6
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,178
    Quote Originally Posted by M-H View Post
    So would a 32 bit version be much easier to compile ?

    If I undestand correct, The modules do not need to be compiled in the kernel, and 32bit userspace programs can even run with the 64bit kernel. (https://www.wireguard.com/compilation/)
    But correct me and explain, if needed. I am not into developping software

    Anyway it is a test first of all, so if it needs to run on a pi 2 or less and proves to be functional, we can decide on improvements later on.
    In the meantime I have started a test with a regular linux distro to host a secured LMS.

    Regards M-H
    The kernel modules have to be compiled 64bit for a pi4......we don't offer a 64bit compiler on pCP.

    I'm in the process of testing kernels for the move to 5.4.y. I'll just pull the modules in-tree and build them.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  7. #7
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    2,622
    Quote Originally Posted by paul- View Post
    I'm in the process of testing kernels for the move to 5.4.y. I'll just pull the modules in-tree and build them.
    (quick bit of thread hijacking since it relates to the above I think)
    Could you look at enabling HDMI CEC as it is in Linux kernel nowadays?
    See https://forums.slimdevices.com/showt...l=1#post970826
    Paul Webster
    http://dabdig.blogspot.com
    Author of "Now Playing" plugins covering Radio France (FIP etc), KCRW, Supla Finland, ABC Australia, CBC/Radio-Canada and RTE Ireland

  8. #8
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,178
    Yes I can Paul
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  9. #9
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    2,622
    Quote Originally Posted by paul- View Post
    Yes I can Paul
    Thanks
    Paul Webster
    http://dabdig.blogspot.com
    Author of "Now Playing" plugins covering Radio France (FIP etc), KCRW, Supla Finland, ABC Australia, CBC/Radio-Canada and RTE Ireland

  10. #10
    Senior Member M-H's Avatar
    Join Date
    Oct 2016
    Location
    Western Europe
    Posts
    217

    kernel development

    Quote Originally Posted by Paul Webster View Post
    (quick bit of thread hijacking since it relates to the above I think)
    Could you look at enabling HDMI CEC as it is in Linux kernel nowadays?
    See https://forums.slimdevices.com/showt...l=1#post970826
    :-) no worries, kernel development , exploring options, etc

    Quote Originally Posted by paul- View Post
    The kernel modules have to be compiled 64bit for a pi4......we don't offer a 64bit compiler on pCP.
    I'm in the process of testing kernels for the move to 5.4.y. I'll just pull the modules in-tree and build them.
    paul- ,

    you are assuming 64 bit , but 32 bit only would suffice for a test. just to see if it can be stable with the filesystem in ram like tiny core.
    But indeed wireguard is coming to new kernels , so that is a path too.

    M-H
    Pi based multi-room audio system powered by PiCorePlayer(s):
    Pi3B with Phat-dac in a Rasptouch, 2 pi B+ with Cirrus Logic Audio Card, Pi Zero with Phat-beat , and a few other tests...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •