Unifi Controller Story

Forward Port In Linux

https://serverfault.com/questions/540241/iptables-how-to-redirect-all-8443-incoming-and-outgoing-to-443

Custom SSL Unifi Controller

https://gist.github.com/hdml/8a446dc1b0ad4f94b7a17a67a33286ab

Install Letencryp SSL Unifi

Unifi Controller Ubuntu 18.04 with Let’s Encryp SSL

IP Table Config Command

sudo iptables -A PREROUTING -t nat -i eth0 -p tcp –dport 80 -j REDIRECT –to-port 8080
sudo iptables -A PREROUTING -t nat -i eth0 -p tcp –dport 443 -j REDIRECT –to-port 8443
sudo sh -c “iptables-save > /etc/iptables.rules”

sudo apt-get install iptables-persistent

Previous article

Unifi Controller