This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How delete a route using cli with XG?

Hello,

i have a big problem, i lost the connection on a site just after adding a bad route in the configuration. Now i can't use the GUI interface , i have constantly the message "Unable to load page. Check your network connection", i can't see the routing option. 

I can go in the FW using SSH, i tried the command mroute show but nothing is displayed (i'm connected by teamviewer on a computer).

Can you help me to see the route and delete it over CLI please?

What i added before lost connection : (route to RED) 

Thank you !



This thread was automatically locked due to age.
  • Did you register Central Management? 

    This would give you a SSO Login to your Appliance.

    Anyways. You should move to the Advanced Shell (5 - 3). 

    Try to use some basic common linux commands: https://www.linuxtechi.com/add-delete-static-route-linux-ip-command/

    If those work, access the webadmin and remove the router. Would highly recommend to reboot the appliance afterwards. 

  • FormerMember
    0 FormerMember

    Hi Julian Cast,

    Thank you for reaching out to the Community! 

    I tried to configure a dummy static route on my LAB firewall as per the screenshot below: 

    console> system diagnostics utilities route runconfig-show
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    10.81.235.0 0.0.0.0 255.255.255.0 U 0 0 0 tun0
    10.255.0.0 0.0.0.0 255.255.255.0 U 0 0 0 GuestAP
    172.16.19.0 0.0.0.0 255.255.255.0 U 0 0 0 PortA
    172.16.19.11 192.168.1.1 255.255.255.255 UGH 0 0 0 PortB
    192.168.1.0 0.0.0.0

    I was able to delet the route by running the following command: route delete -net 172.16.19.11 gw 192.168.1.1 netmask 255.255.255.255 dev PortB


    SFVUNL_VM01_SFOS 17.5.14 MR-14-1# route delete -net 172.16.19.11 gw 192.168.1.1 netmask 255.255.255.255 dev PortB

    console> system diagnostics utilities route runconfig-show
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    10.81.235.0 0.0.0.0 255.255.255.0 U 0 0 0 tun0
    10.255.0.0 0.0.0.0 255.255.255.0 U 0 0 0 GuestAP
    172.16.19.0 0.0.0.0 255.255.255.0 U 0 0 0 PortA
    192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 PortB

    Thanks,

  • Hi! 

    I was finaly able to delete the route using web interface by disabling the red connection from UTM. I found your solution after this process. I keep you information in my database because it will be very usefull for me ! 

    Thank you for your internal test

    Thank you for your research? 

    Thank you and good sunday !