Assign the cloud firewall to the cloud router port and disconnect from the port
Assign the cloud firewall to the cloud router port and disconnect from the port
Assign a firewall to a router port
You cannot assign more than one firewall to a single router port.
carefully
Inbound and outbound traffic that is not allowed in the cloud firewall rules will be denied on the cloud router port. Active sessions on the router will be interrupted, which cannot be set by the new rules.
Control panel
OpenStack CLI
- In the Control panel, on the top menu, click Products and select Cloud Servers.
- Go to the Firewalls section.
- Open the Firewall page → Ports tab.
- Click Assign to Port.
- Select the private subnet connected to the cloud router for which you want to configure traffic filtering.
- Click Assign to Port.
- Click Assign.
-
Assign a firewall to the router port:
openstack firewall group set --port <router_port> <firewall>
Specify:
<router_port>
— The ID or port name of the router to which the firewall will be assigned. The list can be viewed with the commandopenstack port list
. To assign a firewall to multiple router ports, list their names or IDs with a space;<firewall>
— ID or name of the firewall. You can view the list with the commandopenstack firewall group list
.
Disconnect the firewall from the router port
carefully
Cloud firewall rules will no longer apply — all inbound and outbound traffic that passes through the cloud router port will be allowed.
Control panel
OpenStack CLI
- In the Control panel, on the top menu, click Products and select Cloud Servers.
- Go to the Firewalls section.
- Open the Firewall page → Ports tab.
- In the router's port bar, click .
- Click Disable.
-
Disconnect the firewall from the router port:
openstack firewall group unset --port <router_port> <firewall>
Specify:
<router_port>
— The ID or port name of the router from which the firewall will be disconnected. The list can be viewed with the commandopenstack port list
;<firewall>
— ID or name of the firewall. You can view the list with the commandopenstack firewall group list
.