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

  • 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

this would be just the right answer:

route add -net netmask reject

you can use the firewall to do so

sudo ufw deny from <ip address>
  • 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