Getting a 502 Bad Gateway Error When Accessing Element Web

Issue

Environment

Resolution

sudo firewall-cmd --add-service={http,https} --permanent
sudo firewall-cmd --add-masquerade --permanent
sudo firewall-cmd --reload

Root Cause

By default, firewalld does not allow masquerading (Network Address Translation, NAT) through the firewall. This causes all sorts of trouble with doing the NAT required to access pods in microk8s.


Revision #1
Created 12 May 2022 11:28:02 by Karl Abbott
Updated 20 May 2022 15:36:32 by Karl Abbott