Skip to content

Instantly share code, notes, and snippets.

@youribonnaffe
Last active July 19, 2022 10:14
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save youribonnaffe/5f36da98fa66e9328f78 to your computer and use it in GitHub Desktop.
netExtender Ubuntu 14.04 Install and run as a service
# Install
Get the archive from http://ainola.sdf.org/NetExtender.Linux.8.0.784.x86_64.tgz
Run ./install as root (otherwise it got stuck on Connecting ... for me)
# netextender.conf (upstart job)
description "netExtender VPN client"
start on runlevel [2345]
console log
chdir /tmp
exec bash /usr/local/bin/netExtender.sh
# netExtender.sh (bash script to keep it reconnecting)
export HOME=/tmp # looks like this thing needs a home folder defined otherwise it segfaults
while true
do
# we need to pipe Y to pass the certificate warning
echo "Y" | netExtender -u USERNAME -p WE_LIKE_CLEAR_TEXT_PASSWORD -d DOMAIN VPN_IP
done
@glococo
Copy link

glococo commented May 13, 2021

Hi budy,
I found google an undocumented switch "--always-trust" that still works.

Have you done this script for Ubuntu 18 onward ?

@youribonnaffe
Copy link
Author

Sorry, I've only used it on Ubuntu 14.04

@glococo
Copy link

glococo commented May 14, 2021

I written an updated version https://gitlab.com/-/snippets/2120508

@crichardson9
Copy link

I written an updated version https://gitlab.com/-/snippets/2120508

Thanks - worked for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment