General
This tutorial tested on Ubuntu Server 20.04 with Cloudflare for DNS Management.
Prerequisites
- Make sure you have generated API Token with specific zone and DNS read & write permission.
Create cloudflare.ini
nano /root/cf/cloudflare.ini
This tutorial tested on Ubuntu Server 20.04 with Cloudflare for DNS Management.
nano /root/cf/cloudflare.ini
<?php | |
// Config information | |
$server = "IP/DOMAINWHOTOMONITOR"; // the address to test, without the "http://" | |
$port = "PORT"; | |
// Telegram Bot API configuration | |
$telegramToken = 'YOURTELEGRAMTOKEN'; | |
$chatId = 'YOURTELEGRAMCHATID'; |
#!/bin/bash | |
# Token bot Telegram dan chat ID penerima notifikasi | |
TOKEN="YOUR_BOT_TOKEN" | |
CHAT_ID="YOUR_TELEGRAM_CHAT_ID" | |
# Fungsi untuk mengirim notifikasi ke Telegram | |
function send_telegram_notification { | |
MESSAGE="$1" | |
curl -s -X POST "https://api.telegram.org/bot$TOKEN/sendMessage" \ |
If you need a shortcut or want to develop operational features on Cloudflare, you can take advantage of the Cloudflare API that I have tried (only core functions) with references like my notes.
#!/bin/sh
EMAIL="yourCF@email.com"; \
KEY="YOURCDAPIKEY"; \
Provisioning Kubernetes Cluster BareMetal with KubeSpray
2x Ubuntu Server 20.04LTS
Zero Trust
feature for free to reverse our application (HTTP, TCP, SSH, etc) on-premise to Internet.https://one.dash.cloudflare.com/
ssh.endpoint.com
cloudflared
tools, we can download from https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/installation/
cloudflared
on /usr/local/bin/
for linuxcloudflared
on D:\
for windowsMake your ubuntu server to GUI Based
sudo apt install xfce4 xfce4-goodies -y
sudo apt install tightvncserver -y
vncserver
1. Virtual Machine Ubuntu 20.04LTS (Azure, GCP, AWS, Aliyun, etc)
2. 16GB RAM
3. 512 GB Storage
4. One disk add for PV
AWSTemplateFormatVersion: 2010-09-09 | |
Description: >- | |
Application Template: Demonstrates how to reference resources from a different stack. | |
This template provisions an EC2 instance in a VPC Subnet provisioned in a different stack. | |
# This template creates: | |
# Amazon EC2 instance | |
# Security Group | |
###################### |