If it worked with “regular Tor” installed on the same machine but not behind a Whonix Gateway, then most probably it wasn’t Torrified properly to begin with. I will try to find documentation on how to configure it properly with Tor and post it.
Update on the situation. I get, the problem was simple and the problem was on Centos. With nmtui I noticed that the “adapter” for whonix-gateway was off. Turned on and worked.
Just if somebody is having the same issue then me, on firewall i opened the port 8008