Skip to main content
6 votes
Accepted

How to send all internet traffic to a SOCKS5 proxy server in local network?

The link you have provided is not setting up SOCKS but a transparent proxy i.e. it takes TCP/UDP traffic and SOCKSify it before sending through shadowsocks tunnel. But you need to make your traffic ...
Irfan Latif's user avatar
  • 20.7k
4 votes
Accepted

Restricting an app to only send internet traffic but not receive that back?

It's possible, but far from easy to achieve. There are multiple approaches we can use to block (or at least try to block) incoming traffic. But blocking one way traffic doesn't make sense in most ...
Irfan Latif's user avatar
  • 20.7k
2 votes

Android: how to find application locking xtables?

/system/bin/iptables binary holds an advisory lock on /system/etc/xtables.lock file (which is usually /run/xtables.lock on normal Linux distros). It's the native netd service which performs operations ...
Irfan Latif's user avatar
  • 20.7k
1 vote
Accepted

Access iptables logs on Android

Android has a different userland and indeed doesn't use these log files (even modern Linux desktop distros don't use these files usually). So, that guide is wrong today (even if it claims it was ...
Marcus Müller's user avatar
1 vote

How to modify the IP packet destination IP address in Android?

You can do that using a destination NAT (DNAT), see here Specifically, in your example you would do one of: iptables -t nat -I OUTPUT -d 1.2.3.4 -j DNAT --to-destination 5.6.7.8 Of course, you would ...
gepa's user avatar
  • 111
1 vote

How to run .sh script (iptables commands) on start up

Once you added your service as "disabled" on init.rc you must call it on boot, add the following lines: on boot custominit your_params I hope it solves your problem
Carlos Henrique's user avatar
1 vote

How to enable IP forwarding in Android?

This method worked for me, I just set up Android as a proxy server and need to enable forwarding. Use ROOT Explorer and EDIT this file: /proc/sys/net/ipv4/ip_forward Add this syntax: iptables -F -t ...
Fathur Rohim's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible