Sample Header Ad - 728x90

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

0 votes
1 answer
236 views
Here, I can type this in **Termux**
su
iptables -I OUTPUT -d 1.2.3.4 -j REJECT
iptables-save
to reject the packet so as to forbid the Application to visit a certain host. It works well. However, now I want to make the Application **thinks it is visiting 1.2.3.4 but it is visiting 5.6.7.8 instead.** which means **change the IP packet's destination IP address from 1.2.3.4 to 5.6.7.8** I tried many tutorials but ended up in a failure. Not working at all, the Application still visits 1.2.3.4. Can anyone help me with this? By using ***iptables*** or any other method. My Android device is rooted with Magisk installed.
Asked by kxdkxd
Nov 16, 2022, 02:35 PM
Last activity: Nov 17, 2022, 09:00 AM