# Cloudflare

1\. Open your computer's web browser, navigate to the CloudFlare official website ([https://www.cloudflare.com](https://www.cloudflare.com/)), and complete the registration process to log in to your account.

<figure><img src="https://1561436000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpCtFemS511EXKjNnjKqg%2Fuploads%2FK72OyEH5ySmY5sGN9sbl%2Fimage.png?alt=media&#x26;token=23aeb1e0-c350-492c-8c78-4a02ea192959" alt=""><figcaption></figcaption></figure>

2. Add a domain name. If you already have a domain name, click "Add a domain". If you don't have a domain name, you can also purchase a domain name in CloudFlare. The domain name purchased in CloudFlare will be automatically added to the Domain list.

<figure><img src="https://1561436000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpCtFemS511EXKjNnjKqg%2Fuploads%2Frhv6P97CHiLwMGKJtH2G%2Fimage.png?alt=media&#x26;token=b48f5a00-eba7-4bf9-ad6f-768f5bc07d8c" alt=""><figcaption></figcaption></figure>

It is recommended that individual users choose the free plan

<figure><img src="https://1561436000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpCtFemS511EXKjNnjKqg%2Fuploads%2Fz1fTArmqoquKvoSv2kbJ%2Fimage.png?alt=media&#x26;token=8d169507-08f7-4317-9c97-d45d47837f19" alt=""><figcaption></figcaption></figure>

3. In iSG Add-on, select CloudFlare and input domain you will use for remote access iSG HA.

<mark style="color:red;">Note:</mark>&#x20;

1）Use the domain name you registered with Cloudflare，such as: linknlink.org

2\)  Add the subdomain in front of the domain name, such as : abcd

3\) The last thing you need to enter is the synthesized subdomain. such as: adcd.linknlink.org

<figure><img src="https://1561436000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpCtFemS511EXKjNnjKqg%2Fuploads%2FktAfjwUpzQHRLYoC8ed5%2Fimage.png?alt=media&#x26;token=29b6a591-292b-418d-8abc-e50e42284a19" alt=""><figcaption></figcaption></figure>

4. Click install CloudFlare

During the installation process, the system will automatically pop up the authorization page through Opera. You need to log in to your CloudFlare account and click Authorize.

Click "Authorize CloudFlare Tunnel", a page will pop up, click your domain name and activate it.

<figure><img src="https://1561436000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpCtFemS511EXKjNnjKqg%2Fuploads%2FrBKUuXXg9Zy1rvz6uaFK%2Fimage.png?alt=media&#x26;token=662889cc-148e-4c0f-9907-50b920791821" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1561436000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpCtFemS511EXKjNnjKqg%2Fuploads%2FeJtPMxaTalp0C3Phef5v%2Fimage.png?alt=media&#x26;token=3d0c76f5-9948-4aae-ba8b-fc16d3cee3cb" alt=""><figcaption></figcaption></figure>

5. After successful authorization, back to CloudFlare will automatic finish intallation

6. Log in to CloudFlare through a computer browser and click on the domain name to configure it

<figure><img src="https://1561436000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpCtFemS511EXKjNnjKqg%2Fuploads%2FxiMMbaikMyPeG1JOEWc8%2Fimage.png?alt=media&#x26;token=fc1fc29c-258a-4900-9b15-eac6b345c6a8" alt=""><figcaption></figcaption></figure>

7. In DNS - Records, you can see Record, indicating that iSG CloudFlare has been added successfully.

<figure><img src="https://1561436000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpCtFemS511EXKjNnjKqg%2Fuploads%2FNBfmmCkzSSsCqBAkkmsa%2Fimage.png?alt=media&#x26;token=0e268461-de88-4c54-be73-b003d87cd1e8" alt=""><figcaption></figcaption></figure>

8. In the iSG built-in home assistant, use File Editor to add the following information:

&#x20;       http: server\_port: 8123&#x20;

&#x20;       use\_x\_forwarded\_for: true&#x20;

&#x20;       trusted\_proxies:&#x20;

&#x20;                 \- 127.0.0.1

<figure><img src="https://1561436000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpCtFemS511EXKjNnjKqg%2Fuploads%2FTyFFmS3sYVd1CDXH09Kn%2Fimage.png?alt=media&#x26;token=3742491a-3c8a-4ccb-ac5b-b311123a4757" alt=""><figcaption></figcaption></figure>

9. Restart Home Assistant, and then you can access it remotely via YourDomain
