• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

How can i remove (cancel) routes with shell commands?

Scheduled Pinned Locked Moved General pfSense Questions
4 Posts 2 Posters 14.0k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C
    compher
    last edited by Aug 14, 2013, 2:37 PM

    Hello,

    How can i remove all routes with shell commands. I added for "192.168.0.0/22" ips area to 192.168.21.2 route. And now i cant enter to webconfigurator, i have to cancel that operation. I need shell command for the cremove all routes.

    Thank you..

    1 Reply Last reply Reply Quote 0
    • C
      compher
      last edited by Aug 14, 2013, 3:43 PM

      Friends please help me, its so importent for me, i just wanna delete or remove all routes from pfsense with shell command..

      1 Reply Last reply Reply Quote 0
      • P
        podilarius
        last edited by Aug 14, 2013, 3:51 PM

        http://www.freebsd.org/cgi/man.cgi?query=route

        Example:

        
        route del -net 192.168.0.0 192.168.21.2 255.255.252.0
        
        

        This is only temporary as next reboot or save will apply the config and restore the route. So once you kill it, login and remove the route from the config.

        OR, you can edit /cf/conf/config.xml and remove the route section for the one messing you up and then reboot. You might be able to force a config reload, but I am not as familiar with that way.

        1 Reply Last reply Reply Quote 0
        • C
          compher
          last edited by Aug 14, 2013, 4:02 PM

          It solved thank you so much.

          1 Reply Last reply Reply Quote 0
          1 out of 4
          • First post
            1/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received