Getting Started
Unpacking and Setting up the system
See the Appliance Quick Start guide to get your system set up and ready to use.Accessing the ET/BWMGR GUI
You can access the Graphical User Interface by accessing the system via HTTP on the default address (http://192.168.0.100 by default). If you've set up a host name for the system, you can access it via the base root address.. The GUI is described in the V8 Gui Manual. It’s strongly recommended that you fully read this manual before starting with the GUI so you understand how things work. The GUI is a tool but you should also know what the GUI is doing so you’re not completely lost when you have problems or encounter a bug.Starting the ET/BWMGR
The default method for starting the BWMGR is to run it at boot time by enabling it in the Services Tab (as outlined in the Quick Start Guide). However it’s useful to understand how the startup system works and how you can start and stop the bwmgr manually.To start at boot, the bwmgr_enable variable must be set in /etc/rc.conf.
bwmgr_enable=“YESâ€This will start the bwmgr service (defined in /usr/local/etc/rc.d/bwmgr) by running bwmgrStarup, which runs the startup script that has all of the rules (/etc/rc.bwmgr).You can also start the service manually using the service command:
service bwmgr startNote that this will also run bwmgrStartup. You don’t usually want to rerun all of your rules, so there’s little reason to start the bwmgr this way. You could also run bwmgrStartup manually.If you just want to stop the bwmgr for 1 reason or anther, you can use the bwmgr utility:
# bwmgr stopand then restart it again#bwmgr startWhen you install a new license you may need to start is manually. Also, if your license isn’t working, you need to start it manually with the bwmgr utility to get an error code to determin what’s wrong.Using the CLI (Command-Line Interface)
Many common tasks can be done using the GUI, but the bwmgr utility allows you to do more things and also to get an understanding of what you are actually doing. It’s not a bad idea to learn to add simple rules with the GUI before using the GUI so you’ll have a better understanding of how the rules work. Rules in the startup script (/etc/rc.bwmgr) are stored in CLI format, so if you understand how rules are supposed to look to can better fine errors and to fix things that change with you upgrade the system.Accessing the System with a Terminal
The GUI has an integrated terminal app where you can enter command line command via your browser. Alternatively you can use Telnet or SSH to access the system from a remote terminalThe terminal app that runs in the browser is ttyd and it’s started in the /etc/rc.local file.
#!/bin/sh
/usr/local/bin/ttyd -t rendererType=canvas -p 8080 -t fontSize=20 login&The default port is 8080 and there are other options as well. You can change these options to your liking. Note that the terminal runs intependently of the GUI as well as a component of the GUI. You can access a terminal fro m a browser on the port it’s running on; so make sure you have the port properly firewalled from users outside your network. By default you can access the terminal with http://192.168.0.100:8080.
You can also access the system via Telnet or SSH via a terminal app on a remote system.
To Change the Root or Admin Password:
# passwd root
# passwd adminTo Change the GUI Password
# bwmgr guipassword USER NEWPASSWORDSecuring the System
Once you have the machine configured, it's a good idea to restrict access to server ports, such as Telnet, SSH, and the ET/BWMGR and ET/Admin GUI.System Backups
Setting up the Hard Drive Backup System
On appliances with two or more drive bays, the additional drives can be used for backups. Looking at the front of the case, the main disk is always installed in the left-most drive bay, and the first backup disk immediately to the right. Disks are numbered from left to right. On a newly purchased appliance, any backup disks will have a copy of the main disk as it was shipped. The backup task is not enabled by default on new appliances. You must enable the scheduled task that backs up the contents of the main disk to the backup disk(s).Enabling/Configuring the Hard Drive Backup
To enable automatic backups, edit /etc/crontab to include a line that runs diskutil. On current systems running FreeBSD 9.1, the first backup disk will be named "ada1".in which case you should change DISK to the name of your second drive, which is typically named ada1. You can double-check this with the diskutil list command:/usr/local/bin/diskutil backup ada1 fullThe entry may also readdiskutil backup DISK full
#diskutil listada0 (Root): [152627 MB] WDC WD1600AAJS-08B4A0/01.03A01> Serial ATA II
ada1 [152627 MB] WDC WD1600AAJS-00YZCA0/01.03B01> Serial ATA II
To change the status or configure the time(s) at which the backup occurs, edit /etc/crontab
To enable the backup, remove the hashtab (comment indicator) at the beginning of the line. The first 2 entries are minutes and hours. So the setting above would enable a backup at 2:10 AM.It's a good idea to check the first time to make sure it works. Just mount the backup disk and look at a log file like /var/log/messages to see when the update occurred.The backup utility will not run until the corresponding job is enabled.
Preparing a new Backup Disk
Appliances are shipped with a working mirror backup drive. To prepare a new drive:diskutil ada1 build
diskutil ada1 backup
bwmgr_license register-backup
bwmgr_license check-backupWhat to do if your main Hard Drive Fails
If your main disk fails, then you can switch to a backup disk.- Halt and power-down the appliance, if it is not already powered off.
- Remove the main drive. Appliances will typically have a button-and-lever release on the front of the drive bay that will allow the drive to be removed. First press the button, and the lever should be released. Unfold the lever before sliding the drive out.
- Remove the spare drive, using the same procedure.
- Insert the spare drive into the primary drive bay, using the lever to lock it into place.
- Boot the appliance.
Initializing a new backup hard drive
If you have an older appliance has IDE disks, then you must power-off the appliance before installing the replacement drive. SATA drives, with the exception of the Root drive, can be installed while the appliance is running. Once you have installed the backup drive, run the following command as the "root" user, using the the target disk name. Run "diskutil list" to show the available drives if you are unsure which disk name to use. Our example shows the typical name "ada1".#diskutil listada0 (Root): [152627 MB] WDC WD1600AAJS-08B4A0/01.03A01> Serial ATA II
ada1 [152627 MB] WDC WD1600AAJS-00YZCA0/01.03B01> Serial ATA II
#diskutil build ada1
This will partition and format the backup disk.
Backing up your Database
If you don't have a dual disk system, it's prudent to back up your database. Database crashes are a common occurranceUsing Bypass/Failover Cards
Almost all appliances sold by Emerging Technologies have a hardware bypass (AKA Failover) card installed. During normal system operation, when the unit is powered on, has booted successfully, and the ET/BWMGR has started, the Failover ports act as normal network ports. If the system loses power or crashes, the ports will enter bypass mode, in which the ports are connected physically as with a cross-over coupler. This will enable traffic to pass unrestricted through the failover ports.You can also manually take the system offline to do maintenance, using the ET/BWMGR GUI. Click on the "Bypass" tab, and click on Close, which will bypass the failover ports. It is also recommended you take the unit offline in this manner before performing system upgrades.
Appliances are shipped with bypass function disabled; the system should be set up with bypass closed. Traffic should pass with the system powered down and with the system powered up and the bypass closed. When setting up the system, you can open the bypass manually in the GUI and the links should come up; if bridges are set up traffic should pass. You need to test that the connection re-establishes when you close the bypass; when the bypass is closed, the 2 switches or routers connected to the BWMGR have to re-establish a link. the BYPASS hardware does add quite a bit of capacitance to the line (likely out of spec), so you have to make sure you have switches and wires that will work. Sometimes a long or poor quality wire will not be able to connect when the bypass card is in the circuit.
Enabling the bypassd daemon
Systems are shipped with the bypass daemon disabled to give you an opportunity to set up the system. The bypass daemon is started in /etc/rc.local. When you're ready to put the system into production, you'll need to uncomment the line that enables it.# Open the bypass ports and start the watchdog#/usr/bwmgr/utils/bypassdRemove the # before the line with bypassd so that the daemon is run at boot. To run the daemon from the command line, simply run it.# bypassdYou should hear the relays click (if you're near the system) and the bypass ports should "open".Rebooting the System
In the ET/BWMGR Gui select the Shutown tab and hit the Reboot button. Alternatively, from the CLI, you can just enter the reboot command as root:# rebootPost-Configuration Security
Firewalling the Appliance
Once you have your system configured and running in a stable manner, there are a few simple steps you can and should take to ensure that only authorized users can access the system. These appliances are not meant to be accessable by the internet at large. You should firewall the appliance generally and then whitelist those users who might need to access the appliance from outside your local network.* Create firewall rule(s) that enable only your local net, or individual machines, access to your system. This rule should be created on the outside interface.
# bwmgr em2 -x 1000 -name IntAllow -fw -ipprot tcpconnect -saddr 192.168.1.0 -saddrmsk 255.255.255.224 -daddr 192.168.1.110The ET/BWMGR should not be "on the internet" without substantial firewalling.To do.
* On your external (outside) interface, create a firewall rule that denies ALL access to the IP address of your system. Or, if you are using the Failover hardware, create this rule on the administrative port. Leave room in your ruleset to create specific allow rules if you have an employee who needs to work on the machine remotely, or to allow traffic to a specific port (80) in the event that you allow your customers to view their graphs.
# bwmgr fxp0 -x 1500 -name DenyAll -fw -ipprot tcpconnect -daddr 207.252.1.110 -priority FW-Deny* Change the default passwords for admin, root, and the "admin" user in the ET/Admin GUI. This is less of a priority if you've already blocked external access to the machine, but it is still a good thing to do. If, for some reason, you do not block access to the bandwidth manager appliance, changing the passwords is an absolute requirement.
