Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How i can block all incoming traffic from one internet IP for the local network, except for two host?

DROP all inet:78.31.8.0/24 - -

The previous rule block all the incomming traffic from internet, but, how can allow the exception for two host?

share|improve this question

1 Answer 1

I resolv this with changing the source order:

DROP            local:!192.168.5.1,192.168.5.2        inet:78.31.8.0/24     -       -
share|improve this answer

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.