Tag Archives: bash

Openvpn client on embedded devices

As a kind of proof of concept I setup a Linksys router running the Openwrt firmware as a portable hardware openvpn client to connect to the AlwaysVPN service. I used the router as a wireless client, meaning I did not connect to a wired network to gain internet access. The final test was to connect [...]

Posted in Computer hardware, Computer software, HowTo | Also tagged , , , | 2 Comments

Openvpn save password without recompiling using bash

If you need a way to launch an openvpn client that uses auth-user-pass without having to recompile openvpn with –enable-password-save you could use a simple shell script.

#!/usr/bin/expect
spawn openvpn –config /etc/openvpn/configforclient.conf
expect “*Username:*”
send “userhere\r”
expect “*Password:*”
send “passhere\r”
interact

Just replace userhere and passhere with your vpn username and password. Saving your login credentials in plain text may be a security [...]

Posted in Computer software | Also tagged , , , | Leave a comment

Proxy URL response time test script

This is a bash script that uses netcat to connect to a list of URLs and sorts them in order of response time. I used it to check a list of proxy web sites but it can be used for any kind of web site.
I was not able to post the code directly without messing [...]

Posted in Computer software | Also tagged , | Leave a comment