• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5080
  • Last Modified:

Iptables Ban an IP Range?

How do I ban 83.*.*.* with iptables?
0
dprundle
Asked:
dprundle
  • 3
1 Solution
 
ravenplCommented:

iptables -I INPUT -s 83.0.0.0/8 -j DROP
0
 
ravenplCommented:
But You may want to block real range (and not subclass), then
iptables -I INPUT -m iprange --src-range 83.0.0.1-83.0.1.1 -j DROP
0
 
ahoffmannCommented:
.. and don't forget the other chains ... FORWARD, PREROUTING, mangle ...
0
 
ravenplCommented:
Other chains that INPUT (FORWAD in fact) only required if configuing firewall(not single host)...
0

Featured Post

Managing Security & Risk at the Speed of Business

Gartner Research VP, Neil McDonald & AlgoSec CTO, Prof. Avishai Wool, discuss the business-driven approach to automated security policy management, its benefits and how to align security policy management with business processes to address today's security challenges.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now