LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-21-2009, 10:35 AM   #1
linuxjamil
Member
 
Registered: Dec 2005
Distribution: Fedora Core 5, Sun Solaris 8
Posts: 122

Rep: Reputation: 15
Post iptables problem


Dear All

My question is why -m tcp has been used in this line ?

-A INPUT -i eth0 -p tcp -m tcp -s 172.16.0.0/16 --dport 110 -j ACCEPT


Please respond.
 
Old 03-21-2009, 10:55 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by linuxjamil View Post
Dear All

My question is why -m tcp has been used in this line ?

-A INPUT -i eth0 -p tcp -m tcp -s 172.16.0.0/16 --dport 110 -j ACCEPT


Please respond.
Because the tcp module has to be loaded if you want to use any of the matches it provides, such as the --dport match used in what you posted. That said, this module gets automatically loaded whenever you need it, so you don't really need to specify it when you execute an iptables command. BTW, I'm moving this to Software as it's not a security issue.
 
  


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
Strange IPTables or Perhaps its not IPtables problem? helptonewbie Linux - Security 4 01-28-2009 07:54 AM
iptables problem methoxcy Linux - Newbie 1 05-06-2008 01:24 AM
iptables v1.2.9: Unknown arg `/sbin/iptables' Try `iptables -h' or 'iptables --help' Niceman2005 Linux - Security 4 12-29-2005 08:20 PM
iptables problem Israfel2000 Linux - Security 10 06-09-2005 10:47 PM
IPTABLES problem Javier Linux - Networking 28 01-24-2003 05:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:33 AM.

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