Skip to content

Instantly share code, notes, and snippets.

@pellaeon
Created May 1, 2017 05:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pellaeon/9792a86bd0233029de42928462246ed5 to your computer and use it in GitHub Desktop.
Save pellaeon/9792a86bd0233029de42928462246ed5 to your computer and use it in GitHub Desktop.
Allow traffic of apps in work profile to pass, set this as AFWall custom script
IP6TABLES=/system/bin/ip6tables
IPTABLES=/system/bin/iptables
$IPTABLES -A afwall-3g-home -m owner --uid-owner 1010082 -j RETURN
$IPTABLES -A afwall-3g-home -m owner --uid-owner 1010105 -j RETURN
$IPTABLES -A afwall-3g-home -m owner --uid-owner 1010172 -j RETURN
$IPTABLES -A afwall-wifi-wan -m owner --uid-owner 1010082 -j RETURN
$IPTABLES -A afwall-wifi-wan -m owner --uid-owner 1010105 -j RETURN
$IPTABLES -A afwall-wifi-wan -m owner --uid-owner 1010172 -j RETURN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment