[Groonga-commit] droonga/droonga.org at 6314dfa [gh-pages] Add descriptions to do tunneling for VMs

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Nov 20 16:23:08 JST 2014


YUKI Hiroshi	2014-11-20 16:23:08 +0900 (Thu, 20 Nov 2014)

  New Revision: 6314dfa780f2c617b34eebf099cc08a6ba898092
  https://github.com/droonga/droonga.org/commit/6314dfa780f2c617b34eebf099cc08a6ba898092

  Message:
    Add descriptions to do tunneling for VMs

  Modified files:
    _po/ja/tutorial/1.0.8/virtual-machines-for-experiments/index.po
    ja/tutorial/1.0.8/virtual-machines-for-experiments/index.md
    tutorial/1.0.8/virtual-machines-for-experiments/index.md

  Modified: _po/ja/tutorial/1.0.8/virtual-machines-for-experiments/index.po (+50 -0)
===================================================================
--- _po/ja/tutorial/1.0.8/virtual-machines-for-experiments/index.po    2014-11-20 15:38:56 +0900 (f33e5b8)
+++ _po/ja/tutorial/1.0.8/virtual-machines-for-experiments/index.po    2014-11-20 16:23:08 +0900 (ce56548)
@@ -396,6 +396,56 @@ msgstr ""
 " 7. 仮想マシンのプロパティを開き、メモリの大きさを元に戻す。\n"
 " 8. 3から7の手順を他の仮想マシンにも繰り返す。"
 
+msgid "### Appendix: tunneling for a VM"
+msgstr "### 付録: 仮想マシンに対するトンネリング"
+
+msgid ""
+"If the host machine is just a (remote) server and you are mainly using another"
+" local PC, then you'll hope to access HTTP servers running on VMs from your PC"
+".\n"
+"For example, testing the administration page on an web browser (Google Chrome,"
+" Mozilla Firefox, and so on.)"
+msgstr ""
+"ホストマシンが(リモートにある)サーバで、あなたが主に手元の別のPCを操作している状況において、仮想マシン内で動作しているHTTPサーバに、手元のPCから直"
+"接接続したいと思うことがあるかもしれません。\n"
+"例えば、(Google Chrome、Mozilla Firefoxなどの)Webブラウザを使って管理ページを操作してみるなどの場合です。"
+
+msgid ""
+"Port forwarding of OpenSSH will help you.\n"
+"Let's run following command on your host machine."
+msgstr ""
+"このような場面では、OpenSSHのポートフォワーディング機能を使うと良いでしょう。\n"
+"以下のコマンドをホストマシン上で実行してください。"
+
+msgid ""
+"~~~\n"
+"% ssh vagrant �� 192.168.100.50 \\\n"
+"      -i ~/.vagrant.d/insecure_private_key \\\n"
+"      -g \\\n"
+"      -L 20041:localhost:10041\n"
+"~~~"
+msgstr ""
+
+msgid ""
+"Then, actually you can see the administraton page provided by `droonga-http-se"
+"rver`, with the URL:\n"
+"`http://(IP address of hostname of the host machine):20041/`\n"
+"OpenSSH client running on the host machine automatically forwards inpouring pa"
+"ckets from the host machine's port `20041` to the VM's port `10041`."
+msgstr ""
+"これにより、`droonga-http-server`が提供している管理ページに`http://(ホストマシンのIPアドレスまたはホスト名):20041/`"
+"というURLで実際にアクセスする事ができます。\n"
+"この時、ホストマシン上で動作しているOpenSSHのクライアントは、ホストマシンの`20041`番ポートに流れ込んできたパケットをすべて、仮想マシン内の`1"
+"0041`番ポートに対するアクセスとして転送してくれます。"
+
+msgid ""
+" * Don't forget to specify the username `vagrant@` and the identity file.\n"
+" * The option `-g` is required to accept requests from outside of the host com"
+"puter itself."
+msgstr ""
+" * `vagrant@` というユーザ名と認証に使う秘密鍵を指定する必要があるので注意してください。\n"
+" * ホストコンピュータ自身の外から来るリクエストを受け付けるためには、`-g`オプションの指定が必要です。"
+
 msgid "## Conclusion"
 msgstr "## まとめ"
 

  Modified: ja/tutorial/1.0.8/virtual-machines-for-experiments/index.md (+21 -0)
