title: Packet Redirection on Windows
body: <p>We currently run windows on all of our machines due to software limitation.</p>
  
  <p>Within this however, we are needing to redirect certain packets that come into an IP and Port to a different Port (same IP). We have software listening on the "Proxy Port".</p>
  
  <p>This is achievable with IPTables on linux by doing something similar to:</p>
  
  <pre><code>iptables -t nat -I PREROUTING -p udp -d &lt;DSTIP&gt; --dport &lt;DSTPORT&gt; -m u32 --u32 '0&gt;&gt;22&amp;0x3C@8=0xFFFFFFFF &amp;&amp; 0&gt;&gt;22&amp;0x3C@12=0x54536F75 &amp;&amp; 0&gt;&gt;22&amp;0x3C@16=0x72636520 &amp;&amp; 0&gt;&gt;22&amp;0x3C@20=0x456E6769 &amp;&amp; 0&gt;&gt;22&amp;0x3C@24=0x6E652051 &amp;&amp; 0&gt;&gt;22&amp;0x3C@28=0x75657279' -j REDIRECT --to-port &lt;REDIRECT PORT&gt;
  </code></pre>
  
  <p>This works great on linux and will redirect certain packets to our proxy software, however is it at all possible to do something such on windows without having to get a dedicated machine in-front of our windows machines?</p>
  
  <p>I was thinking of writing something up with pcap.net but I'm guessing this will have to direct read from the NIC rather than windows?</p>