Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If OUTPUT chain default policy is ACCEPT, is there any use case for the following rule?

-A OUTPUT -o $INTIF -s $EXTIP -d $INTNET -j ACCEPT
share|improve this question

Some simple tools use this as a way to count traffic matching a particular rule. There can be other rules later which would block packets if they are not explicitly allowed earlier.

share|improve this answer
    
Still I don't understand in which cases I may have a packet, coming out of LAN, which has src ip of WAN and directed to LAN devices. – Michael Mar 13 '11 at 13:20
    
@Michael: There may be a NAT rule for LAN based packets sent to the external IP (web, mail server, etc.). This would count those packets. – BillThor Mar 13 '11 at 13:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.