So i take some time to find out how the config work but now i have a workaround !!!
no thanks to all developer for no help nice community here :(
if echo "$(/usr/local/sbin/pfSsh.php playback /etc/phpshellsessions/gatewaystatus)" | grep -i 'BOND_WIESBADEN' | grep -q "down"; then
dt=$(date '+%d/%m/%Y %H:%M:%S');
echo "$dt reset bond" > /var/log/check.log
/usr/local/sbin/pfSsh.php playback /etc/phpshellsessions/checkgw >> /var/log/check.log
fi
checkgw
require_once("ipsec.inc");
require_once("functions.inc");
require_once("filter.inc");
require_once("shaper.inc");
require_once("rrd.inc");
require_once("vpn.inc");
require_once("xmlparse_attr.inc");
parse_config(true);
$lagg = array();
$lagg['members'] = $config["laggs"]["lagg"][0]["members"];
$lagg['descr'] = $config["laggs"]["lagg"][0]["descr"];
$lagg['laggif'] = $config["laggs"]["lagg"][0]["laggif"];
$lagg['proto'] = $config["laggs"]["lagg"][0]["proto"];
$lagg['laggif'] = interface_lagg_configure($lagg);
if ($lagg['laggif'] == "" || !stristr($lagg['laggif'], "lagg")) {
$input_errors[] = gettext("Error occurred creating interface, please retry.");
} else {
if (isset($id) && $a_laggs[$id]) {
$a_laggs[$id] = $lagg;
} else {
$a_laggs[] = $lagg;
}
write_config();
$confif = convert_real_interface_to_friendly_interface_name($lagg['laggif']);
if ($confif != "") {
interface_configure($confif);
}
// reconfigure any VLANs with this lagg as their parent
if (is_array($config['vlans']['vlan'])) {
foreach ($config['vlans']['vlan'] as $vlan) {
if ($vlan['if'] == $lagg['laggif']) {
interface_vlan_configure($vlan);
$confif = convert_real_interface_to_friendly_interface_name($vlan['vlanif']);
if ($confif != "") {
interface_configure($confif);
}
}
}
}
}
i installed the cron package and setting up this script to check every minute the state of the lagg0.
now after a reboot the lagg seem to be automaticly working and everything work fine !
so it looks like a timing or reconfiguring problem.
I have pppeo wan connections with openvpn tunnels tap on it.