I am trying to implement kind of android firewall via vpnService. So far I managed to get all the incoming packets to my VPN service. I need help to parse the packets and get destination IP address and source IP address with their ports! in order to open new socket connection and forward the packet to it's destination.
In addition, Is it enough to forward only the data of the packet to the destination or I need to forward it as is with the headers?
Any
You help is much appreciated.