LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-13-2005, 09:51 PM   #1
wangjinyi
Member
 
Registered: Sep 2004
Posts: 60

Rep: Reputation: 15
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.
 
Old 09-13-2005, 10:40 PM   #2
primo
Member
 
Registered: Jun 2005
Posts: 542

Rep: Reputation: 34
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
 
Old 09-14-2005, 11:04 PM   #3
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
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 :-]
 
Old 09-15-2005, 09:27 AM   #4
slacky
Member
 
Registered: Feb 2004
Location: USA
Distribution: Debian
Posts: 174

Rep: Reputation: 16
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
 
Old 09-16-2005, 03:08 AM   #5
wangjinyi
Member
 
Registered: Sep 2004
Posts: 60

Original Poster
Rep: Reputation: 15
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.
 
Old 09-19-2005, 10:15 PM   #6
deepsix
Member
 
Registered: Apr 2003
Distribution: ANY
Posts: 339

Rep: Reputation: 32
go kernel level.........all i have to say...........
 
Old 09-21-2005, 01:00 AM   #7
wangjinyi
Member
 
Registered: Sep 2004
Posts: 60

Original Poster
Rep: Reputation: 15
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
install linux base firewall on router Blue-Omega Linux - Security 3 06-12-2005 05:09 AM
Linux - IPTABLES Firewall v 0.86 mjm_tac Linux - Security 2 05-02-2004 06:58 AM
BitTorrent Tracker Behaving Strangely When Run Through Linux Iptables Firewall tvynr Linux - Networking 0 04-07-2004 03:54 PM
time base iptables rule karunesh Linux - Security 4 12-10-2003 10:14 AM
isight through a linux router/firewall (iptables) rob_roman23 Linux - Networking 2 07-23-2003 10:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration