Test network speed with iperf

Iperf is a client server program that you run it in server mode at one end and connect to its from another computer on the other side of the network.

One both machines run:

sudo apt-get install iperf

We’ll start an iperf server on one of the machines:

iperf -s

And then on the other computer, tell iperf to connect as a client:

iperf -c <ip or hostname> 

Source: http://askubuntu.com/questions/7976/how-do-you-test-the-network-speed-betwen-two-boxes

Read More

HTTPS with Let’s encrypt & Nginx

sudo apt-get -y install git bc
sudo git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt
sudo service nginx stop
cd /opt/letsencrypt
./letsencrypt-auto certonly --standalone
sudo ls /etc/letsencrypt/live/your_domain_name

Add to nginx config

listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;

Add block to redirect http -> https

server {
listen 80;
server_name example.com;
return 301 https://$host$request_uri;

Source https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-14-04

Read More