===================================================================
--- ja/tutorial/1.0.8/virtual-machines-for-experiments/index.md    2014-11-20 15:38:56 +0900 (4609062)
+++ ja/tutorial/1.0.8/virtual-machines-for-experiments/index.md    2014-11-20 16:23:08 +0900 (64eda27)
@@ -213,6 +213,27 @@ $ vagrant up
  7. 仮想マシンのプロパティを開き、メモリの大きさを元に戻す。
  8. 3から7の手順を他の仮想マシンにも繰り返す。
 
+### 付録: 仮想マシンに対するトンネリング
+
+ホストマシンが(リモートにある)サーバで、あなたが主に手元の別のPCを操作している状況において、仮想マシン内で動作しているHTTPサーバに、手元のPCから直接接続したいと思うことがあるかもしれません。
+例えば、(Google Chrome、Mozilla Firefoxなどの)Webブラウザを使って管理ページを操作してみるなどの場合です。
+
+このような場面では、OpenSSHのポートフォワーディング機能を使うと良いでしょう。
+以下のコマンドをホストマシン上で実行してください。
+
+~~~
+% ssh vagrant �� 192.168.100.50 \
+      -i ~/.vagrant.d/insecure_private_key \
+      -g \
+      -L 20041:localhost:10041
+~~~
+
+これにより、`droonga-http-server`が提供している管理ページに`http://(ホストマシンのIPアドレスまたはホスト名):20041/`というURLで実際にアクセスする事ができます。
+この時、ホストマシン上で動作しているOpenSSHのクライアントは、ホストマシンの`20041`番ポートに流れ込んできたパケットをすべて、仮想マシン内の`10041`番ポートに対するアクセスとして転送してくれます。
+
+ * `vagrant@` というユーザ名と認証に使う秘密鍵を指定する必要があるので注意してください。
+ * ホストコンピュータ自身の外から来るリクエストを受け付けるためには、`-g`オプションの指定が必要です。
+
 ## まとめ
 
 このチュートリアルでは、Droongaノード用に3台の仮想マシンを用意する手順を学びました。

  Modified: tutorial/1.0.8/virtual-machines-for-experiments/index.md (+22 -0)
===================================================================
--- tutorial/1.0.8/virtual-machines-for-experiments/index.md    2014-11-20 15:38:56 +0900 (1379842)
+++ tutorial/1.0.8/virtual-machines-for-experiments/index.md    2014-11-20 16:23:08 +0900 (23a3aa4)
@@ -205,6 +205,28 @@ So you can install Droonga services for each VM step by step, like:
  7. Go to `properties` of the VM, and decrease the size of RAM to the original size.
  8. Repeat steps from 3 to 7 for each VM.
 
+### Appendix: tunneling for a VM
+
+If the host machine is just a (remote) server and you are mainly using another local PC, then you'll hope to access HTTP servers running on VMs from your PC.
+For example, testing the administration page on an web browser (Google Chrome, Mozilla Firefox, and so on.)
+
+Port forwarding of OpenSSH will help you.
+Let's run following command on your host machine.
+
+~~~
+% ssh vagrant �� 192.168.100.50 \
+      -i ~/.vagrant.d/insecure_private_key \
+      -g \
+      -L 20041:localhost:10041
+~~~
+
+Then, actually you can see the administraton page provided by `droonga-http-server`, with the URL:
+`http://(IP address of hostname of the host machine):20041/`
+OpenSSH client running on the host machine automatically forwards inpouring packets from the host machine's port `20041` to the VM's port `10041`.
+
+ * Don't forget to specify the username `vagrant@` and the identity file.
+ * The option `-g` is required to accept requests from outside of the host computer itself.
+
 ## Conclusion
 
 In this tutorial, you did prepare three virtual machines for Droonga nodes.
-------------- next part --------------
HTML����������������������������...
下載 



More information about the Groonga-commit mailing list
Back to archive index