Previous page

Next page

Locate page in Contents

Print this page

Managing Container Firewall

Linux A firewall is part of your OS and its security. Its main function is to block or permit traffic between two systems or two parts of a network. The Virtuozzo Containers software has a built-in firewall that can be managed through both Virtuozzo Power Panel and Virtuozzo Automator. Along with - and apart from - the Virtuozzo Power Panel and Virtuozzo Automator web interface, the command line is an effective tool to manage a firewall. Here are the basic principles that make a firewall work.

A firewall applies a control policy over the firewalled system. There are three policies:

  • accept the packet: if the packet is accepted, it gains access to the system;
  • drop the packet: if the policy is to drop the packet, the packet is denied access to the system;

You can set one of the three policies when creating or editing an access rule in the advanced mode.

The policies, along with ports and protocols, are chains' attributes. A chain is a list (or a chain) of rules grouped by the criterion of what type of packets they process. There are three packets types:

  • input;
  • output;
  • forward.

Therefore we can create three chains - the Input chain, the Output chain and the Forward chain. The Input chain examines the incoming packets. If there is a rule to process a packet, the latter is either let in (accept policy) or not (drop/reject policy). Otherwise, the packet is examined by the next rule. If, finally, there is not any rule to match, the default system policy is applied. The first rule applied to a packet is the first one on the list that forms a chain.

If a packet is created inside the system, it is sent to the Output chain.

Packets that pass through the system, traverse the Forward chain.

When configuring a firewall, you can change a rule's position on the list, delete a rule from the list, create, edit and add rules to the list.

To configure the firewall, click on the Firewall link on the Container dashboard.

See Also

Managing Container Services and Processes

Managing Container Services

Managing Container Processes

Control Panels for Containers

In This Section

Selecting Mode

Configuring Firewall in Normal Mode

Adding Access Rule in Normal Mode

Building Input Chain

Building Output Chain

Building Forward Chain

Adding Rule in Advanced Mode

Editing Rule in Advanced Mode