Ops

SRE, Ops

Setting up a Git HTTP server with Nginx

How to easily setup a git http server using nginx and git-smart-http
Mansoor A
Mansoor A
3 min read
Quick Notes, Ops

Blocking specific DNS queries in a VPN using iptables

A quick hack to block specific DNS queries like metadata.google.internal coming to a VPN server
Mansoor A
Mansoor A
1 min read
Quick Notes, Ops, Kubernetes

Redirect HTTP to HTTPS on EKS behind ELB without using ingress

How to properly do an http to https redirect while using an ELB for SSL termination
Mansoor A
Mansoor A
1 min read
Quick Notes, Docker, Ops

Copy files from a Docker image to the host

A quick way of copying files stored in a docker image to the host system
Mansoor A
Mansoor A
1 min read
Ops, HomePage

Using SSH tunnel to reach a database server via JumpHost

Reaching databases behind firewall can be tricky. Here I am showing how to use the jumphost to tunnel to the database server
Mansoor A
Mansoor A
1 min read
Ops, SRE

Accessing private objects from S3 or GCS using curl

Quick script to access private objects from Google Cloud Storage or Amazon S3 using the secret and key
Mansoor A
Mansoor A
1 min read
Selfhost, Ops, Linux, HomePage

Setting up Nextcloud on Ubuntu

Setting up a private NextCloud server for Contacts, Files, Calendars, Tasks and even video calling
Mansoor A
Mansoor A
8 min read
Ops

Fixing Letsencrypt renewal errors on SSL only domains

Allowing Let'sEncrypt to do the HTTP validation while enforcing HTTP to HTTPS redirection
Mansoor A
Mansoor A
1 min read
HomePage, Ops

Pritunl - Easiest way to setup OpenVPN

Setting up OpenVPN on your own server can be real pain in the a**. I know a lot of you would agree with me there. Today, I'll show you guys how to setup OpenVPN and manage users without any hiccups. I don't think this can get any easier. Enter Pritunl. You install a few packages and you're done. You have a fully functional VPN server with a web interface where you can manage your users, servers, organizations etc. What is Pritunl? Pritunl is a distributed enterprise vpn server built using the O
Mansoor A
Mansoor A
3 min read
HomePage, Ops

[SSHUTTLE] SSH tunneling made simple

Why SSH Tunnel? Consider the situation you are in a network you don't trust, like a coffee house. You never know who is snooping around the network for any kind of information they can collect. Or you are in a corporate network where the service you need is disabled in the network level, like spotify, or even steam. To make it worse, you do not have access to a VPN either. What do you do? Well, if you have an SSH account in a remote server, that could serve you well in this situation What is an
Mansoor A
Mansoor A
2 min read
HomePage, Ops, Linux

Inodes, Hard links and Soft links demystified

If you're a beginner in Linux, chances are you've come across this question yourself. What exactly is a hard link? And how the heck does it differ from a soft link ( symbolic link or symlink ). Sometimes even experienced Linux Admins have this question. Most of us know what a symlink is but gets really confused when we hear about "hard link". It's not that hard though, let me explain it for you. Before we get into knowing the difference between soft link and hard link, we have a few basic thin
Mansoor A
Mansoor A
6 min read