Remove All Ads from XDA
Find Your Device:
Or Continue to Thread: [5.0+][ROOT][3.2.0] AFWall+ IP…
30th August 2019, 08:53 PM
Member
Thanks Meter: 20
 
More
This:
Code:
#!/system/bin/sh

IPTABLES=/system/bin/iptables
IP6TABLES=/system/bin/ip6tables

$IPTABLES -I afwall-wifi-tether -p udp -m owner --uid-owner 1052 -m udp --sport 67 --dport 68 -j RETURN
$IPTABLES -I afwall-wifi-tether -p udp -m owner --uid-owner 1052 -m udp --sport 53 -j RETURN
$IPTABLES -I afwall-wifi-tether -p tcp -m owner --uid-owner 1052 -m tcp --sport 53 -j RETURN

$IP6TABLES -I afwall-wifi-tether -p udp -m owner --uid-owner 1052 -m udp --sport 67 --dport 68 -j RETURN
$IP6TABLES -I afwall-wifi-tether -p udp -m owner --uid-owner 1052 -m udp --sport 53 -j RETURN
$IP6TABLES -I afwall-wifi-tether -p tcp -m owner --uid-owner 1052 -m tcp --sport 53 -j RETURN
Source: Github dicussion thread for AFWall+

Btw: I have recognized that this issue has been discussed in this thread in early march this year alreay, but strangely with neither an identification of the UID 1052 nor a proper solution for the issue. The custom script does not count as solution either, it is merely a workaround for me until AFWall+ fixes this properly.

Edit, further info: apparently the issue rises the very moment that one disables netd and allow internet access to root apps (to get control of the DNS requests). So the proper solution should be simple: as soon as netd is disabled, AFWall+ has to automatically apply these additional rules I quoted above.
The Following 3 Users Say Thank You to Ramihyn For This Useful Post: [ View ] Gift Ramihyn Ad-Free