It turns out that this line was the problem:
# only accept established and related connections
iptables -A INPUT -p tcp -m state --state ESTABLISHED,RELATED -j ACCEPT
Getting rid of "-p tcp" fixed the problem (I don't understand why, I just tryed everything).
ACCEPTing from lo allowed me to ping myself which is good
---
Thank you,
Maksim Sipos