Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 03-21-2009, 10:35 AM   #1
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 --dport 110 -j ACCEPT

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

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
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 --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.


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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:37 AM.

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