Eu encontrei a solução.
Ao fazer o redirecionamento de portas no UFW, você precisa adicionar uma porta de destino para permitir a regra.
Por exemplo, se você quiser encaminhar a porta de origem 22 para a porta de destino 1922,
você tem que executar o comando 'ufw allow 22' e 'ufw allow port 1922'.
Se não foi a porta de código aberto ou porta de destinação, o pré-roteamento não está funcionando.