mbox firewall overview

In computing, a firewall is a network security system that controls the incoming and outgoing network traffic based on an applied rule set. A firewall establishes a barrier between a trusted, secure internal network and another network (e.g., the Internet) that is assumed not to be secure and trusted.

Similar to many commercial stateful firewall appliances, mbox utilizes sophisticated iptables engine built-into Linux kernel, together with some proprietary software to enforce strong perimeter defence for customer networks. The key functions of mbox firewalling capabilities are:

There are a few key terminologies we need to understand as part of the configuration.

 

firewall-input. This is for permit/deny access to mbox services itself (eg. ssh, http)

firewall-access. This is for permit/deny traffic passing through mbox (eg. from inside to outside). There are two important behaviors of a firewall-access rules.

firewall-dnat (change destination address of IP packet). This is typically for providing access from Internet to internal hosts. mbox changes packet destination headers (address or port number) as it passes through mbox (typical inbound access). There are two main scenarios:

firewall-snat (change source address of IP packets). This typically for providing access from inside/private network to Internet. mbox changes packet source header (address or port number) as it passes through mbox (typically for outbound access). Common implementation is also called Port Access Translation (PAT), which translates all internal hosts IP addresses to a single public IP (WAN interface IP addresses) but differentiate each connections by port numbers.

firewall-set (manipulate packet header fields). This is typically for QoS/traffic-shaping purpose by marking certain headers of the packet for further processing (by QoS rules or policy-based routing).

It is important to note that firewall-dnat/snat/set rules only change packet headers. In order for a packet to pass through mbox, it still has to be permitted by access rules. So firewall-dnat/snat/set rules must be used together with access rules.

Understand Firewall Order of Operation

Diagram below illustrates how a packet is treated when it comes in and out from mbox.

 

firewall.jpg