VPN Client on Legato

Hello everyone,

I have a question. It is possible to run VPN Client on legato?
For a project, I need a VPN connection from MangoH or FX30 to VPN server!

It should definitely be possible, but I havenā€™t done it yet myself. You will probably have to build the VPN client to deploy onto the device. Do you know which type of VPN server you want to connect to? Also, do you know which network interface you want to connect to the VPN over?

Try FastestVPN it works very well on all platforms, I have been using it for last 1 year it works very well, they have also 7 days money back policy so you must give it a try.

yes it is, we have added openvpn and strongswan from standard bitbake recipes, they both buiild and work fine.

@russelgill. Thatā€™s a specific VPN provider. This question relates more to VPN technology. As @dingo mentioned, the best way to achieve this is by modifying the yocto build to include openvpn or strongswan.

i could and should write something that can be added / shared as a howto

Dear @dingo. Any chance you got round to do this howto?

you trying to do openvpn or wireguard on it ? theres bitbake recipes for both now

Thanks mate. But weā€™re talking about an absolute noob here.
So, I was really hoping that you had made something.

do you simply need an image? with openvpn on it ?

Hi again @dingo, right now that would be just great.

At some point, Iā€™m sure I will need to build the image myself, but an image would definitely speed up my proof of concept significantly.

Do you have one that you can share?

mango red or green ?

mangOH Green or FX30

Hi, guys I recently read a complete review of Tiger VPN. The price its offering is far better than other VPN providers. Check it out and tell me what your stance on Tiger VPN is it good for Legato.

Get CASVPN the best VPN for Streaming in and make your connection secure. CASVPN provides its services in more then 57 countries.

1 Like

@dingo would you have anything to share on how to integrate a vpn client layer on the swi-linux image? that would be very much appreciated.

  1. download the yocto source and go to ./meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image.inc

2.add the following line:
IMAGE_INSTALL_append = " openvpn"

  1. Make the yocto image and download to the module

Oh, I know this service. It is very good though. Ty for the tip.

Hi,

IMAGE_INSTALL_append_pn-mdm9x28-image-minimal = " openvpn cronie lighttpd sqlite3 php-cgi" is added in /conf/local.conf file in yocto build_bin folder.

I am trying to add openvpn with some other receipes to build linux (SWI9X07Y_02.37.10.02 from release 16.3) image for wp7608 but I am getting error.

