Aprel
Aprel

Reputation: 1179

Android Iptables: Can´t drop port

I try to iptables -A OUTPUT -p tcp --sport 5228 -j DROP but it comes to failure messages:

FIX ME! implement getprotobyname() bionic/libc/bionic/stubs.c:378

I have an rooted device and busybox on it. Strange is that if I see the rules list of iptables this port is in it. I´m not sure does it work? What is my problem?

Upvotes: 0

Views: 1191

Answers (2)

Hans-Christoph Steiner
Hans-Christoph Steiner

Reputation: 2682

Use protocol numbers (-p 6) instead of names (-p tcp):

iptables -A OUTPUT -p 6 --sport 5228 -j DROP

See this answer for more info: getprotobyname error iptables

Upvotes: 0

roboto1986
roboto1986

Reputation: 625

Seems like a known bug: https://bugzilla.mozilla.org/show_bug.cgi?id=558415

It lists workarounds if you're interested.

Upvotes: 1

Related Questions