When Fail2ban identify an IP as a possible threat it will modify your firewall (iptables) to block that IP from accessing your service. So if IP 18.104.22.168 has tried too many times to access your server through SSH but failled, fail2ban will "tell" iptables to block this IP from accessing your server through your "ssh" port. Which translate to port 22. But what if your SSH server is on port 44000?
Following the guide, you may remember that the best place to modify your configuration is in
/etc/fail2ban/jail.local. Since ssh filter is already enabled in the default configuration, you only have to specify the new port:
Same for other services: