Zentyal As A Gateway: The Perfect Setup

Want to support HowtoForge? Become a subscriber!
 
Submitted by exekias (Contact Author) (Forums) on Mon, 2011-05-23 16:13. :: Linux | Control Panels

Zentyal As A Gateway: The Perfect Setup

1. Introduction

Zentyal is the Linux Small Business Server, it lets you manage all your network services through one single platform. It's a Network Gateway, as well as an Infrastructure, UTM (Unified Threat Manager), Office and Communications Server. All these features are fully integrated and easy to configure, it truly helps to save system administrators time.

In this tutorial you will see how to set up a Zentyal Server to act as a gateway in a very common scenario. Zentyal will provide basic network infrastructure, load balancing between two Internet providers, firewall and HTTP proxy caching and content filtering. All these steps are well explained in the Zentyal Documentation, which is a really recommended reading. The following example network layout is used:

 

2. Installation

Zentyal runs on top of Ubuntu Server so it will work on the same hardware. You can take a look at the Ubuntu-certified hardware page for more information. There are two ways to install Zentyal:

  1. Using Zentyal installer that you can download from the project website. This is the recommended choice, it includes all package dependencies for offline install and also makes some custom configuration.
  2. Install on top of a working Ubuntu Server, you can find detailed info and URL for the repository in the Zentyal Installation Guide.

If you install Zentyal using the installer you will see this screen when booting from CD-ROM and a couple of wizards will guide you through the process. You can choose default settings in all of them.

Zentyal provides a web administration interface, after the installation a Firefox browser will show up giving you access to it (you can also access Zentyal from any client browser typing: https://zentyal_server_ip). User and password are the same you entered during installation.

Now you can select the desired packages to install, for this tutorial you should install the Gateway package. Later DHCP and DNS modules will also be installed by using the Software Management module.

After this step all the necessary packages are installed, now setup will guide you through configuration wizards for installed modules, in this case Network and Users. We can skip network configuration for now, so if you start this tutorial from an already installed Zentyal you can still follow it.

Zentyal Server is now installed. By following the next steps you will configure each module.

 

3. Network

As shown in the scenario, you have to configure three network interfaces, two external routers and one for the internal network. Zentyal will balance traffic between the two Internet connections.

 

3.1. Interfaces

Go to Network -> Interfaces and configure each interface by introducing its IP and netmask. Don't forget to mark external interfaces because Zentyal uses this info in firewall rules. In the next image you can see configuration for one of the external interfaces and the internal one.

 

3.2. Gateways and load balancing

Now you have to set up both gateways in the gateways table (Network -> Gateways):

Go to Network -> Balance Traffic to enable load balancing between the gateways.


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.