Online tracking
Many users face tracking on the Internet every day. One of the most obvious and largest consequences is targeted advertising. Anyone who has ever dealt with such giants as, for example, Google AdWords, knows how extensive the target audience settings are available to the advertiser.
, . .
- -. , : , , . , .
— .
(disconnectme). , .
(Pi-hole ), Android iOS.
Android
– IP- iptables. – root- , Android . root.
. . VpnService VPN, . : -, --tcp, --udp. / . TcpIn, TcpOut, UdpIn, UdpOut , . Github (LocalVPN).
iOS
NetworkExtension.
Android, . NEFilterControlProvider NEFilterDataProvider. , Content Filter Providers (supervised) , - AppStore . Github (sift-ios, FilterControlProvider, FilterDataProvider).
VPN. NetworkExtension VPN.
Personal VPN. . , .
App Proxy Provider. VPN . , .
Packet Tunnel Provider. VPN . .
NEPacketTunnelProvider. – , , , GCDHTTPProxyServer, . . NEPacketTunnelProvider GCDHTTPProxyServer Github (lockdown-ios PacketTunnelProvider).
, VPN
VPN, . – ( VPN) . . ( ). , .
Today we looked at ways to implement traffic filters for Android and iOS. We considered the most non-limiting method - a local VPN and the basics of its implementation with examples of finished products and examples. To do this, we took advantage of the ability to create custom VPN protocols. With their help, we got access to the network layer from the application layer, which allowed us to apply a filter to incoming / outgoing packets. We base the filter on black lists of tracker domains available on the Internet.
The article was prepared for the Telegram channel @paradiSEcurity .