81pfSense Setup WizardtrueThis wizard will guide you through installing pfSense initially.Nextsubmit2General InformationOn this screen you will set the General pfSense paramaters.Hostnameinputsystem->hostnameEXAMPLE: myserverDomaininputsystem->domainEXAMPLE: mydomain.comPrimary DNS Serverinputsystem->dnsserveryes0Secondary DNS Serverinputsystem->dnsserver1Nextsubmit3Time Server InformationPlease enter the time, date and time zone.Time server update frequencyEnter the amount in minutes.inputsystem->time-update-intervalTime server dns nameEnter the name of the time server.inputsystem->timeserversTimezoneselectsystem->timezoneNextsubmit4trueConfigure WAN InterfaceOn this screen we will configure the Wide Area Network information.
var selectedItem = 0;
if(document.forms[0].ipaddress.value == 'dhcp') {
selectedItem = 1;
document.forms[0].ipaddress.value = '';
} else if(document.forms[0].ipaddress.value == 'PPPoE') {
selectedItem = 2;
document.forms[0].ipaddress.value = '';
} else if(document.forms[0].ipaddress.value == 'PPTP') {
selectedItem = 3;
document.forms[0].ipaddress.value = '';
} else if(document.forms[0].ipaddress.value == 'BigPond') {
selectedItem = 4;
document.forms[0].ipaddress.value = '';
} else {
selectedItem = 0;
}
document.forms[0].selectedtype.selectedIndex = selectedItem;
enableitems(selectedItem);
SelectedTypeselecttrueGeneral configurationlisttopictrueMAC Addressinterfaces->wan->spoofmacinput This field can be used to modify ("spoof") the MAC address of the WAN interface (may be required with some cable connections) Enter a MAC address in the following format: xx:xx:xx:xx:xx:xx or leave blanktrueMTUinputinterfaces->wan->mtu If you enter a value in this field, then MSS clamping for TCP connections to the value entered above minus 40 (TCP/IP header size) will be in effect. If you leave this field blank, an MTU of 1492 bytes for PPPoE and 1500 bytes for all other connection types will be assumed.Static IP ConfigurationlisttopicIP Addressinterfaces->wan->ipaddrinput / truetruetruetrueSubnet Maskinterfaces->wan->subnetselectGatewayinterfaces->wan->gatewayinputBandwidth Management (Traffic Shaping)listtopicSchedulertrueselectinterfaces->wan->schedulertypeSelect which type of queueing you would like to usetruetrueInterface Bandwidth Speedinput | interfaces->wan->bandwidthSpeed Typetrueselecttruetruetrueinterfaces->wan->bandwidthtypeDHCP client configurationlisttopicDHCP Hostnameinputinterfaces->wan->dhcphostname The value in this field is sent as the DHCP client identifier and hostname when requesting a DHCP lease. Some ISPs may require this (for client identification).PPPoE configurationlisttopicPPPoE Usernameinputpppoe->usernamePPPoE Passwordinputpppoe->passwordPPPoE Service nameinputHint: this field can usually be left emptyPPPoE Dial on demandEnable Dial-On-Demand modecheckboxThis option causes the interface to operate in dial-on-demand mode, allowing you to have a virtual full time connection. The interface is configured, but the actual connection of the link is delayed until qualifying outgoing traffic is detected.PPPoE Idle timeoutinputIf no qualifying outgoing packets are transmitted for the specified number of seconds, the connection is brought down. An idle timeout of zero disables this feature.PPTP configurationlisttopicPPTP Usernameinputpptp->usernamePPTP Passwordinputpptp->passwordtruePPTP Local IP Addressinput / pptp->localtruetruetruepptplocalsubnetpptp->subnetselectPPTP Remote IP AddressinputPPTP Dial on demandEnable Dial-On-Demand modecheckboxThis option causes the interface to operate in dial-on-demand mode, allowing you to have a virtual full time connection. The interface is configured, but the actual connection of the link is delayed until qualifying outgoing traffic is detected.PPTP Idle timeoutinputIf no qualifying outgoing packets are transmitted for the specified number of seconds, the connection is brought down. An idle timeout of zero disables this feature.BigPond configurationlisttopicBigPond Usernameinputbigpond->usernameBigPond Passwordinputbigpond->passwordBigPond Authentication serverinputbigpond->authserverIf this field is left empty, the default ("dce-server") is used.BigPond Authentication domaininputbigpond->authdomainIf this field is left empty, the domain name assigned via DHCP will be used. Note: the BigPond client implicitly sets the "Allow DNS server list to be overridden by DHCP/PPP on WAN" on the System: General setup page.BigPond min heartbeat intervalinputsecondsbigpond->minheartbeatinterval Setting this to a sensible value (e.g. 60 seconds) can protect against DoS attacks.RFC1918 NetworkslisttopictrueBlock RFC1918 Private Networks When set, this option blocks traffic from IP addresses that are reserved for private networks as per RFC 1918 (10/8, 172.16/12, 192.168/16) as well as loopback addresses (127/8). You should generally leave this option turned on, unless your WAN network lies in such a private address space, too.checkboxinterfaces->wan->blockprivBlock private networks from entering via WANNextsubmit
echo " IN STEP SUBMIT BEFORE SAVE!" ;
echo " " . $_POST['selectedtype'];
if($_POST['selectedtype'] == "Static") { } else {
echo $_POST['selectedtype'] . " ";
$_POST['ipaddress'] = $_POST['selectedtype'];
$config['interfaces']['wan']['ipaddr'] = $_POST['selectedtype'];
write_config();
}
5Configure LAN InterfaceOn this screen we will configure the Local Area Network information.LAN IP Addressinputinterfaces->lan->ipaddrType dhcp if this interface uses dhcp to obtain its ip address.Subnet Maskselectinterfaces->lan->subnetNextsubmit6Set ADMIN PasswordOn this screen we will set the Admin password.ADMIN PasswordpasswordADMIN Password AGAINpassword
if($_POST['adminpassword'] != "") {
if($_POST['adminpassword'] == $_POST['adminpasswordagain']) {
$fd = popen("/usr/sbin/pw usermod -n root -H 0", "w");
$salt = md5(time());
$crypted_pw = crypt($_POST['adminpassword'],$salt);
fwrite($fd, $crypted_pw);
pclose($fd);
} else {
print_info_box_np("Passwords do not match!");
die;
}
}
Nextsubmit7ReboottrueOn this screen we will reboot pfSense so your changes will take affect../sbin/shutdown -r nowRebootsubmit8Reboot in progressA reboot is now in progress. Please wait.
system("/sbin/shutdown -r now");