Skip to content

Instantly share code, notes, and snippets.

@xv-tom-l
xv-tom-l / dns_troubleshooter.sh
Last active August 29, 2015 14:14
Shell script for troubleshooting DNS issue on Mac OS X
#!/bin/bash -e
# Troubleshooting DNS issue on Mac OS X
LOGFILE=/tmp/dns_troubleshooter_$(date +%Y-%m-%d).log
function run() {
echo "## interfaces: ifconfig -a"
ifconfig -a
echo
echo "## dns settings"
package main
import (
"crypto/tls"
"crypto/x509"
"flag"
"io/ioutil"
"log"
"net/http"
)
@xv-tom-l
xv-tom-l / uninstall.tool
Created August 25, 2015 08:22
Uninstall script for ExpressVPN Mac 4.x
#!/usr/bin/env bash
#----------------------------------------------------------------------
# Functions
#----------------------------------------------------------------------
# Exits the script with the given exit code after waiting
# for a keypress.
#
# @param [Integer] $1 exit code.
function key_exit() {
==============================================
Connecting to Hong Kong - 1, ip: XXX.XXX.XXX.XXX, protocol: tcp
Thu Oct 1 08:00:09 2015 DEPRECATED OPTION: --tls-remote, please update your configuration
Thu Oct 1 08:00:09 2015 OpenVPN 2.3.8 x86_64-apple-darwin [SSL (OpenSSL)] [LZO] [PKCS11] [MH] [IPv6] built on Aug 27 2015
Thu Oct 1 08:00:09 2015 library versions: OpenSSL 1.0.2d 9 Jul 2015, LZO 2.09
Thu Oct 1 08:00:09 2015 MANAGEMENT: TCP Socket listening on [AF_INET]XXX.XXX.XXX.XXX:1337
Thu Oct 1 08:00:09 2015 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Thu Oct 1 08:00:09 2015 Control Channel Authentication: using 'ssl/ta.key' as a OpenVPN static key file
Thu Oct 1 08:00:09 2015 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
==============================================
Connecting to USA - Los Angeles, ip: XXX.XXX.XXX.XXX, protocol: udp
Thu Oct 1 08:00:04 2015 DEPRECATED OPTION: --tls-remote, please update your configuration
Thu Oct 1 08:00:04 2015 OpenVPN 2.3.8 x86_64-apple-darwin [SSL (OpenSSL)] [LZO] [PKCS11] [MH] [IPv6] built on Aug 27 2015
Thu Oct 1 08:00:04 2015 library versions: OpenSSL 1.0.2d 9 Jul 2015, LZO 2.09
Thu Oct 1 08:00:04 2015 MANAGEMENT: TCP Socket listening on [AF_INET]XXX.XXX.XXX.XXX:1337
==============================================
Connecting to USA - Los Angeles - 3, ip: XXX.XXX.XXX.XXX, protocol: tcp
Thu Oct 1 08:22:57 2015 DEPRECATED OPTION: --tls-remote, please update your configuration
Thu Oct 1 08:22:57 2015 OpenVPN 2.3.8 x86_64-apple-darwin [SSL (OpenSSL)] [LZO] [PKCS11] [MH] [IPv6] built on Aug 27 2015
Thu Oct 1 08:22:57 2015 library versions: OpenSSL 1.0.2d 9 Jul 2015, LZO 2.09
Thu Oct 1 08:22:57 2015 MANAGEMENT: TCP Socket listening on [AF_INET]XXX.XXX.XXX.XXX:1337
==============================================
Connecting to Costa Rica, ip: XXX.XXX.XXX.XXX, protocol: tcp
Thu Oct 1 08:32:19 2015 DEPRECATED OPTION: --tls-remote, please update your configuration
Thu Oct 1 08:32:19 2015 OpenVPN 2.3.8 x86_64-apple-darwin [SSL (OpenSSL)] [LZO] [PKCS11] [MH] [IPv6] built on Aug 27 2015
Thu Oct 1 08:32:19 2015 library versions: OpenSSL 1.0.2d 9 Jul 2015, LZO 2.09
Thu Oct 1 08:32:19 2015 MANAGEMENT: TCP Socket listening on [AF_INET]XXX.XXX.XXX.XXX:1337
==============================================
Connecting to USA - Los Angeles, ip: XXX.XXX.XXX.XXX, protocol: udp
Thu Oct 1 08:07:48 2015 DEPRECATED OPTION: --tls-remote, please update your configuration
Thu Oct 1 08:07:48 2015 OpenVPN 2.3.8 x86_64-apple-darwin [SSL (OpenSSL)] [LZO] [PKCS11] [MH] [IPv6] built on Aug 27 2015
Thu Oct 1 08:07:48 2015 library versions: OpenSSL 1.0.2d 9 Jul 2015, LZO 2.09
Thu Oct 1 08:07:48 2015 MANAGEMENT: TCP Socket listening on [AF_INET]XXX.XXX.XXX.XXX:1337
==============================================
Connecting to USA - New York, ip: XXX.XXX.XXX.XXX, protocol: udp
Thu Oct 1 07:59:14 2015 DEPRECATED OPTION: --tls-remote, please update your configuration
Thu Oct 1 07:59:14 2015 OpenVPN 2.3.8 x86_64-apple-darwin [SSL (OpenSSL)] [LZO] [PKCS11] [MH] [IPv6] built on Aug 27 2015
Thu Oct 1 07:59:14 2015 library versions: OpenSSL 1.0.2d 9 Jul 2015, LZO 2.09
Thu Oct 1 07:59:14 2015 MANAGEMENT: TCP Socket listening on [AF_INET]XXX.XXX.XXX.XXX:1337
Thu Oct 1 07:59:14 2015 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
==============================================
Connecting to Australia - Melbourne, ip: XXX.XXX.XXX.XXX, protocol: udp
Thu Oct 1 10:00:11 2015 DEPRECATED OPTION: --tls-remote, please update your configuration
Thu Oct 1 10:00:11 2015 OpenVPN 2.3.8 x86_64-apple-darwin [SSL (OpenSSL)] [LZO] [PKCS11] [MH] [IPv6] built on Aug 27 2015
Thu Oct 1 10:00:11 2015 library versions: OpenSSL 1.0.2d 9 Jul 2015, LZO 2.09
Thu Oct 1 10:00:11 2015 MANAGEMENT: TCP Socket listening on [AF_INET]XXX.XXX.XXX.XXX:1337
Thu Oct 1 10:00:11 2015 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Thu Oct 1 10:00:11 2015 Control Channel Authentication: using 'ssl/ta.key' as a OpenVPN static key file