Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

iptables help

Reply
 
Thread Tools Display Modes
  #1  
Old 04-08-2008, 09:25 PM
Default iptables help



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 !


Minh
Reply With Quote
Reply

Tags
iptables

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
Forum Jump


All times are GMT. The time now is 02:20 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.