Hybrid Cloud: A Lab Concept for a Simple AWS ↔ On Premise Bridge

Most tutorials assume you’ll expose services from your premise through a public static IP. But that’s risky: small connections are easy to DDoS and lack redundancy.Instead of publishing my on-premise LAN directly, I decided to operate public IPs from AWS and route the traffic through a site-to-site VPN back to my own infrastructure. As a …

Today I Learned: How to open etcd ports on Firewalld

Today I learned how to properly open etcd ports using firewalld. Here’s a quick guide: FirewallD has a couple of predefined services with various ports. Find available services on FirewallD: You’ll find two services: etcd-client (port 2379/tcp) and etcd-server (port 2380/tcp). Identify Active Firewall Zones: Example output: Add these 2 services to your zone: P.S. …

Today I learned: How to forward a port using ufw

For forwarding a port using ufw it’s necessary to operate on iptables rules defined in /etc/ufw/before.rules Add the following rules to before.rules -A POSTROUTING ! -o lo -j MASQUERADE allows the traffic to be discerned as though not originating from a nat. ! -o lo prevents the lo interface to be masqueraded and break DNS …

Today I learned: Fedora and HAProxy SELinux

I encountered a problem with HAProxy and SELinux. It seemed like the server wasn’t found and I was getting 503. On inspecting SELinux logs I realized certain changes must be made when working on a SELinux environment. I had no issues on other systems except RedHat family OSes. This configuration was necessary for me when …

Today I learned: Firewalld Masquerade & Docker

While using Docker on Fedora 34 I encountered an issue where my containers would not communicate properly. So I had a Docker Compose configuration with an internal network and a default bridge network. While I could ping the various servers from inside the containers, connections to various ports were failing. So ICMP traffic was up …

Today I learned: Activating Varnish cache for Magento 2

Today I will do my best to explain how to configure Varnish cache for Magento 2.4.2. I used the official Docker image for Varnish and built a simple Dockerfile along with a Magento recommended ENV value: The default.vcl file is provided below: As you can see it’s a very simple configuration for bootstrapping the service. …