Menu

openVPN

CarlGB
2015-02-04
2015-07-22
  • CarlGB

    CarlGB - 2015-02-04

    Hi I am looking to create a small home automation 'hub' using the raspberry pi and this looks like an ideal OS given its small footprint. I do not need a whole host of packages but I use openvpn for remote control. Is there a package availble for Moebius to install openVPN? Is it possible? Thanks

     
  • Andrea Benini

    Andrea Benini - 2015-02-04

    I'm using it in my house as well, I didn't ported openvpn yet but I didn't see strange or complex deps for it, I already have the SSL suite (openssl) and lzo doesn't seems to be to heavy to use. Give me a couple of days to figure out how I can work with it and I'll reply you again in this post if there's something you can test quickly. As you have already seen Moebius is pretty rough, you manually need to configure everything on your own, at least in this phase.

    I'll let you know

    Ben

     

    Last edit: Andrea Benini 2015-02-04
  • Andrea Benini

    Andrea Benini - 2015-02-04

    moved into Ideas

     
  • CarlGB

    CarlGB - 2015-02-04

    Thanks, if I can test anything or assist (not with coding) do let me know. It shows great potential for a building clock OS.

     
  • Andrea Benini

    Andrea Benini - 2015-02-04

    Done:)
    I guess you can sync your package repository now, I have pushed new packages to github few minutes ago.
    Just "apt-get update" and you'll receive the new package database. there're no heavy deps for it, I have created: iproute2, iptables and finally the openvpn .deb package file in a breeze.
    I didn't tested it yet and I need to carefully read how to properly configure openvpn but if you're familiar with it you can surely try it to see what happens. Let me know how it goes

    (apt-get install openvpn)

     

    Last edit: Andrea Benini 2015-02-07
  • Anonymous

    Anonymous - 2015-02-07

    I will happily give this a test today. Many thanks.

     
  • CarlGB

    CarlGB - 2015-02-08

    Is this just the openvpn client? I can't find any of the utils to build CA certificates etc. Can you tell me what this might mean

    arm-poky-linux-gnueabi-gcc: error trying to exec 'as': execvp: No such file or directory

    I tried to install a C compiler so I could try to build some bits but had little success. Is there a quick howto of what packages to install?

    One small point, I noticed that sftp-server isn't installed by default so you can not get or put any files without it. Would have expected that to be in the base build ;-)

    Thanks for your help.

     
  • Andrea Benini

    Andrea Benini - 2015-02-09

    The package is the openvpn client only. there's nothing (yet) for the server side.
    Packages as you may see are a little bit rude and minimal, few deps but a little bit more work to have them ready for work. binutils and gcc/g++ are not just a single package but a collection of them, here's what I have installed to have it ready for my machines (from a minimal image):
    binutils 2.24-r0 GNU binary utilities
    ca-certificates 20141126-r0 Common CA certificates
    cpp 4.8.2-r0 GNU cc and gcc C compilers
    cpp-symlinks 4.8.2-r0 GNU cc and gcc C compilers
    g++ 4.8.2-r0 GNU cc and gcc C compilers
    g++-symlinks 4.8.2-r0 GNU cc and gcc C compilers
    gcc-symlinks 4.8.2-r0 GNU cc and gcc C compilers
    gcc 4.8.2-r0 GNU cc and gcc C compilers
    libc6 2.19-r0 Embedded GLIBC (GNU C Library)
    libc6-dev 2.19-r0 Embedded GLIBC (GNU C Library) - Development files
    libgcc-s-dev 4.8.2-r0 GNU cc and gcc C compilers - Development files
    libgcc1 4.8.2-r0 GNU cc and gcc C compilers
    libmpc3 1.0.2-r0 C library for complex number arithmetic with arbitrary precision and correct libmpfr4 3.1.2-r0 C library for multiple-precision floating-point computations with exact rounding
    libstdc++-dev 4.8.2-r0 GNU cc and gcc C compilers
    libstdc++-staticdev 4.8.2-r0 GNU cc and gcc C compilers
    libstdc++6 4.8.2-r0 GNU cc and gcc C compilers
    libthread-db1 2.19-r0 Embedded GLIBC (GNU C Library)

    this produces a complete ANSI C and C++ environment, this is what I have in one of my test machines. "as" is inside binutils.
    I will release a quick howto for GCC as well as a new feature: "containers". Containers are a bunch of packages and some scripting to have things done quickly. I borrowed this concept from gentoo ebuilds (much like a makefile with steroids).

    sftp is not installed by default, as you may see I'm using dropbear, that's because is less memory hungry of openssh but has few limitations. To solve your problem you can install openssh (available as a package) and replace dropbear, or use just a little trick: install openssh-sftp-server (only this package) on top of dropbear. Even if is a part of openssh you may add this functionality to dropbear without installing or using openssh at all. I prefer to keep dropbear and use sftp-server when needed (I usually mount my raspi locally with sshfs)

    Hope it helps
    Ben

     
  • CarlGB

    CarlGB - 2015-02-09

    I am sorry about the confusion with openVPN. I was trying to install a server openvpn so that people could run an etremely lightweight VPN server at home for connecting securely over 'coffee-shop' wifi.

    Thanks for the package list, I will try that. The bundles idea sounds perfect.

    Great work, yet again, thanks.

     
  • Webanck

    Webanck - 2015-02-19

    Hi, I just tried OpenVPN on your fresh Moebius new version.
    Very fast to install btw, congrats!

    I thought the package was designed for server version too but had some problems to launch it with settings working on Moebius 1.x.
    I better understand why now.

    Do you plan to make a server package?
    In fact I never thought about OpenVPN as a client only ;(.

     
  • Anonymous

    Anonymous - 2015-02-21

    Server package would be great, you can pickup up the old B+ boards under £20 now and they would make an excellent home VPN server for when you're out on scarily unsecure open wifi :-) Great work all the same, I believe this distro has some great potential.
    Carl

     
  • Anonymous

    Anonymous - 2015-02-22

    To try to help out, do you start off with a deb package?
    ~CarlGB

     
  • Andrea Benini

    Andrea Benini - 2015-02-23

    No, not yet. I'm focused on containers for installing a bunch of packages and enable a certain functionality in one shot. Carl and Webanck ideas are interesting but I didn't started with this package yet.
    I'm now fixing small troubles with php and python packages.

     
  • Webanck

    Webanck - 2015-03-07

    Thanks, keep us in touch, good work!

     
  • Andrea Benini

    Andrea Benini - 2015-03-07

    I have added some interesting packages now: strongswan (ipsec), openvpn (still client side yet), tcpdump, stunnel and few more related to networking and security.
    On the development side C and C++ are ready, as well as php, python (2.7 and 3.x) and few interesting services (for me): nginx, postgresql, mysql, samba, torrent and so on.
    Get an update and you'll see them, ideas on new pkgs are well accepted.
    Cheers
    Ben

     
  • CarlGB

    CarlGB - 2015-07-22

    OpenVPN server would be a preference for me as you asked for package ideas :-)

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB