# Open Firewall Rule To Public Service To Internet

## <mark style="color:green;">**Overview**</mark> <a href="#overview" id="overview"></a>

The default Edge gateway firewall rule on Tenant is set to **Deny all**. We must create firewall rules for traffic to virtual services from the internet. [More detail on edge way firewall.](https://docs.higiocloud.vn/network/1.-working-with-network/using-edge-gateway-firewall)

## <mark style="color:green;">**Procedure**</mark> <a href="#procedure" id="procedure"></a>

{% tabs %}
{% tab title="I. Create IP set" %}
**Step 1:** Log in to the HI GIO PORTAL as an Organization Administrator and Navigate to&#x20;

**Step 2: Networking > Edge Gateway > Security > IP Sets.**

Press **NEW** to define the **IP Set for VIPs.**

* ***Name:** type IP Set name (example VIP-Web)*
* ***IP Address:** type IP Address or IP Range (this IP for VIP that was created before).*

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2F7bBPgAqN3Ma6m5bg1r3A%2Fimage.png?alt=media&#x26;token=9ff0d485-c7f2-48bb-a601-efd3230154ad" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="II. Create an Edge Firewall Rule" %}
**Step 1:** Log in to the HI GIO PORTAL as an Organization Administrator and Navigate to&#x20;

**Networking > Edge Gateway > Services > Firewall.**

**Step 2:** Press **EDIT RULES** to add NEW RULE for VIP&#x73;**.**

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2Fe2kepv5OrbmGjvpCBkla%2Fimage.png?alt=media&#x26;token=02ae4c1f-14c8-4ea0-8107-792b6023f7de" alt=""><figcaption></figcaption></figure>

* ***Name:** type Rule name (example Allow\_VSWeb)*
* ***Applications:** choose your application types (example: HTTP and HTTPS)*
* ***Source:** Any (for internet users)*
* ***Destination:** Select **IP Set** configured before (example VS\_192.168.2.10)*
* ***Action:** Allow*

**Step 3:** Click **Save** to complete EDIT RULES

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2FX5tCvP4uPGVTfHECLihy%2Fimage.png?alt=media&#x26;token=7aaa95c2-2ea7-4c0c-aa2f-48df4769a50e" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
In case we’re using a distributed firewall in our environment. we should create and distribute firewall rules for virtual service and pool
{% endhint %}
{% endtab %}
{% endtabs %}
