1. インストール
https://dash.teams.cloudflare.com/
へアクセスしAccessからTunnelsを選択してください。
Create a tunnelを押し名前を決めてcloudflaredをインストールを行います。
2. トンネルを作る
tunnelを作成します。
私の場合はhttpの8080を開放したいので画像の通りに設定します。
また、HTTP以外にもUNIX,TCP,SSH,RDP,UNIX+TLS,SMB,HTTP_STATUSが対応しています。
3. ドメインの設定
TunnelsにてUUIDをコピーしDNSにてレコードを設定します。
※通常は自動で設定されますが一応確認しましょう
名前: サブドメイン
ターゲット: UUID.cfargotunnel.com4. 接続確認
設定したドメインにアクセスして確認しましょう。
アクセスできたら完了です。
お疲れさまでした。
アクセス制限する場合はCloudflare AccessのAccess ポリシーを設定しましょう。
Manage Access policies · Cloudflare Zero Trust docs
Access policies are properties of applications. When setting up an Access application, you will be prompted to create at...
Ingress rulesの書き方
Ingress rules · Cloudflare Zero Trust docs
Each incoming request received by cloudflared causes cloudflared to send a request to a local service.
webでのSSH方法
SSH · Cloudflare Zero Trust docs
The Secure Shell Protocol (SSH) enables users to remotely access devices through the command line. With Cloudflare Zero ...
cloudflaredを使ってTCP接続
Arbitrary TCP · Cloudflare Zero Trust docs
Cloudflare Access provides a mechanism for end users to authenticate with their single sign-on (SSO) provider and connec...
コメント