Please suggest me
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
Quoted 11 lines · Dipak Biswas
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.
Quoted 7 lines · Dipak Biswas
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.
Quoted 2 lines
Thanks,
dipak
/Matti Aarnio
Quoted 27 lines · Richard B. Johnson
Quoted 11 lines · Dipak Biswas
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,
dipakGet the source-code of
tcpdumpand see how packet capturing is done. You can also look atipchainsto see how to block packets.Cheers,
Dick JohnsonPenguin : 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.
Quoted 5 lines
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
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.
Signature · 3 lines
-Aaron Don't hate yourself in the morning, sleep till noon