Iptables config for mapping an OpenVPN IP address to a physical machine address.

This iptables config will map the 10.8.0.0 IP address to the 54.66.223.254 IP address range to enable the OpenVPN deamon to function. This is what I used when I was using OpenVPN to connect securely to a remote Amazon instance for access to a Linux virtual machine. # Generated by iptables-save v1.4.21 on Sun Feb … Read more

Set or change a passphrase for an OpenVPN server key.

This command will set a passphrase for the server pem file for OpenVPN on Linux. I setup a VPN configuration on Ubuntu and forgot to set the passphrase. This is how I managed to set one. ubuntu@ip-172-31-13-140:~$ sudo openssl rsa -des3 -in server-key.pem -out server2.pem Enter pass phrase for server-key.pem: writing RSA key Enter PEM … Read more

How to create keys with easy-rsa without a password prompt.

To create a new set of keys for OpenVPN using Easy-RSA, we firstly need to clean our environment and get ready for the build. $ ./easyrsa init-pki$ ./easyrsa init-pki Now we need to build the certificate authority. $ ./easyrsa build-ca nopass   Note: using Easy-RSA configuration from: ./vars Generating a 2048 bit RSA private key … Read more

Using apt-get over a proxied Internet connection. This is easy.

How to use the Debian apt command over the Internet through a TAFE proxy. If you wish to use the apt-get command on Linux and you are behind a proxy, such as the one that TAFE colleges use, then this simple tweak will take care of this issue. Use the sudo touch /etc/apt/apt.conf command to … Read more