0

Which command can be used to configure a router to reject the address for example 192.168.100.0/24 network using the route command

2
  • What kind of router? Is it running Ubuntu? Are you running iptables yourself on it? – gertvdijk Sep 18 '12 at 21:30
  • yeah it's running ubuntu and also yeah i run iptables on – user61928 Sep 19 '12 at 5:12
1

this would be just the right answer:

route add -net 192.168.100.0 netmask 255.255.255.0 reject
0

you can use the firewall to do so

sudo ufw deny from <ip address>
1
  • 1
    thanks man but what i need is to do it using route command – user61928 Sep 20 '12 at 14:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy