UFW conflicts

The Ubuntu-specific firewall UFW prevents, for some reason, the Banco do Brasil online access. Here we will explain how to replace it with more standard one.

Unfortunately, it seems that the Ubuntu’s default firewall confugurer ufw does not play nice with the Banco do Brasil’s Modulo de Segurança. I recommend purging it:

apt-get purge ufw
iptables -F
iptables -t nat -F
iptables -t mange -F
iptables -X

and configuring via the standard iptables interface as outlined in my writeup

It is not that you need a permissive firewall; just that UFW does something too fancy.

The Security Module listens on localhost:30800 and localhost:30900, this is all localhost, nothing to open for outside!