Probably WMI would be the best "programmatic" solution to this.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/
wmi/ip_route_provider.asp

I'm sure there's more friendly documents, but that method would be the
best I believe.

Try looking under System.Management

Steve Radich - http://www.bitshop.com - Hosting Since 1996
BitShop, Inc - colo special - $149/month, Ashburn, VA

-----Original Message-----
From: Bill Kearney [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 11, 2005 11:34 AM
To: [email protected]
Cc: Gary Pupurs
Subject: Re: [AspNetMetroArea] IP routng control in .net?



From: "Gary Pupurs" <[EMAIL PROTECTED]>
> If I had to guess, something in the IP*Works toolkit might do the
trick.
> http://www.nsoftware.com/portal/dotnet/

It does't "appear" to have routing components.  It has a GREAT many
other
things but not that.

> Of course, you could also call the DOS route.exe command directly
using
> Process.Start().  Here's the first example I found of calling external
> processes with .NET:
>
http://www.codebetter.com/blogs/brendan.tompkins/archive/2004/05/13/1348
4.aspx

Yeah, I could do this.  But then I'm descending into text processing
hell
trying to extract the existing data.  If there's an API for it'd the
process
would be a lot smoother.

Part of the reason for this is some traffic is "better off" going
through a
VPN route while others are not.  Being able to discover what routes are
present and what metrics are being used is important for discovering
what
routes should or shouldn't be used.  As in, don't connect over the
locally
available WiFi link because it's unencryped and thus not secure; use the
encrypted VPN tunnel instead.

For example, don't connect to my POP3 mailbox that uses plain text
authentication from the starbucks; dial the VPN first and use that
instead.
But allow any other insecure traffic to use the faster local route.

Granted, this sort of application layer routing isn't something most
existing tools have the ability to do out of the box.  But a local proxy
might...

-Bill Kearney







 
Yahoo! Groups Links



 










------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/X1EolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetMetroArea/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to