Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-22-2007, 07:40 AM
|
#1
|
|
LQ Newbie
Registered: May 2007
Distribution: Fedora
Posts: 11
Rep:
|
Disable TCP/IP Stack from user-space
Hi
I am the author of the Open-Source Project: Traffic Squeezer
Refer project URL for more details: http://trafficsqueezer.sourceforge.net
For my project, I need my basic Linux box to run more like a transparent L2-bridge.
So, i want to disable the TCP/IP kernel space stack from the user-space.
Though a new kernel build can be built with no TCP option.
But, I want an option to disable it from the kernel which has got already the
TCP/IP stack up, from my user-space application too, when in need during runtime,
through some ioctl() calls, etc.
Can anyone help me on this regard
Rgds, Kiran. K
Last edited by kiran_cyberpro; 05-22-2007 at 08:00 AM.
|
|
|
|
05-22-2007, 12:29 PM
|
#2
|
|
HCL Maintainer
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450
Rep:
|
I’m not sure if you can do this easily on a per-process basis (is that the question?). You can always unload the tcp module (if in fact tcp was built as a module). You might also try looking at some of the options given by sysctl.
|
|
|
|
05-22-2007, 08:06 PM
|
#3
|
|
HCL Maintainer
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450
Rep:
|
There is of course the counterintuitive approach of using additional networking functionality to disable normal networking functionality: netfilter. There are a few iptables matches/targets which might prove beneficial to you (e.g., the “owner” match that may deny or accept based on PID or UID). This still means the functionality is in the kernel, it just limits it.
|
|
|
|
05-22-2007, 11:21 PM
|
#4
|
|
LQ Newbie
Registered: May 2007
Distribution: Fedora
Posts: 11
Original Poster
Rep:
|
Yep, customizing kernel and adding the API would be the choice possible, only if I provide the complete embedded solution(with hardware), or a custom distribution or some patch along with my application code.
But, say suppose end-user(may or may not know much about Linux OS stuff) have a fresh installation of any Linux distribution(Fedora, Ubuntu, SUSE, etc, etc).
With my code, without any hassles I want him to just install and make use of this functionality.
Firewalls: well, thats seems to be a good idea, if not for ever at least for temporary fix. The reason behind this i don't want to burden the kernel by doing more processing by doing packet classification and filtering. And wanna avoid it some extent
rgds, Kiran. K
|
|
|
|
05-22-2007, 11:54 PM
|
#5
|
|
Moderator
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,505
Rep: 
|
If you want to completely get rid of the network stack "on demand" on any kernel, would it not be sufficient to just take all interfaces down?
|
|
|
|
05-23-2007, 12:04 AM
|
#6
|
|
LQ Newbie
Registered: May 2007
Distribution: Fedora
Posts: 11
Original Poster
Rep:
|
Hi Matir
I need networking option very much. Since the project is going to accept network traffic. Process in Layer-2 level like a network bridge/switch. But i want to disable the TCP/IP stack from user-space.
rgds, Kiran
|
|
|
|
01-03-2009, 07:36 AM
|
#7
|
|
LQ Newbie
Registered: Jan 2009
Posts: 1
Rep:
|
Hi
I am facing the same problem as mentioned by Kiran. Could you please suggest a solution?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:44 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|