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

Locked myself out of WebAdmin by changing the Default Gateway.

Hi There,

I was adding the Sophos (9.3) essential firewall to our ProfitBricks Data Center as outlined in these guides:

https://devops.profitbricks.com/tutorials/upload-and-create-a-sophos-utm-profitbricks-data-center/

https://devops.profitbricks.com/tutorials/install-and-configure-sophos-utm/

While I was doing the config I changed the Default Gateway of the WAN adaptor to an incorrect address and now I cannot access the webadmin.

Normally I would just wipe it and start over, but the nature of ProfitBricks means that when I changed the lan connections it tossed out all the firewall rules on it. So the only place that all those rules exist is within Sophos.

Is there any way to change the interfaces default gateway? I can RemoteView into the Sophos UTM and use the CLI.



This thread was automatically locked due to age.
Parents
  • Figured it out.

    Remote view the VM or use SSL and login:

    login: root

    password: <root password>

    Go find the device you which has the settings you need to edit:

    cc

    interfaces

    interfaces@

    This will display the devices like so:

    Then find the default gateway it is using via:

    OBJS

    REF_DefaultInternal

    then type

    RAW

    lock_override

    OBJS

    REF_ItfParamsDefaultInternal

    This should look like this:

    To make the change type this:

    default_gateway_address=<correct ivp4 adress>

    w

    'w' is to write it to file <save the config> you need to have used 'RAW' & 'lock_override' otherwise it will not save is it is protected.

    And viola! it should work again.

    tl;dr:

    RAW

    lock_override

    OBJS

    REF_ItfParamsDefaultInternal

    default_gateway_address=<correct ivp4 adress>

    w

Reply
  • Figured it out.

    Remote view the VM or use SSL and login:

    login: root

    password: <root password>

    Go find the device you which has the settings you need to edit:

    cc

    interfaces

    interfaces@

    This will display the devices like so:

    Then find the default gateway it is using via:

    OBJS

    REF_DefaultInternal

    then type

    RAW

    lock_override

    OBJS

    REF_ItfParamsDefaultInternal

    This should look like this:

    To make the change type this:

    default_gateway_address=<correct ivp4 adress>

    w

    'w' is to write it to file <save the config> you need to have used 'RAW' & 'lock_override' otherwise it will not save is it is protected.

    And viola! it should work again.

    tl;dr:

    RAW

    lock_override

    OBJS

    REF_ItfParamsDefaultInternal

    default_gateway_address=<correct ivp4 adress>

    w

Children
No Data