Re: bpf packet capture and SOCK_STREAM socket redirects...

2008-03-21 Thread Julian Elischer
Ok I have read this again, I think you are trying to hijack a session before the intended target can start it up... but you have some problems. The original packets will continue on to the intended server so it will respond as well. And when the session you have created starts talking, that origi

bpf packet capture and SOCK_STREAM socket redirects...

2008-03-21 Thread Alireza Torabi
On Fri, Mar 21, 2008 at 6:16 PM, Julian Elischer <[EMAIL PROTECTED]> wrote: > > Alireza Torabi wrote: > > On Fri, Mar 21, 2008 at 6:35 AM, Peter Jeremy > > <[EMAIL PROTECTED]> wrote: > >> On Thu, Mar 20, 2008 at 11:27:53AM +, Alireza Torabi wrote: > >> >Imagine this: > >> > > >>

Re: bpf packet capture and SOCK_STREAM socket redirects...

2008-03-21 Thread Julian Elischer
Alireza Torabi wrote: On Fri, Mar 21, 2008 at 6:35 AM, Peter Jeremy <[EMAIL PROTECTED]> wrote: On Thu, Mar 20, 2008 at 11:27:53AM +, Alireza Torabi wrote: >Imagine this: > > | (1) >packets > | | (4) >[nic1] [nic2] >

Re: bpf packet capture and SOCK_STREAM socket redirects...

2008-03-21 Thread Alireza Torabi
On Fri, Mar 21, 2008 at 6:35 AM, Peter Jeremy <[EMAIL PROTECTED]> wrote: > On Thu, Mar 20, 2008 at 11:27:53AM +, Alireza Torabi wrote: > >Imagine this: > > > > | (1) > > packets > > | | (4) > >[nic1] [nic2] > > bpf

Re: bpf packet capture and SOCK_STREAM socket redirects...

2008-03-20 Thread Peter Jeremy
On Thu, Mar 20, 2008 at 11:27:53AM +, Alireza Torabi wrote: >Imagine this: > > | (1) > packets > | | (4) >[nic1] [nic2] > bpf SOCK_STREAM > | (2)| > [FreeBSD] (3) > >1) all

Re: bpf packet capture and SOCK_STREAM socket redirects...

2008-03-20 Thread Alireza Torabi
rom B) hope this helps. On 3/20/08, Vadim Goncharov <[EMAIL PROTECTED]> wrote: > Hi Alireza Torabi! > > On Thu, 20 Mar 2008 10:57:39 +; Alireza Torabi wrote about 'Re: bpf > packet capture and SOCK_STREAM socket redirects...': > > > That's sort of t

Re: bpf packet capture and SOCK_STREAM socket redirects...

2008-03-20 Thread Vadim Goncharov
Hi Alireza Torabi! On Thu, 20 Mar 2008 10:57:39 +; Alireza Torabi wrote about 'Re: bpf packet capture and SOCK_STREAM socket redirects...': > That's sort of the problem. I've got a data link capture of the packet > (bpf) and let say I redirect this packet to

Re: bpf packet capture and SOCK_STREAM socket redirects...

2008-03-20 Thread Alireza Torabi
3/20/08, Vadim Goncharov <[EMAIL PROTECTED]> wrote: > Hi Alireza Torabi! > > On Thu, 20 Mar 2008 09:43:52 +; Alireza Torabi wrote about 'bpf packet > capture and SOCK_STREAM socket redirects...': > > > Is it possible to redirect/send/divert a bpf packet captu

Re: bpf packet capture and SOCK_STREAM socket redirects...

2008-03-20 Thread Vadim Goncharov
Hi Alireza Torabi! On Thu, 20 Mar 2008 09:43:52 +; Alireza Torabi wrote about 'bpf packet capture and SOCK_STREAM socket redirects...': > Is it possible to redirect/send/divert a bpf packet capture of one > interface to a listening tcp socket on another interface of th

bpf packet capture and SOCK_STREAM socket redirects...

2008-03-20 Thread Alireza Torabi
Hi All, Is it possible to redirect/send/divert a bpf packet capture of one interface to a listening tcp socket on another interface of the same machine? Here is my problem: I'm capturing packets on one interface but for some specific tcp packets let's say from host A to host B on port P, I want to