Recently I had to secure one of my docker setups running in a virtual machine so that only specific ports (or docker containers) are accessible via a specific set of IP addresses on the network. Now, this seems to be a simple task, and mind you it is, but not if you aren’t well versed with iptables and how docker configures it for its network. Since I was unable to find any tutorial for this particular requirement I decided to write one.

Disclaimer: I’m quite new to the networking world of Linux and iptables in general, please let me know…


I was working on a frontend project which had lots of contributors and coding style was misplaced somewhere along the way. This meant different developers writing different patterns. As the project grew and different JavaScript files exposed different classes and modules (not using module exports :( just to be clear) it became difficult to identify which file was dependent on the other. This meant that debugging and fixing code smell was challenging. Not to mention the circular dependency hell. Just like with a gun I needed a scope to better aim at bugs.

Here is a markdown version of this…

Divya Mamgai

Full Stack Software Engineer at | Software Developer by day, Gamer by night 👨‍💻 🎮

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store