commit(auto)
This commit is contained in:
parent
383d1075b9
commit
b351d41ba8
3 changed files with 17 additions and 2 deletions
|
@ -8,8 +8,18 @@
|
||||||
[[20240211141946 Raspi4 Cloudflareでトンネルを作る|Raspi4 Cloudflareでトンネルを作る]] の作業が完了している
|
[[20240211141946 Raspi4 Cloudflareでトンネルを作る|Raspi4 Cloudflareでトンネルを作る]] の作業が完了している
|
||||||
|
|
||||||
## 手順
|
## 手順
|
||||||
|
### サーバー側の設定
|
||||||
- [[20240211195201 Cloudflare Access Groupsの作成|Cloudflare Access Groupsの作成]]
|
- [[20240211195201 Cloudflare Access Groupsの作成|Cloudflare Access Groupsの作成]]
|
||||||
- [[20240211195126 Cloudflare Applicationsの作成|Cloudflare Applicationsの作成]]
|
- [[20240211195126 Cloudflare Applicationsの作成|Cloudflare Applicationsの作成]]
|
||||||
を終わらせる。
|
を終わらせる。他にやることはなかったと思う。
|
||||||
|
|
||||||
|
### クライアント側の設定
|
||||||
|
直接sshではアクセスできず、 cloudflaredコマンドを使う。 以下はwsl2でubuntuを使っていた場合
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## cf.
|
||||||
|
- [SSH · Cloudflare Zero Trust docs](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/use-cases/ssh/)
|
||||||
|
- [Cloudflare Zero TrustでSSH接続](https://zenn.dev/jij_inc/articles/659fe35813b940)
|
|
@ -10,3 +10,7 @@ Application domain: subdomain: [[20240211193602 Cloudflare Public Hostnameの設
|
||||||
こんな感じ。pi4はsshアクセス、notesはhttps。
|
こんな感じ。pi4はsshアクセス、notesはhttps。
|
||||||
|
|
||||||
![[Pasted image 20240211195107.png]]
|
![[Pasted image 20240211195107.png]]
|
||||||
|
|
||||||
|
Policiesタブをクリックして、policyを作成する。
|
||||||
|
default_policyというのを作り、 設定はデフォルトとした。
|
||||||
|
Assing a group で、 [[20240211195201 Cloudflare Access Groupsの作成|Cloudflare Access Groupsの作成]] で作ったdefault_groupにチェック。 "Save policy"でPolicyを作成。
|
|
@ -5,6 +5,7 @@ AccessからAccess Groupsを選択。 "+ Add a Group"をクリック。
|
||||||
Everyone/Everyone という設定も可能だが、セキュリティ上あまりよろしくない。
|
Everyone/Everyone という設定も可能だが、セキュリティ上あまりよろしくない。
|
||||||
ドメインでメールの設定をしている場合、それが使えるので、 Selectorに"Emails ending in" を選んで、Valueにメールアドレスのドメインを記入した。複数指定できる。
|
ドメインでメールの設定をしている場合、それが使えるので、 Selectorに"Emails ending in" を選んで、Valueにメールアドレスのドメインを記入した。複数指定できる。
|
||||||
こんなかんじ。
|
こんなかんじ。
|
||||||
|
Group nameは "default_group"に設定した。
|
||||||
|
|
||||||
![[Pasted image 20240211191414.png]]
|
![[Pasted image 20240211191414.png]]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue