Reputation: 850
Does anybody know how to change iptables rules in android source code or android linux kernel code or android image?
I want to apply these following rules in android image
iptables -P INPUT DROP iptables -P OUTPUT DROP iptables -P FORWARD DROP
Do i need to create any system level native app? if anybody know the answer or done anything like that please help me out.
Thanks, Gaurav
Upvotes: 2
Views: 4622
Reputation: 11
For android 9.0. please modify the android source file: external/iptables/etc/xtables.conf Rebuild android system image.
Upvotes: 1
Reputation: 1573
You need to have root access and you can run the commands. Check this example code to run your commands:
Upvotes: 1