iptables forwarding through pptp
I am creating my own AOSP that contains my own apps and services. One of those services creates ppp0 interface and tries to link specific apps to be forwarded through that interface. I have tried these commands but it was not working as expected. iptables -t mangle -A OUTPUT -m owner --uid-owner 10088 -j MARK --set-mark 100 ip route add via 10.0.0.201 dev ppp0 table 100 ip rule add from all fwmark 100 table 100 iptables -t nat -A POSTROUTING -m owner --uid-owner 10088 -j SNAT --to-source 10.0.0.201 ip route add default dev wlan0 By the way, 10.0.0.201 is ppp0 interface Ip address. This works