How to create a windows based router from scratch?

G

Guest

I want to understand how I can create a windows based router/gateway from
scratch using the latest windows technology (.Net Framework 2.0/WinFX).

I have bought/read:
- Windows System Programming 3.rd Ed.
- Windows Internals (XP/2003/2000)
- Network programming in .Net

But still I can't find any good info on routing.

Please explain and point to some good qualified URL's or books.

TIA
 
D

Dmytro Lapshyn [MVP]

Hi,

I *really* doubt .NET and/or WinFX can be of _any_ use with such a task. IP
packet routing is a low-level task, you will most likely have to develop a
device driver or something of that nature to accomplish it. And one just
cannot develop low-level system components using the .NET Framework.

*Probably* (I am just speculating here) one can setup a hook into the
WinSock stack from the application level, but again, I wouldn't choose .NET
anyway - otherwise one would have to deal with tons of P/Invoke issues, as
well as probably performance issues.
 
G

Guest

Thanks for your answer, but I'm still pretty confused.
I know I might have to create some of the functionallity using low level
language, so I'm prepared to do that. At the same time I will try to use .Net
as far as it goes.

For sniffing I could use WinPcap or even .Net framework, I know also that I
can send RAW packets using .Net framework.

But how does the routing acctually works programatically? I know how the
router deceides how to route the traffic, but not how to code it.
Does it act like a sniffer, then queues up the packets, based on routing
tables it deceides how to rewrite the MAC address?

And what would be the best way to implement this, hooking vs drivers (TDI vs
NDIS6.0) vs WinPcap vs .Net Raw sockets?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top