This commit is contained in:
2021-11-30 11:37:17 -05:00
parent cb8c88b4b6
commit d88ef1b3b2

View File

@@ -25,4 +25,18 @@ foreach ($iflist as $ifname => $ifcfg) {
$ifcfg['details'] = $ifdetails[$ifcfg['if']];
#print_r($ifcfg);
}
}
}
# I think i need to see the $config to see what things are like first
# then I need to setup the config, write it and then start the WAN DHCP config
# get the WAN_DHCP gateway IP address and WAN ip
# Set the wan to a private address, set CRAP VIP WAN to the DHCP wan address, and set the WAN_GW to the DHCP GW IP
# write config and update things
# Config for WAN DHCP
$config['interfaces'][$interface]['ipaddr'] = 'dhcp';
$config['interfaces'][$interface]['subnet'] = '';
$config['interfaces'][$interface]['gateway'] = $gwname;
$config['interfaces'][$interface]['enable'] = true;