Networking Forums

Networking Forums > Computer Networking > Linux Networking > iptables help

Reply
Thread Tools Display Modes

iptables help

 
 
Minh
Guest
Posts: n/a

 
      04-08-2008, 08:25 PM
Hi,
Is that matter if I placed the options/extensions ( -m and -p ) in
different orders ?

Please tell me these 4 configurations make any difference ... in term
allows ssh to my workstation.

-A INPUT -s 1.2.3.0/24 -p tcp -m tcp --dport 22 -j ACCEPT

-A INPUT -s 1.2.3.0/24 -m tcp -p tcp --dport 22 -j ACCEPT

-A INPUT -s 1.2.3.0/24 -p tcp -m state --state NEW -m tcp --dport 22 -
j ACCEPT

-A INPUT -s 1.2.3.0/24 -m state --state NEW -m tcp -p tcp --dport 22 -
j ACCEPT


Thanks !
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
about iptables junaidaslam Linux Networking 3 08-29-2005 09:35 PM
Looking for iptables applications code (iptables.c) to run some rules to forward packets tvnaidu@yahoo.com Linux Networking 2 01-17-2005 05:01 PM
iptables Bernd Roth Linux Networking 5 01-16-2005 05:53 PM
iptables and nat Marcin Giedz Linux Networking 5 07-06-2004 07:05 AM
iptables "can't initialize iptables table `filter'" pete Linux Networking 1 10-10-2003 03:44 AM



1 2 3 4 5 6 7 8 9 10 11