Changeset 10651 in hybrid
- Timestamp:
- May 2, 2012, 9:50:50 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/releng-9.0/nanobsd/files/etc/dhclient-exit-hooks
r10609 r10651 22 22 $LOGGER "curr default gateway: $new_ext_if_gw" 23 23 if [ -n "$new_ext_if_gw" -a "$new_ext_if_gw" != "$ext_if_gw" ]; then 24 $LOGGER " Reloading PF firewall to load new ext_if_gw=$new_ext_if_gw"24 $LOGGER "Syncing new default route ($new_ext_if_gw) to routing table 1" 25 25 { grep -v '^ext_if_gw=' $rc_conf_running; echo "ext_if_gw=$new_ext_if_gw"; } > $rc_conf_running 26 $LOGGER "`/etc/rc.d/pf reload 2>&1`" 26 $LOGGER "`setfib 1 route -q del default 2>&1`" 27 $LOGGER "`setfib 1 route -q add default $new_ext_if_gw 2>&1`" 27 28 fi 28 29 else … … 35 36 36 37 if [ -n "$new_ext_if_gw" ] && checkyesno "service_proxy_normal" && checkyesno "service_accesspoint"; then 37 $LOGGER "Removing default route as machine is marked as service_proxy AND service_accesspoint"38 $LOGGER "Removing default route from routing table 0 as machine is marked as service_proxy AND service_accesspoint" 38 39 $LOGGER "`route -q del default 2>&1`" 39 40 fi
Note:
See TracChangeset
for help on using the changeset viewer.