David Yowell wrote:
> From what I understand of iptables, after the first match it quits
> processing rules. Wouldn't this let ALL trafic through? Why would
> any of the following REJECT rules that get set up be processed.
>
No. The default policy is to drop all. So if a specific match is not
found, the traffic will be dropped.
Imagine the following.
Allow green cars through
Allow blue cars through
Stop all cars.
A green car will match on the 1st rule and will be allowed to pass. A blue
car will not match the 1st rule, but it will match the 2nd and will pass A
red car will not match on the 1st or 2nd rule and will be blocked by the
3rd. In this example, you specify all the colours you want to pass. All
others are blocked.
--
Fundamentalism is fundamentally wrong.
To reply to this message, replace everything to the left of "@" with
james.knott.
|