Advertisement

Rerouting packets

Started by September 27, 2002 11:56 AM
3 comments, last by Crispy 22 years, 4 months ago
Hi, I need to write a simple application that would do simple rerouting under Win2k Professional. I think this is what VPN is for, but it only allows one connection per computer (on Win2k Prof). What I need to do, is set up "translators" in each computer (more than 2) that would modify the outgoing LAN packets and redirect them to a new address (WAN IP) while storing the original destination in the packet (which is set back as the destination at the receiving end by another "translator"), basically expanding a LAN connection to a WAN connection. I read a "similar" thread that should still be visible on the first page of this forum (called "Editing packets") and I was wondering if I'd really have to deal with hooks and everything. Maybe I'm missing the point here - that's why I'm asking before writing any code - but can I read outgoing packets from a local port, modify (how?) them, or delete (how?) the original packet and send a modified copy instead? Most importantly, is the above at all 100% necessary or, just by chance, does anyone know of some simple (free) application that would do the trick that I haven't come across on the Net yet? Thanks, Crispy edit - nitty gritty [edited by - crispy on September 27, 2002 12:59:23 PM]
"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared
Sounds like you either want a real router, or a gateway computer that has internet connection sharing setup and enabled.

___________________________
Freeware development:
ruinedsoft.com
___________________________Freeware development:ruinedsoft.com
Advertisement
Yeah - that would be nice, but that''s the more costly solution. And I don''t have the money, so I was wondering if it can be done in software...

Crispy
"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared
Hi !

I don''t know network layers in Win2k kernel.

But in Unix do it easy. You can divert selected packets to one port and read, change as you wish and resend packet.

For example package NAT do it. Sys. administarors very often use it for big local netowrk. In Unix it''s free source.

I hear about WinNAT, it''s do it like as Unix, but never used it. If understend technology how it''s work, you can write own apllication.

I Unix it''s realy easy to write.



quote:
Original post by iwasbiggs
Sounds like you either want a real router, or a gateway computer that has internet connection sharing setup and enabled.



For rounters it not specific task, you can''t change only network headers, but not data information in packets. Gateway computer can be do it, but intresting pass Layer3 encapulation on your comp I wrote .. in unix it''s can be easy.


This topic is closed to new replies.

Advertisement