[IPTables] Android 7 block all internet connections except 2-5 IP addresses.

Hello!
I have rooted device and need to prevent VPN connection traffic leak. So, in terminal I put this script.

Code:
iptables -A INPUT -i lo -j ACCEPT iptables -A INPUT -s 192.168.43.0/24 -j ACCEPT iptables -A INPUT -s XX.XX.XX.XX -j ACCEPT iptables -A INPUT -s XXX.XXX.XXX.XXX -j ACCEPT iptables -A INPUT -s YYY.YYY.YYY.YYY-j ACCEPT iptables -P INPUT DROP

All works good, OpenVPN connects to servers, but, in google chrome no one website open. Every time I get "You are offline"

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by dkutch
4 hours ago
Help pls
Started by leda.hane
Last post by jamal88
2 hours ago
Last post by robb.brown
55 minutes ago
Last post by halvorson.effie
2 hours ago
Last post by gtowne
4 hours ago
Last post by twila.dietrich
1 hour ago
Last post by ova66
2 hours ago