Changeset 10841 in hybrid


Ignore:
Timestamp:
May 13, 2012, 8:58:11 PM (13 years ago)
Author:
rick
Message:

Op het moment dat je inlogt met SSH op een normale proxy is je FIB=1, omdat
SSH op FIB=1 draait. Draai je dan handmatig dhclient vr0 zal dit je default
route op FIB=1 weer wissen, en dat is nu juist _niet_ de bedoeling.

Hard-coded de wis actie naar FIB=0 om zo altijd de goede te wissen.

Fixes nodefactory:ticket:172

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/releng-9.0/nanobsd/files/etc/dhclient-exit-hooks

    r10651 r10841  
    1818  if is_default_interface 2>/dev/null; then
    1919    $LOGGER "is_default_interface: TRUE"
     20    $LOGGER "`sysctl net.my_fib`"
    2021    new_ext_if_gw=`route -n get default 2>/dev/null | awk '/gateway/ {print $2}'`
    2122    $LOGGER "prev default gateway: $ext_if_gw"
     
    3738  if [ -n "$new_ext_if_gw" ] && checkyesno "service_proxy_normal" && checkyesno "service_accesspoint"; then
    3839    $LOGGER "Removing default route from routing table 0 as machine is marked as service_proxy AND service_accesspoint"
    39     $LOGGER "`route -q del default 2>&1`"
     40    $LOGGER "`setfib 0 route -q del default 2>&1`"
    4041  fi
    4142}
Note: See TracChangeset for help on using the changeset viewer.