bottleneck
Choose style:

Author Topic: Block range of IP's  (Read 1788 times)

0 Members and 1 Guest are viewing this topic.

Offline b0xCH

  • Backer
  • *
  • Posts: 4
  • Thanks: 0
  • Registered : 07/12/2014
    YearsYearsYearsYearsYearsYearsYearsYears
Block range of IP's
« on: December 07, 2014, 05:00:20 pm »
Hello there!
I'm trying to block an IP /24 Range, that noone inside of the network can access them or make a connection to them.
I don't have an idea what I'm doing wrong here:
Code: [Select]
iptables -A INPUT -d 123.45.78.0/24 --jump REJECT
How can I do that?

Thanks!

Offline bwainscott

  • Backer
  • *
  • Posts: 138
  • Thanks: 0
  • Registered : 02/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Block range of IP's
« Reply #1 on: December 07, 2014, 09:23:36 pm »
Try the FORWARD chain instead of INPUT. INPUT is for packets going TO the router itself, not THROUGH the router

 

Page created in 0.045 seconds with 18 queries.