Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any way to implement routing/forwarding based on information differ from an destination IP in the Windows environment ? I mean that in Linux using iptables/tc/iproute2 I can define a policy of choosing an outgoing interface for forwarding a traffic based on destination port, ToS/DSCP, time-of-day, rate any combination of various parameters etc.

Neither Winsock nor Routing Table Manager (RTMv2) APIs in Windows seem to provide similar flexibility

Any idea/direction/suggestion ? Thanks in advance

share|improve this question

migrated from Feb 10 '12 at 12:58

This question came from our site for professional and enthusiast programmers.

Check out netsh:

share|improve this answer
PowerShell should also work by means of WMI. – 0xC0000022L Feb 10 '12 at 14:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.