Do you know any open source android firewall which work whithout needing to be root? I found some, but they just let me permit or deny access to internet for each app. I need a fire wall on which I can make rules about IPs,ports, or something like these.
Netguard may be what you're looking for.
1) No root
2) 100% open source
3) Allow/block individual addresses per application (Paid only)
4) Also PCAP logging like Wireshark.
There is no other no-root firewall offering all these features.