Skip to contentSkip to conversation

HELP - how to block a specific ip

DISCUSSION Antony Stone 1 participant 1 message Jun 22, 2002 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 7 lines · Robert La Ferla

Thanks again for your help. I have a question. If I wanted to block 11.22.33.xx (all 256 ips) from accessing my system, what command would I use?

Is this correct?

iptables -A INPUT -s 11.22.33.0/24 -j DROP

Yes.

Make sure you put it before any other rules which might allow the packets through.

Antony.