If my iptables is set to drop packets from certain hosts, is it possible to add a host that can be excepted from this if it is affected?

The hostname I'm wanting to except from these rules is affected by them.

link|improve this question

75% accept rate
feedback

3 Answers

up vote 4 down vote accepted

You just have to use an ACCEPT rule for this host before the DROP rules you want to avoid.

link|improve this answer
Awesome, thanks. – Blake Jan 28 at 13:20
feedback

Rules are evaluated in order, so just make sure that your accept rule comes before the default deny rule.

link|improve this answer
Thanks for that. – Blake Jan 28 at 13:20
feedback

This might not be useful in this case, but the default policy(last evaluated rule) can also be changed with the -P ACCEPT.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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