Linux Stuff

Linux Entropy – Usefull For Your Mail Server

List available entropy If you are not sure, whether you need haveged, run: # cat /proc/sys/kernel/random/entropy_avail This command shows you how much entropy your server has collected. If it is rather low (<1000), you should probably install haveged Resources:  

How To Route SSL Traffic With Nginx

This is the code in /etc/nginx/conf.d/default.conf: server { listen 443; ssl on; server_name; ssl_certificate /var/lib/lxc/lxc_container/rootfs/etc/apache2/cert.crt; ssl_certificate_key /var/lib/lxc/lxc_container/rootfs/etc/apache2/cert.key; location / { proxy_pass; proxy_set_header X-Forwarded-Proto https; add_header Front-End-Https on; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_buffering off; proxy_redirect off; } } Note: nginx (on the main host) is using same ssl certificate as … Read more

How To Setup OpenVPN In Ubuntu14.04 LXC Behind Nginx Reverse Proxy With Squid Proxy Used As AdBlocker

The objective for today is: Setup OpenVPN in lxc in Ubuntu 14.04 Setup Squid Setup Nginx Reverse Proxy Block Ads With Squid This is not a step–by-step tutorial but an article full of detailed notes ad resources for the steps I’ve made to get this job done. So I’ve started from here: system Ubuntu 14.04 … Read more

Install OpenVpn On Your VPS Box In 5 Minutes

Just use this script: wget chmod +x   Generate your openvpn certs buy running again ./ Send them via email with mutt (not to safe but convenient). Install your openvpn clients.