notes
This commit is contained in:
@@ -26,3 +26,17 @@ foreach ($iflist as $ifname => $ifcfg) {
|
|||||||
#print_r($ifcfg);
|
#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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user