Reverse SSH tunnel

Access Linux SSH server behind NAT via reverse SSH tunnel on relay server http://xmodulo.com/access-linux-server-behind-nat-reverse-ssh-tunnel.html https://www.everythingcli.org/ssh-tunnelling-for-fun-and-profit-autossh/ http://logan.tw/posts/2015/11/15/autossh-and-systemd-service/ • You have your Linux server running at home behind a NAT router without public IP address. • You want to SSH to the home server from outside Internet. • SSH port forwarding is not an option in this … Read more

VPNSecure.me via OpenVPN

Privacy using OpenVPN and service VPNSecure.me Let’s poke one’s prying eyes on your Internet traffic and setup VPN client to connect whole your home network (LAN) to Virtual Private Network using VPNSecure.me provider. Install OpenVPN on your favorite distribution: apt-get install openvpn Generate OpenVPN client configs and OpenVPN keys for your VPNsecure.me account: VPNSecure.me Profile … Read more

Automounting NFS network shares

Automounting network shares when they are accessed or removable media when they are inserted. As I like NFS, this is my preffered solution, better then my old article using fstab. Sources Arch Linux Red Hat Server World Installation aptitude -y install autofs Configuration AutoFS uses template files for configuration which are located in /etc/autofs. The … Read more

Postfix SPF, DKIM and DMARC on Debian

Explanation of terms. SPF (Sender Policy Framework) is a DNS text entry which shows a list of servers that should be considered allowed to send mail for a specific domain. DKIM (DomainKeys Identified Mail) should be instead considered a method to verify that the messages’ content are trustworthy, meaning that they weren’t changed from the … Read more

Raspberry Pi as WiFi Hotspot

MINImal raspBIAN image for Raspberry Pi (Minibian) What you need Minibian (Debian Jessie 8) 2016-03-12 Dnsmasq as DNS and DHCP server (already running in my network) Raspberry Pi Model B (Rev 1.0, 256Mb) 5V 2A microUSB power adapter 8GB microSD card Ethernet cable Edimax EW-7811Un N150 Wireless USB Adapter Nano (RTL8192CU chipset) Download and copy … Read more

OwnCloud Let’s Encrypt certificate renewal

I use OwnCloud with Let’s Encrypt certificate and recently I received error message below from my ctrontab command: ./letsencrypt-auto renew All renewal attempts failed. The following certs could not be renewed: /etc/letsencrypt/live/cloud.eu/fullchain.pem (failure) 1 renew failure(s), 0 parse failure(s) WARNING: certbot.renewal:Attempting to renew cert from /etc/letsencrypt/renewal/cloud.conf produced an unexpected error: At least one of the … Read more

Let’s Encrypt with Apache on Ubuntu

Clone the Let’s Encrypt repository sudo git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt Access the letsencrypt directory cd /opt/letsencrypt Auto install all dependencies sudo -i ./letsencrypt-auto Generate certificates for your domains Execute the interactive installation and obtain a certificate for each domain. ./letsencrypt-auto certonly –webroot -w /var/www/faix/wordpress/ -d faix.cz -d www.faix.cz ./letsencrypt-auto certonly –webroot -w /var/www/zviretnik/wordpress/ -d zviretnik.eu … Read more

merge multiple JPG to PDF

Have you ever wated to create PDF file from multiple JPG images from Linux command line? It is simple, just type: convert `ls -v *.JPG` output.pdf The convert command is part of imagemagick package. In Debian / Ubuntu / Mint you can install it via command: apt-get install imagemagic

Ntopng on Debian

Here is description how to install Ntopng on Debian. “ntopng” is an open-source network traffic monitor that shows the network usage, the next generation version of the original ntop. NEW ntopng v2.4.1 ntopNG Debian repository. Debian 7 (wheezy) wget http://apt-stable.ntop.org/wheezy/all/apt-ntop-stable.deb dpkg -i apt-ntop-stable.deb grep -q "wheezy-backports" /etc/apt/sources.list || echo "deb http://ftp.debian.org/debian wheezy-backports main" >> /etc/apt/sources.list … Read more