 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
David Guest
|
Posted: Thu Aug 12, 2004 10:24 pm Post subject: need help - writing a proxy / router |
|
|
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
|
Posted: Fri Aug 13, 2004 9:40 am Post subject: Re: need help - writing a proxy / router |
|
|
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 |
|
 |
|
|
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
|
|