Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-13-2005, 09:51 PM
|
#1
|
Member
Registered: Sep 2004
Posts: 60
Rep:
|
is there a firewall does not base on iptables in linux?
Hi,all
i want to write a tool like firewall. i will inspect all
ip packet and do some changes on it before pass it to
TCP and APP, or resend to network.
i have read some firewall source code of linux, but almost of them
base on the linux utility iptables. so, i can't change the packet
and only can make a decision droping or accepting or etc. that is
so discouraged.
maybe, there is a way but i don't know.
would you like to give me some directions.
|
|
|
09-13-2005, 10:40 PM
|
#2
|
Member
Registered: Jun 2005
Posts: 542
Rep:
|
What are you trying to do? Iptables lets you mangle packets, and it's based on netfilter which is plugged into the kernel. The packet mangling should be available in the API too. Read the docs at www.netfilter.org
|
|
|
09-14-2005, 11:04 PM
|
#3
|
Senior Member
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658
Rep:
|
Iptables also has a queue feature which can be used to pass packets to userland where you can process them with your own home brew utility. For example, here's a Perl utility for manipulating packets once they're handed off:
http://aspn.activestate.com/ASPN/Cod...q/IPQueue.html
There's also ipchains and ipfwadmin :-]
|
|
|
09-15-2005, 09:27 AM
|
#4
|
Member
Registered: Feb 2004
Location: USA
Distribution: Debian
Posts: 174
Rep:
|
There is a "ipfilter" program that says it works under Linux - since in runs on BSD, etc, I don't think it uses iptables at all:
http://coombs.anu.edu.au/~avalon/ip-filter.html
|
|
|
09-16-2005, 03:08 AM
|
#5
|
Member
Registered: Sep 2004
Posts: 60
Original Poster
Rep:
|
I see some code about netfilter, and i am sure it is competent.
I will look over other techs above.
so many thx to all of you.
|
|
|
09-19-2005, 10:15 PM
|
#6
|
Member
Registered: Apr 2003
Distribution: ANY
Posts: 339
Rep:
|
go kernel level.........all i have to say...........
|
|
|
09-21-2005, 01:00 AM
|
#7
|
Member
Registered: Sep 2004
Posts: 60
Original Poster
Rep:
|
i find that i only can inspect ip packet with netfilter hooks.
if there are some hooks with which i can look deeply in other packets, i.e. ARP.
|
|
|
All times are GMT -5. The time now is 08:56 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
|
|