Manage firewall rules for traffic filtering when proxying
You can use the firewall to set up network security when proxying traffic for mobile farm devices. Firewall rules are applied only when you start proxying traffic. Learn more about proxying in the Manage mobile farm device traffic proxying.
Each project has its own firewall.
When proxying, all incoming traffic to mobile farm devices is allowed; this cannot be changed. All outgoing traffic is denied by default. You can configure rules for outgoing traffic to:
Rules are applicable to all protocols.
If you use rules for domain names, keep in mind that domain names are resolved on your device and the firewall filters traffic before DNS resolution.
For example, you added a rule to allow traffic for the IP address 1.1.1.1. If you make a request to example.com, which is associated with the IP address 1.1.1.1 on your device, then this rule will not apply. When passing through the firewall, the IP address and domain name are not yet associated. The rule will only be applied to this request if you allow traffic for example.com.
Add a rule
Changes to traffic filtering will take effect immediately after saving them.
You can add up to 100 rules.
-
In the control panel, on the top menu, click Products and select Mobile Farm.
-
Make sure you are in the correct project. If you need to change the project, open the project menu (the name of the current project) and select a project.
-
Go to the Firewall section.
-
Click Create Rule.
-
Select an action for the rule.
-
Enter an IP address, subnet, or domain name. The domain name is resolved on your device, so the firewall filters traffic before DNS resolution. When adding a rule, consider what you use in requests to your device.
To apply the rule to all addresses, click All addresses.
-
Enter a single port or a range of ports.
To apply the rule to all ports, click All ports.
-
Click . The rule will be added to the beginning of the list.
-
Optional: to change the order of rules, drag and drop the rule to the required position. Rules are executed in order from top to bottom. If the first rule allows traffic to pass, the traffic will be allowed, even if a deny rule is configured below.
Edit a rule
Changes to traffic filtering will take effect immediately after saving them.
- In the control panel, on the top menu, click Products and select Mobile Farm.
- Make sure you are in the correct project. If you need to change the project, open the project menu (the name of the current project) and select a project.
- Go to the Firewall section.
- In the rule line, click .
- Make the changes.
- Click .
Change the order of rules
Changes to traffic filtering will take effect immediately after saving them.
Rules are executed in order from top to bottom. The first matching rule is triggered. If the first rule allows traffic to pass, the traffic will be allowed, even if a deny rule is configured below.
- In the control panel, on the top menu, click Products and select Mobile Farm.
- Make sure you are in the correct project. If you need to change the project, open the project menu (the name of the current project) and select a project.
- Go to the Firewall section.
- To change the order of rules, drag and drop the rule to the required position.
- Click .
Delete a rule
Changes to traffic filtering will take effect immediately after saving them.
- In the control panel, on the top menu, click Products and select Mobile Farm.
- Make sure you are in the correct project. If you need to change the project, open the project menu (the name of the current project) and select a project.
- Go to the Firewall section.
- In the rule line, click .
Allow all outgoing traffic
- In the control panel, on the top menu, click Products and select Mobile Farm.
- Make sure you are in the correct project. If you need to change the project, open the project menu (the name of the current project) and select a project.
- Go to the Firewall section.
- Click Allow all traffic.