DEBUG: Executing python function sstate_task_prefunc
DEBUG: Python function sstate_task_prefunc finished
DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are [ā€˜/mnt/HP120GB/R163/yocto/poky/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysrootā€™, ā€˜virtual:native:/mnt/HP120GB/R163/yocto/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysrootā€™, ā€˜virtual:native:/mnt/HP120GB/R163/yocto/meta-openembedded/meta-oe/recipes-crypto/cryptsetup/cryptsetup_1.7.4.bb:do_populate_sysrootā€™, ā€˜virtual:native:/mnt/HP120GB/R163/yocto/poky/meta/recipes-extended/pigz/pigz_2.4.bb:do_populate_sysrootā€™, ā€˜virtual:native:/mnt/HP120GB/R163/yocto/poky/meta/recipes-extended/libarchive/libarchive_3.3.2.bb:do_populate_sysrootā€™, ā€˜virtual:native:/mnt/HP120GB/R163/yocto/poky/meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb:do_populate_sysrootā€™, ā€˜/mnt/HP120GB/R163/yocto/poky/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysrootā€™, ā€˜virtual:native:/mnt/HP120GB/R163/yocto/poky/meta/recipes-devtools/prelink/prelink_git.bb:do_populate_sysrootā€™, ā€˜/mnt/HP120GB/R163/yocto/poky/meta/recipes-devtools/mklibs/mklibs-native_0.1.43.bb:do_populate_sysrootā€™, ā€˜virtual:native:/mnt/HP120GB/R163/yocto/poky/meta/recipes-devtools/opkg/opkg_0.3.6.bb:do_populate_sysrootā€™, ā€˜virtual:native:/mnt/HP120GB/R163/yocto/poky/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb:do_populate_sysrootā€™, ā€˜virtual:native:/mnt/HP120GB/R163/yocto/poky/meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb:do_populate_sysrootā€™, ā€˜virtual:native:/mnt/HP120GB/R163/yocto/poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.6.bb:do_populate_sysrootā€™, ā€˜virtual:native:/mnt/HP120GB/R163/yocto/meta-swi/common/recipes-core/cwetool/cwetool_git.bb:do_populate_sysrootā€™, ā€˜virtual:native:/mnt/HP120GB/R163/yocto/meta-swi/common/recipes-security/ima-evm-utils/ima-evm-utils_1.1.bb:do_populate_sysrootā€™, ā€˜/mnt/HP120GB/R163/yocto/meta-swi/meta-swi-mdm9xxx/recipes-bsp/lk/lk_1.3.0.bb:do_populate_sysrootā€™, ā€˜virtual:native:/mnt/HP120GB/R163/yocto/poky/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysrootā€™, ā€˜/mnt/HP120GB/R163/yocto/poky/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysrootā€™, ā€˜/mnt/HP120GB/R163/yocto/meta-swi/meta-swi-mdm9xxx/recipes-bsp/android-signing/android-signing-native.bb:do_populate_sysrootā€™, ā€˜virtual:native:/mnt/HP120GB/R163/yocto/poky/meta/recipes-devtools/mtd/mtd-utils_git.bb:do_populate_sysrootā€™]
NOTE: Installed into sysroot:
NOTE: Skipping as already exists in sysroot: [ā€˜depmodwrapper-crossā€™, ā€˜pseudo-nativeā€™, ā€˜cryptsetup-nativeā€™, ā€˜pigz-nativeā€™, ā€˜libarchive-nativeā€™, ā€˜pbzip2-nativeā€™, ā€˜qemuwrapper-crossā€™, ā€˜prelink-nativeā€™, ā€˜mklibs-nativeā€™, ā€˜opkg-nativeā€™, ā€˜update-rc.d-nativeā€™, ā€˜squashfs-tools-nativeā€™, ā€˜opkg-utils-nativeā€™, ā€˜cwetool-nativeā€™, ā€˜ima-evm-utils-nativeā€™, ā€˜lkā€™, ā€˜makedevs-nativeā€™, ā€˜ldconfig-nativeā€™, ā€˜android-signing-nativeā€™, ā€˜mtd-utils-nativeā€™, ā€˜xz-nativeā€™, ā€˜qemu-nativeā€™, ā€˜zlib-nativeā€™, ā€˜quilt-nativeā€™, ā€˜kmod-nativeā€™, ā€˜bzip2-nativeā€™, ā€˜gnu-config-nativeā€™, ā€˜automake-nativeā€™, ā€˜autoconf-nativeā€™, ā€˜pkgconfig-nativeā€™, ā€˜libtool-nativeā€™, ā€˜libsolv-nativeā€™, ā€˜shadow-nativeā€™, ā€˜attr-nativeā€™, ā€˜keyutils-nativeā€™, ā€˜openssl-nativeā€™, ā€˜gettext-minimal-nativeā€™, ā€˜glibcā€™, ā€˜gcc-runtimeā€™, ā€˜popt-nativeā€™, ā€˜libdevmapper-nativeā€™, ā€˜util-linux-nativeā€™, ā€˜libgcrypt-nativeā€™, ā€˜lzo-nativeā€™, ā€˜e2fsprogs-nativeā€™, ā€˜debianutils-nativeā€™, ā€˜elfutils-nativeā€™, ā€˜binutils-nativeā€™, ā€˜lz4-nativeā€™, ā€˜acl-nativeā€™, ā€˜alsa-lib-nativeā€™, ā€˜pixman-nativeā€™, ā€˜dtc-nativeā€™, ā€˜glib-2.0-nativeā€™, ā€˜libsdl-nativeā€™, ā€˜python3-nativeā€™, ā€˜gtk-doc-nativeā€™, ā€˜texinfo-dummy-nativeā€™, ā€˜m4-nativeā€™, ā€˜ninja-nativeā€™, ā€˜cmake-nativeā€™, ā€˜expat-nativeā€™, ā€˜rpm-nativeā€™, ā€˜linux-libc-headersā€™, ā€˜libgccā€™, ā€˜autoconf-archive-nativeā€™, ā€˜ncurses-nativeā€™, ā€˜libgpg-error-nativeā€™, ā€˜libcap-nativeā€™, ā€˜bison-nativeā€™, ā€˜flex-nativeā€™, ā€˜libpng-nativeā€™, ā€˜util-macros-nativeā€™, ā€˜libpcre-nativeā€™, ā€˜libffi-nativeā€™, ā€˜libx11-nativeā€™, ā€˜libxrandr-nativeā€™, ā€˜libxrender-nativeā€™, ā€˜libxext-nativeā€™, ā€˜sqlite3-nativeā€™, ā€˜readline-nativeā€™, ā€˜gdbm-nativeā€™, ā€˜re2c-nativeā€™, ā€˜curl-nativeā€™, ā€˜db-nativeā€™, ā€˜file-nativeā€™, ā€˜dbus-nativeā€™, ā€˜nss-nativeā€™, ā€˜gperf-nativeā€™, ā€˜xextproto-nativeā€™, ā€˜xproto-nativeā€™, ā€˜xtrans-nativeā€™, ā€˜kbproto-nativeā€™, ā€˜inputproto-nativeā€™, ā€˜libxcb-nativeā€™, ā€˜randrproto-nativeā€™, ā€˜renderproto-nativeā€™, ā€˜nspr-nativeā€™, ā€˜libpthread-stubs-nativeā€™, ā€˜libxau-nativeā€™, ā€˜libxdmcp-nativeā€™, ā€˜xcb-proto-nativeā€™]
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing python function do_image_complete
NOTE: Executing write_deploy_manifest ā€¦
DEBUG: Executing python function write_deploy_manifest
DEBUG: Python function write_deploy_manifest finished
DEBUG: Python function do_image_complete finished
DEBUG: Executing shell function prepare_ubi
ubinize: error!: cannot stat ā€œ/mnt/HP120GB/R163/yocto/build_bin/tmp/work/swi_mdm9x28_wp-poky-linux-gnueabi/mdm9x28-image-minimal/1.0-r0.0/deploy-mdm9x28-image-minimal-image-complete/mdm9x28-image-minimal-swi-mdm9x28-wp-20230313050719.rootfs.2k.ubifsā€ referred from section ā€œsysfs_volumeā€
error 2 (No such file or directory)
WARNING: /mnt/HP120GB/R163/yocto/build_bin/tmp/work/swi_mdm9x28_wp-poky-linux-gnueabi/mdm9x28-image-minimal/1.0-r0.0/temp/run.prepare_ubi.7911:1 exit 255 from ā€˜/mnt/HP120GB/R163/yocto/build_bin/tmp/work/swi_mdm9x28_wp-poky-linux-gnueabi/mdm9x28-image-minimal/1.0-r0.0/recipe-sysroot-native/usr/sbin/ubinize -o $ubi_path $ubinize_args $ubinize_cfgā€™
ERROR: Function failed: prepare_ubi (log file is located at /mnt/HP120GB/R163/yocto/build_bin/tmp/work/swi_mdm9x28_wp-poky-linux-gnueabi/mdm9x28-image-minimal/1.0-r0.0/temp/log.do_image_complete.7911)

how about just adding this?

IMAGE_INSTALL_append = " openvpn"