LinuxQuestions.org
Register a domain and help support LQ
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 03-26-2011, 06:51 AM   #1
littlebigman
Member
 
Registered: Aug 2008
Posts: 457

Rep: Reputation: 32
Question Netfilter + iptables?


Hello

I've never used iptables, and would like to add it to a telephony server so as to use an application like Fail2ban to block IP's that are trying to hack it.

According to Wikipedia, it seems like Netfilter is some code in the kernel, while iptables consists in kernel modules and some user-land binaries:

http://en.wikipedia.org/wiki/Netfilter

Is that how it works? If not, could someone briefly explain how those two parts work together?

Thank you.
 
Old 03-26-2011, 06:55 AM   #2
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
Quote:
netfilter is a set of hooks inside the Linux kernel that allows kernel modules to register callback functions with the network stack. A registered callback function is then called back for every packet that traverses the respective hook within the network stack.

iptables is a generic table structure for the definition of rulesets. Each rule within an IP table consists of a number of classifiers (iptables matches) and one connected action (iptables target).
Taken from the netfilter site. Iptables is netfilter; You define the rules for iptables, and the kernel, along with iptables itself, will do what you want it to do.
 
1 members found this post helpful.
Old 03-28-2011, 06:01 AM   #3
littlebigman
Member
 
Registered: Aug 2008
Posts: 457

Original Poster
Rep: Reputation: 32
Thanks for the clarification.
 
Old 03-28-2011, 12:25 PM   #4
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
Not a problem.

Josh
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
what is exactly difference between iptables and netfilter? soltanihaji Linux - Software 2 08-04-2008 04:03 AM
netfilter.org -- iptables 1.4 fhleung Debian 1 03-12-2008 02:02 AM
Netfilter / IPtables SWAT Linux - Newbie 3 11-11-2003 09:04 AM
Netfilter/iptables on Linux Debra Programming 1 10-03-2002 07:40 PM
Netfilter/iptables on Linux Debra Linux - General 2 10-03-2002 07:27 PM


All times are GMT -5. The time now is 09:18 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration