Im using Pcap.Net in a C# app. While browsing a website, i would need to modify all packets except UDP ones to make them go through a proxy.
I explain why, im using a proxy, but its not as fast as direct connection. So i would like to modify the http tcp packets to be sent via proxy, but keep all UDP ones to direct connection for speed reasons.
So the Question is, how can i modify a packet to be aborted to be sent to direct connection but instead, send it to proxy?
PS : i already know how to sort my packets to filter the ones i need to modify.
PS2 : for better clarity. How can i change Destination IP
, Destination Port
and Request URI
from a packet my computer is gonna send?