Originally Posted by erfantaheri
thank you for reply, I didnt mean why it still using the wifi connection, I mean all apps are using the wireless connection regardless to VPN connection and my X8 sends traffic to Wireless gateway instead of sending that to the VPN server.
If you want to "bend" ALL traffic to the VPN tunnel you're using the wrong approach (ProxyDroid).
In this case you need x8netfilter (on Stock Kernel, not needed on Alfs), the iptables command and some knowledge about how to write-up a ruleset for the Linux firewalling filter.
I'm not going to riddle that for you, but let me hint you this much ...
You need a script that does the following...
1. Check the VPN tunnel is up and established
2. You need to setup a FORWARD/OUTPUT filter chain rule that re-directs all traffic to all ports to the pseudo interface of the VPN tunnel instead of to the WiFi interface (keep an eye at DNS ... you may need to let that pass through in case your VPN tunnel isn't able to pass DNS requests back and forth).
3. Flush the iptables chains upon exiting the VPN tunnel.
Open Google and search for "iptables" ... learn how it works ... write up the firewall rules you need (may require you learn a bit about Linux commandline scripting).