Table_of_Contents
1 Install SecureOffice Virtual Machine
1.1 Configure SecureOffice Basic Networking
1.1.1 Disable VmWare DHCP Service
1.1.2 Configure SecureOffice WAN Interface
1.1.3 Configure SecureOffice LAN Interface
1.2 SecureOffice Full LAN Interface
List of Figures
Figure 1: VmWare DHCP Service
Figure 2: VmWare Network Bridged
Figure 3: VmWare Network Custom
Figure 4: Host Network Interfaces
Figure 5: Host Network Configuration
Figure 6: Bridge Eth2 To LAN
Users wishing to avoid the complexity, cost, time and effort of selecting and configuring real hardware or seeking instant gratification can run a pre-installed, free SecureOffice virtual machine. Later, once real hardware is selected and available, configuration can be backed-up and restored to real hardware. No hardware except a host PC or laptop running free VmWare Workstation is required. This approach provides a way to determine if you want to invest in hardware or to quickly proceed while waiting for hardware.
These instructions are for Windows users. Instructions are similar for Linux.
SecureOffice running as a virtual machine has the following limitations:
To acquire and install the SecureOffice virtual machine:
This is the default virtual machine configuration. The SecureOffice WAN interface is bridged to the local LAN on the host PC provided by your upstream router. The SecureOffice virtual machine will be able to access the entire LAN and internet. PC's on the LAN will be able to access SecureOffice if the SecureOffice firewall is configured to allow it.
Only the host PC will be able to communicate with the SecureOffice LAN using the VmWare Workstation VMnet1 ethernet interface.
If full SecureOffice LAN functionality is required (for connecting multiple devices), add and bridge to a SecureOffice LAN ethernet interface (SecureOffice Full Lan Interface).
The SecureOffice LAN is (default) connected to host ethernet adapter VMnet1 which VmWare Workstation installs automatically. This adapter must be configured to automatically receive an IP address from the SecureOffice virtual machine.
The VmWare Workstation DHCP service must be disabled on the host PC to avoid conflicts. This will affect all virtual machines on the host PC, some of which may depend on VmWare DHCP. If this is a problem, there are two alternatives:
DHCP service (for SecureOffice LAN devices) is provided by SecureOffice. This includes VMnet1 and any devices that are connected using the optional full (real) LAN interface interface.
To stop and disable the VmWare DHCP Service: "Start Menu -> Computer (right click) -> Manage -> Services and Applications -> Services" or search control panel for services. You will see the services control panel, as below (scroll down to VmWare DHCP):
Figure 1: VmWare DHCP Service
Right click on "VMware DHCP Services", select "Stop"
Right click on "VMware DHCP Services", select "Properties" and change "Startup Type" to "Disabled". Press "OK".
The SecureOffice WAN interface is bridged to the internet gateway ethernet interface on the host PC, sharing the host PC internet connection. This corresponds to interface "eth1" assigned as the WAN interface within the virtual machine.
Stop the SecureOffice virtual machine, if it is running (login user:"root", password:"admin_54321", enter "shutdown" from within virtual machine console). Start VmWare Workstation again, select, but do not run the SecureOffice virtual machine. Select "Edit Virtual Machine Settings". Select "Network Adapter 2 (Bridged)", "Configure Adapters". You will see something like the figure below.
Figure 2: VmWare Network Bridged
The settings should be as above except in "Automatic Bridging Settings" where the host PC ethernet adapter providing internet access (only one) must be selected. Press, "OK" twice.
The SecureOffice LAN interface is connected to the VMnet1 ethernet interface (created by VmWare Workstation install) on the host PC, providing a dedicated interface to the SecureOffice LAN. This corresponds to interface "eth0" assigned as the LAN interface within the virtual machine.
Stop the SecureOffice virtual machine, if it is running (login user:"root", password:"admin_54321", enter "shutdown" from within virtual machine console). Start VmWare Workstation again, select, but do not run the SecureOffice virtual machine. Select "Edit Virtual Machine Settings". Select "Network Adapter Custom (VMnet1)". You will see something like the figure below. This is the default SecureOffice VM configuration. Insure it is as shown below, then press "OK" to exit.
Figure 3: VmWare Network Custom
In Windows (on host PC), navigate to "Control Panel -> Network and Internet -> Network Connections". You will see something like the figure below:
Figure 4: Host Network Interfaces
Right click on "VMnet1", select "Properties", select "Internet Protocol Version 4", select "Properties". You will see something like the figure below.
Figure 5: Host Network Configuration
This sets your host PC (VMnet1 virtual ethernet interface) to receive a DHCP IP address from SecureOffice.
Change the "Preferred DNS server" entry as above (Google DNS) or, to your preferred DNS server. Click "OK"
If full SecureOffice LAN access (by devices other than your host PC) is required, skip to the next section.
Start VmWare Workstation, select, the SecureOffice virtual machine. select "Play Virtual Machine". If VmWare asks whether you moved or copied the virtual machine, select "I copied it". SecureOffice will boot.
Communication can be tested by (host command prompt): "ping 192.168.10.1" and / or entering the SecureOffice LAN address in the address bar of a browser to access the SecureOffice Luci configuration interface.
In subsequent sections, you will be using LAN network topology.
Proceed to OpenWrt configuration (skip following hardware installation steps). You are now ready to install extra packages and configure SecureOffice and your network for your own applications.
The SecureOffice LAN will be bridged to a dedicated ethernet interface (device or USB dongle) on the host PC, allowing all devices (including ethernet switches / hubs) connected to it to have full access to the SecureOffice LAN.
The bridging is done by giving VmWare control of the network device on the host PC (Player - > Removable devices ->Device Name -> Connect) which allows SecureOffice to control the device natively. This requires a driver for the device to be installed on SecureOffice. For simplicity sake, it is assumed the device is a USB ethernet dongle. SecureOffice comes with pre-installed drivers for the following USB ethernet devices:
Start VmWare Workstation, select, the SecureOffice virtual machine. select "Play Virtual Machine". If VmWare asks whether you moved or copied the virtual machine, select "I copied it". SecureOffice will boot.
If you do not see a line containing "eth2", the required driver must be identified and installed:
Use the nano editor: "nano /etc/config/network". Add eth2 to the lan bridge as shown below, save the file and exit nano:
config interface 'lan'
option ifname 'eth0 eth2'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.10.1'
option netmask '255.255.255.0'
option dns '192.168.10.1'
option ip6assign '60'
Figure 6: Bridge Eth2 To LAN
Enter "/etc/init.d/network restart" to have the changes take effect.
Connect another PC or laptop to the dedicated LAN interface (optionally via an ethernet switch or hub).
Communication can be tested by the PC connected to the new LAN interface (command prompt): "ping 192.168.10.1" and / or entering the SecureOffice LAN address in the address bar of a browser to access the SecureOffice Luci configuration interface.
In subsequent sections, you will be using LAN network topology.
Proceed to OpenWrt configuration. You are now ready to install extra packages and configure SecureOffice and network for your own applications.
|
Technologies Used: