ufw allow 25/tcp
ufw allow 465/tcp
ufw allow 587/tcp
ufw allow 143/tcp
ufw allow 993/tcp
ufw allow 110/tcp
ufw allow 995/tcp
ufw allow 4190/tcp
# http/s ports
ufw allow 443
ufw allow 80
ufw allow ssh # sshd on port 22, be careful to not get locked out!
ufw default deny incoming # deny traffic on every other port, on any interface
ufw enable
-
-
Save genesysflow/965b7f31f6c1012e23d44082641fe581 to your computer and use it in GitHub Desktop.
ufw ports for mailcow
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using the fix for Docker with UFW and iptables: https://github.com/chaifeng/ufw-docker
I am running Nginx Proxy Manager etc and the ports should be opened to only related docker IP.
sudo ufw route allow from 123.456.789.2 to 172.22.1.114 port 443
and blocking also some bad guys with iptables for Chain DOCKER-USER
sudo iptables -L DOCKER-USER