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

      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

        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

          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

            It solved thank you so much.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.