# IP Objects
FWCloud supports a variety of object types like Addresses, Ranges, Networks, Domain names, Hosts, IPTables marks and Groups. Think in objects like a more convenient way to refer an element of a firewall rule or a VPN configuration.
For example instead of using '18.104.22.168' you can use 'OSFP (all routers)' that is more readable, or you can use 'First flour switches' instead of including in your rule all IP addresses of the switches of that particular flour.
Every kind of objet has its own block. Check next sections in this help to know which fields has every type of objects.
Represent an IP address in both IPv4 and IPv6. To add new IP addresses, just hover the mouse over
IP Address and select
New IP address from the context menu.
You get a new form, the fields of this objects are: name, address, netmask, IP version and comments.
If you expand
IP Address block you see a subsection called
Standard. For your convenience the wellknown standard IP addresses has been included inside.
Here you have a list of the IP addresses in the
|DHCP server, relay agent||22.214.171.124|
|OSPF (all routers)||126.96.36.199|
|OSPF (designated routers)||188.8.131.52|
# Address Ranges
Allow you to define a range of IP addresses, and give it a name you can use in the policy rules, for instance from 192.168.1.0 to 192.168.4.231.
Standard address ranges has been included:
|Name||Range start||Range end|
You can define a network (Visitor LAN, Control network, etc.) using the IP address and its net mask.
Also this section includes a list with the
If your servers or routers have dynamic IP address you can use the FQDN. This is quite useful when creating the configuration file of a VPN connection. (Visit VPN section )
You can define a host by its name and then define its network interfaces and the IP addresses. Then when you include that IP address in a rule it will be more easy to identify which host it belongs to.
Let's see some policy rules including this new defined host:
# IPTables Marks
You can create marks values to get them associated with specific packets and then do advanced routing or set different queueing strategies. This marks are only valid within the mangle table. In FWCloud-UI marks have a name an code, an integer value that is actually the mark when translated into IPTables syntax.
To use these marks drag them from the Objects section and drop them in the Action field of the the policy rules.
This objects acts as a container of other objects. This way you can have a group that includes some of your networks, or some IP address of your organization that are related in same way, and use then as a whole. For instance one of the groups already defined is
rfc1918-nets that includes all of the IPv4 addresses for private networks. This group is formed from three previously defined network objects.
Here you can see the groups already defined in the
In any Policy rule you have to add the services involved, or any, to restrict the scope of the rule. In FWCloud-UI this is done by dropping services from the
If you expand this block the services are classified into five main groups:IP, ICMP, TCP, UDP and Groups.
All categories include a subsection with the
Standard block of services included.
Here you can add the IP protocol numbers. This is the value you can find in the field "Protocol" in IPv4 or in "Next Header" in IPv6. The numbers defined by IANA has been defined yet inside the
In order to add a new object of IP service type, just right click over
IP and select
New IP service and fill the form with the name and the protocol number
In this section you have the
ICMP service objects that make reference to the messages of the Internet Control Messages Protocol. In the
Standard folder you have the ICMP messages defined in the RFC documents. To add a new one you need to write the name, its ICMP type and its ICMP code.
This type of objects makes reference to the TCP port numbers designated for used with a certain protocols or applications. In the
Standard folder has been included vast list of the well-known and the registered ports.
As with the other types of objects you can add more to suit your needs.
Note that when defining a new TCP service, you can customize the source port and the destination port. Usually only the destination port is used.
You can also specify the TCP flags. This option accepts two parameters. The first parameter is the mask, which sets the flags to be examined in the packet. The second parameter refers to the flag that must be set in order to match the rule.
For example if you want all the flags to be examined but only ACK and SYN must be active:
This type of objects make reference to the UDP port numbers designated for used with a certain protocols or applications. In the
Standard folder has been included vast list of the well-known and the registered ports.
More ports can be added to this list when needed.
For simplicity and better reading of the policy rules, several services can be grouped together and referenced by a group name. For instance you can create a group called "SMTP-Ports" and include following TCP services in it: smtp (25), smtp-MSA(587) and smtps(465)
FWCloud-UI came with three groups included in the
Standard folder, they are called: DHCP, NETBIOS and Useful ICMP. You can use them or as an example for creating your new own groups.
In order to quickly find any of the objects you can use the search box.
The content displayed in any of the sections: Firewalls, Objects or Services will be filtered by the text entered into the search box as you are typing, limiting the shown results. All folders and groups that have object names that match the searching pattern will be expanded to display them, no matter if they are standard objects or defined by the user.
The default criteria is to match all but this option can be configured. At least one option must be checked, but you can check more than one.
The text pattern can be searched in the names of the objects ("Search by name"), or in their values. When "Search by TCP/UDP port" is selected, the port number of the pattern requires an exact match, because the result includes not only the object that has this port as its value but also all the ranges it is included in. That is, if 8080 is searched, the "TCP high ports" standard object also will also be displayed, among others, since its range goes from 1024 to 65535.
Once you find the object you are looking for you can drag and drop it on any rule of the security policy.
When you clear the search box everything will be expanded showing the full content of the sections.
# Objects operations
From the contextual menu of the objects they can be duplicated. This is useful when you are creating objects of the same type that have common properties. For instance several IP addresses that belong to the same network. All of them share the network address and mask. Instead of creating a new object for each you can create only the first one, duplicate it and then modify only the host part of the address.
In order to modify an object you can double click on its name or select "Edit" from the contextual menu. You will be presented a form with all the object properties. You can edit the values of these properties to suit your needs.
# Where used
Another feature very useful is that you can right click on any object of FWCloud-UI and select
Where used ffrom the contextual menu
and a form pops up indicating all the places where this object is used. For example, the following figure show the objects and rules that make use of service object "smtps".
If we double click on any of the objects of the form it will head us to the place where the object is used. For instance, if whe double click on the rule 28 of the cluster named "Cluster FirstFW" we will be presented with the rule of this cluster policy and remaking the field than contains the object with a light blue background.
If you want to go the the next rule or group that use the object just click on the icon and you get back to the "Where used" window. This window will remark the object reviewed in light blue background.
For any user created object there is an extra option in the contextual menu to delete de object.
If you try deleting an object that is in use, FWCloud-UI is going to warn you about this and will not allow you to delete the object until the restrictions are removed.
A pop up windows will show where the object is being used.
If you double click on any of the showed rules FWCloud-UI will redirect you to that rule remarking the object in light blue background.
There is another important restriction. If an object belongs to a group that only has this object and this group is used in a policy rule, then the object can not be deleted. This is because allowing to do that would lead to an incorrect policy. Let's see this with an example:
Imagine a public service group that has only the user-created service, TCP-1234, and that group is used in a rule that allows services in that group to access a server from the Internet.
If FWCloud-UI allowed the deletion of the TCP-1234 service (which is the only element of the group used in the rule), we would leave a rule that would allow access to any service (the group is empty) of that server. When compiled that rule would be: "$IPTABLES -A FORWARD -i eth0 -o eth1 -d 192.168.0.1 -m conntrack --ctstate NEW -j ACCEPT" , that probably is not our intention. So FWCloud-UI throws an error: