Networking Forums

Networking Forums > Computer Networking > Linux Networking > iptables: rule with RETURN target just after a rule with ACCEPT target

Reply
Thread Tools Display Modes

iptables: rule with RETURN target just after a rule with ACCEPT target

 
 
Neroku
Guest
Posts: n/a

 
      04-25-2007, 08:13 AM
Hi, I've seen in several scripts the following layout:

iptables criteria -j ACCEPT
iptables the_same_criteria_as_above -j RETURN

for example:

iptables -A INPUT -p tcp -m tcp --dport 100 -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 100 -j RETURN

The last rule will be never matched, because all tcp incoming
connections will be accepted, and then will go throw the next chain.
So, What is the usefulness of this configuration?

IMHO, I think is for changing the scripts in a fast way (just
commenting on the first line will yield in default policy for the
INPUT chain)

TIA

 
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
iptables rule Bonno Bloksma Linux Networking 6 03-06-2010 10:48 PM
iptables: rule with RETURN target after a rule with the ACCEPT target Neroku Linux Networking 0 04-24-2007 08:43 PM
Iptables rule ID drg Linux Networking 3 02-22-2006 02:24 AM
iptables rule to block external, but accept local port (8009) connection OtisUsenet Linux Networking 1 02-14-2006 08:10 AM
iptables QUEUE target docs? bill davidsen Linux Networking 0 10-17-2003 06:11 PM



1 2 3 4 5 6 7 8 9 10 11