BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

need help - writing a proxy / router

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet
View previous topic :: View next topic  
Author Message
David
Guest





PostPosted: Thu Aug 12, 2004 10:24 pm    Post subject: need help - writing a proxy / router Reply with quote



machine "A" wants to talk to internet site "1", "2", or "3" on port 21 (for
example)
but I want to keep track of source/dest ip, ports, and data/packet counts,
and block the connection at certain times.

ideally, i want machine "A" to route via my gateway machine "B" which
forwards the traffic onto the correct ip
machine "B" has 2 network cards if that's important

example
machine "B" listening on port 21, gets a connection from machine "A" to talk
to site1.com:21
machine "B" keeps track of source/dest ips/ports, data length and
packetcounts

machine "B" listening on port 21, gets a connection from machine "A" to talk
to site2.com:21
machine "B" keeps track of source/dest ips/ports, data length and
packetcounts

machine "B" listening on port 21, gets a connection from machine "A" to talk
to site3.com:21
machine "B" does not forward the connection because it is outside of set
hours

I am using Delphi, and need to write this application so I can block
connections at certain hours.

Any help poiting me in the right direction would be greatly appreciated

David


Back to top
Kris Leech
Guest





PostPosted: Fri Aug 13, 2004 9:40 am    Post subject: Re: need help - writing a proxy / router Reply with quote



You might want to check out WinPKfilter.
It is a low level hook for ethernet packets (which contain IP/ARP
packets, which contain TCP (or other) packets etc etc.)

Kris.

David wrote:

Quote:
machine "A" wants to talk to internet site "1", "2", or "3" on port 21 (for
example)
but I want to keep track of source/dest ip, ports, and data/packet counts,
and block the connection at certain times.

ideally, i want machine "A" to route via my gateway machine "B" which
forwards the traffic onto the correct ip
machine "B" has 2 network cards if that's important

example
machine "B" listening on port 21, gets a connection from machine "A" to talk
to site1.com:21
machine "B" keeps track of source/dest ips/ports, data length and
packetcounts

machine "B" listening on port 21, gets a connection from machine "A" to talk
to site2.com:21
machine "B" keeps track of source/dest ips/ports, data length and
packetcounts

machine "B" listening on port 21, gets a connection from machine "A" to talk
to site3.com:21
machine "B" does not forward the connection because it is outside of set
hours

I am using Delphi, and need to write this application so I can block
connections at certain hours.

Any help poiting me in the right direction would be greatly appreciated

David



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.