Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My mobile company offers a free package for facebook with unlimited bandwidth , however when I open my 3G connection the mobile automatically connects to unknown servers (maybe google) and the mobile company charges me for that connection.

The question in simple words:
How can I make all connections blocked (even google) except

share|improve this question
Funny, I allow all except – ce4 Nov 13 '12 at 0:28

If you're rooted, you can configure Firewall rules to block all except Facebook, but I don't think your problem is that complex:

when I open my 3G connection the mobile automatically connects to unknown servers.

Unable to understand what that mean as I can't OPEN my 3G connection. Seems to me, either you are talking about opening web browser or Background Data is screwing you. In the first case, make your homepage Facebook. In the second case, turn off Background Data from Settings ~> Accounts and Sync. Done!

If you want to do it with Firewall way, open Terminal Emulator. Switch to root by su command (your device must be rooted for that). Now, execute following commands in sequence:

iptables -A OUTPUT -p tcp -d -j ALLOW

iptables -A OUTPUT -p tcp -d * -j DROP

(Do it on your own risk after proper backups. Some devices become unstable after it.)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.