mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Please suggest me
@ 2001-07-20 18:13 Dipak Biswas
  2001-07-20 19:18 ` Richard B. Johnson
  2001-07-20 19:21 ` Matti Aarnio
  0 siblings, 2 replies; 4+ messages in thread
From: Dipak Biswas @ 2001-07-20 18:13 UTC (permalink / raw)
  To: linux-kernel

Hi All,
    I'm quite new to linux world. I've a very awkard question for you.
That is: I'm writting an user process, where I need all outgoing
IP packets to be blocked and captured. First, is it really possible? If
yes, how? I don't want to make any kernel source code changes. A wild
guess: by configuration changes, is it possible to make IP process write
on to a particular FD which I can read when I require?

Thanks,
dipak


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Please suggest me
  2001-07-20 18:13 Please suggest me Dipak Biswas
@ 2001-07-20 19:18 ` Richard B. Johnson
  2001-07-21  3:58   ` Aaron Smith
  2001-07-20 19:21 ` Matti Aarnio
  1 sibling, 1 reply; 4+ messages in thread
From: Richard B. Johnson @ 2001-07-20 19:18 UTC (permalink / raw)
  To: Dipak Biswas; +Cc: linux-kernel

On Fri, 20 Jul 2001, Dipak Biswas wrote:

> Hi All,
>     I'm quite new to linux world. I've a very awkard question for you.
> That is: I'm writting an user process, where I need all outgoing
> IP packets to be blocked and captured. First, is it really possible? If
> yes, how? I don't want to make any kernel source code changes. A wild
> guess: by configuration changes, is it possible to make IP process write
> on to a particular FD which I can read when I require?
> 
> Thanks,
> dipak
> 

Get the source-code of `tcpdump` and see how packet capturing is done.
You can also look at `ipchains` to see how to block packets.

Cheers,
Dick Johnson

Penguin : Linux version 2.4.1 on an i686 machine (799.53 BogoMips).

    I was going to compile a list of innovations that could be
    attributed to Microsoft. Once I realized that Ctrl-Alt-Del
    was handled in the BIOS, I found that there aren't any.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Please suggest me
  2001-07-20 18:13 Please suggest me Dipak Biswas
  2001-07-20 19:18 ` Richard B. Johnson
@ 2001-07-20 19:21 ` Matti Aarnio
  1 sibling, 0 replies; 4+ messages in thread
From: Matti Aarnio @ 2001-07-20 19:21 UTC (permalink / raw)
  To: Dipak Biswas; +Cc: linux-kernel

On Fri, Jul 20, 2001 at 02:13:00PM -0400, Dipak Biswas wrote:
> Hi All,
>     I'm quite new to linux world. I've a very awkard question for you.
> That is: I'm writting an user process, where I need all outgoing
> IP packets to be blocked and captured. First, is it really possible? If
> yes, how? I don't want to make any kernel source code changes. A wild
> guess: by configuration changes, is it possible to make IP process write
> on to a particular FD which I can read when I require?

	Look at how tools like  tcpdump  and  etherreal  do it.
	It has been done over and over again -- in userspace tool.

> Thanks,
> dipak

/Matti Aarnio

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Please suggest me
  2001-07-20 19:18 ` Richard B. Johnson
@ 2001-07-21  3:58   ` Aaron Smith
  0 siblings, 0 replies; 4+ messages in thread
From: Aaron Smith @ 2001-07-21  3:58 UTC (permalink / raw)
  To: Richard B. Johnson; +Cc: linux-kernel

On Fri, Jul 20, 2001 at 03:18:44PM -0400, Richard B. Johnson wrote:
> On Fri, 20 Jul 2001, Dipak Biswas wrote:
> 
> > Hi All,
> >     I'm quite new to linux world. I've a very awkard question for you.
> > That is: I'm writting an user process, where I need all outgoing
> > IP packets to be blocked and captured. First, is it really possible? If
> > yes, how? I don't want to make any kernel source code changes. A wild
> > guess: by configuration changes, is it possible to make IP process write
> > on to a particular FD which I can read when I require?
> > 
> > Thanks,
> > dipak
> > 
> 
> Get the source-code of `tcpdump` and see how packet capturing is done.
> You can also look at `ipchains` to see how to block packets.
> 
> Cheers,
> Dick Johnson
> 
> Penguin : Linux version 2.4.1 on an i686 machine (799.53 BogoMips).
> 
>     I was going to compile a list of innovations that could be
>     attributed to Microsoft. Once I realized that Ctrl-Alt-Del
>     was handled in the BIOS, I found that there aren't any.
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

I would suggest using IPTables, personally, that's what I use for all of my firewall-type needs.

-- 
-Aaron

Don't hate yourself in the morning, sleep till noon

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-07-21  3:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-20 18:13 Please suggest me Dipak Biswas
2001-07-20 19:18 ` Richard B. Johnson
2001-07-21  3:58   ` Aaron Smith
2001-07-20 19:21 ` Matti Aarnio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®