Array Networks MotionPro Linux client on Ubuntu 22.04 in container served as ssh proxy.
255
This image installs Array Networks MotionPro Linux client on Ubuntu 22.04 and enables OpenSSH access (optionally with root login) for convenience when running as a container.
Basic run (SSH on 22, random root password generated and printed in logs):
docker run -d --name motionpro --privileged --cap-add=NET_ADMIN -p 2222:22 strawhatboy/motionpro-vpn-client:0.0.1
Then you will be able to use this container as an ssh proxy for the VPN.
Why --privileged? Some VPN operations require elevated kernel capabilities beyond NET_ADMIN alone (e.g., TUN/TAP handling, iptables/routing, device nodes). Using --privileged ensures MotionPro can establish the tunnel reliably. Consider the security implications and restrict use to trusted environments.
Customize SSH behavior with environment variables:
Note: Root login is enabled inside this container for convenience (PermitRootLogin=yes). Prefer key-based auth for security-sensitive use.
Set these environment variables to have the container start the MotionPro VPN via vpn_cmdline.sh:
Example:
docker run -d --name motionpro \
--privileged --cap-add=NET_ADMIN \
-e VPN_HOST='vpn.example.com' \
-e VPN_USER='alice' \
-e VPN_PASS='s3cret' \
-p 2222:22 strawhatboy/motionpro-vpn-client:0.0.1
When VPN_* variables are set, the entrypoint will cd to /opt/MotionPro and run:
./vpn_cmdline.sh -h $VPN_HOST -u $VPN_USER -p $VPN_PASS -q
Logs:
docker exec motionpro tail -n 200 /var/log/motionpro_vpn.log
If VPN_* variables are not provided, the entrypoint will still start /usr/bin/vpnd and log to /var/log/vpnd.log. When VPN_* are present, it starts vpnd then runs vpn_cmdline.sh.
Examples:
docker run -d --name motionpro \
--privileged --cap-add=NET_ADMIN \
-e PASSWORD_AUTH=no \
-e AUTHORIZED_KEYS="$(cat ~/.ssh/id_rsa.pub)" \
-p 2222:22 strawhatboy/motionpro-vpn-client:0.0.1
docker run -d --name motionpro \
--privileged --cap-add=NET_ADMIN \
-e ROOT_PASSWORD='changeme' \
-e SSH_PORT=2222 \
-p 2222:2222 strawhatboy/motionpro-vpn-client:0.0.1
-p HOSTPORT:22.Content type
Image
Digest
sha256:1ec02e755…
Size
192.5 MB
Last updated
10 months ago
docker pull strawhatboy/motionpro-vpn-client:0.0.1