Guest User!

You are not Sophos Staff.

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

[7.501] no default route present after reboot

Hello

For a while now I have had an issue with a lack of a default route to the internet after a reboot.  This happened after I applied 7.404 and 7.500 at the same time (both were ready to install and I pressed the "Update to latest version now" button).  I was hoping that 7.501 would fix this but it hasn't.

As I know my way round Linux, I was able to add the default route manually to keep things working.  Anyway this is now a pain so I am wondering if anybody knows how to fix this.

I have eth1 configured as "Cable Modem (DHCP)" and Default Gateway.  It gets its IP address ok but the default route is not added. 
While hunting around to try to find out how the default route gets set, I found the following in /tmp/mdwdebug.log:
CALLING SYSTEM: /sbin/ip -o route show  proto kernel

CALLING SYSTEM: /sbin/ip -o route show  table 253 match 0.0.0.0
INSTALLING DEFAULT ROUTE: a.b.c.d dev eth1
CALLING SYSTEM: /sbin/ip route add 0.0.0.0/0 proto kernel via a.b.c.d dev eth1 onlink table 253
RTNETLINK answers: Invalid argument

where a.b.c.d is my external ip address

The invalid argument appears to be 'onlink', but I do not think that there is anyway for me to fix this by changing a configuration file.  The version of ip that I have is iproute2-ss060110.

Does anybody else have this issue or know how to fix it?

Thanks, Gavin.


This thread was automatically locked due to age.
  • Hi, does disabling the EXT interface and re-enabling it make the route re-appear?

    Barry
  • Hi

    Unfortunately, it does not.  All I see is the same error message in the log file.

    Gavin
  • Same problem here! Fresh install off 7.500 and updated to 7.501.

    Disabling and reenabeling the if dont help, sometime it helps to click the renew button...

    Stefan
  • Update/Workaround: The problem does not exist when IDS is disabled!
  • When you look in the IPS log, if you see a line where something was blocked, note the "sid" and go to the 'Advanced' tab to disable it.

    Cheers - Bob
  • Searched the log, but nothing...
  • Disabling IPS has no effect in my case.  I have disabled it and then down-up the interface and then I tried a reboot.  Neither put the default route in automatically.

    What I did discover was that the "Default GW" option on the Edit Interface form is being honored.  If I disable the option then there are no messages in mdwdebug.log and if I enable it there are.

    I also found that there is a log entry created in /var/log/mdw.log which indicates where in the code the failure occurs:


    middleware[2980]: E Failed: /sbin/ip route add 0.0.0.0/0 proto kernel via a.b.c.d dev eth1 onlink table 253
    middleware[2980]:
    middleware[2980]:  1. utils::IPRoute::ip_route_cmd:757() /PerlApp/utils/IPRoute.pm
    middleware[2980]:  2. utils::IPRoute::ip_route_add:715() /PerlApp/utils/IPRoute.pm
    middleware[2980]:  3. modules::Interface::Ethernet::setGateway:100() /PerlApp/modules/Interface/Ethernet.pm
    middleware[2980]:  4. modules::Interface::EthPrimary::Finalize:105() /PerlApp/modules/Interface/EthPrimary.pm
    middleware[2980]:  5. modules::interfaces::_doChanges:320() /PerlApp/modules/interfaces.pm
    middleware[2980]:  6. modules::interfaces::setAll:290() /PerlApp/modules/interfaces.pm
    middleware[2980]:  7. core::Config::load:282() /PerlApp/core/Config.pm
    middleware[2980]:  8. main::top-level:178() mdw_deamon.pl


    I have deleted the date/time and hostname for clarity and replaced my external ip address.
  • After every reboot I have to disable the externel NIC and enable it again then it is running... IDS is disabled
  • The problem is still existing... :-(