{"id":9276,"date":"2026-06-19T18:13:07","date_gmt":"2026-06-19T09:13:07","guid":{"rendered":"https:\/\/www.wetch.co.jp\/note\/?p=9276"},"modified":"2026-06-22T10:31:29","modified_gmt":"2026-06-22T01:31:29","slug":"cloudflare-quick-tunnels-%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6-vagrant-vmware-fusion-%e3%81%ae%e3%83%ad%e3%83%bc%e3%82%ab%e3%83%ab%e7%92%b0%e5%a2%83%e3%81%a7-webhook-%e5%8f%97%e4%bf%a1%e3%81%97","status":"publish","type":"post","link":"https:\/\/www.wetch.co.jp\/note\/cloudflare-quick-tunnels-%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6-vagrant-vmware-fusion-%e3%81%ae%e3%83%ad%e3%83%bc%e3%82%ab%e3%83%ab%e7%92%b0%e5%a2%83%e3%81%a7-webhook-%e5%8f%97%e4%bf%a1%e3%81%97\/","title":{"rendered":"Cloudflare Quick Tunnels \u3092\u4f7f\u3063\u3066 Vagrant + VMware Fusion \u306e\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067 Webhook \u53d7\u4fe1\u3057\u3066\u307f\u305f\u306e\u5dfb"},"content":{"rendered":"<div class=\"ui-default-code__line\">\n<div class=\"ui-default-code__line-content\">\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u30c6\u30b9\u30c8\u3057\u3066\u3044\u308b\u3068\u304d\u306b\u3001\u3053\u3093\u306a\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/div>\n<\/div>\n<div class=\"ui-default-code__line\">\n<ul>\n<li class=\"ui-default-code__line-content\">\u5916\u90e8\u30b5\u30fc\u30d3\u30b9\u304b\u3089 Webhook \u3092\u53d7\u4fe1\u3057\u305f\u3044\u3002<\/li>\n<li>\u305f\u3060\u3001\u30b0\u30ed\u30fc\u30d0\u30eb IP \u304c\u3042\u3063\u3066\u3082\u3001\u5185\u5411\u304d\u306e\u30a2\u30af\u30bb\u30b9\u7d4c\u8def\u3092\u4f5c\u308c\u306a\u3044\uff08\u793e\u5185 LAN \u306e\u30eb\u30fc\u30bf\u30fc\u8a2d\u5b9a\u306f\u89e6\u308c\u306a\u3044\uff09\u3002<\/li>\n<\/ul>\n<p>\u793e\u5185\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u5916\u304b\u3089\u898b\u308b\u3068\u30b0\u30ed\u30fc\u30d0\u30eb IP \u306f\u3042\u308b\u3082\u306e\u306e\u3001\u793e\u5185\u306e PC \u3084 VM \u3078\u306f\u30eb\u30fc\u30bf\u30fc\u306e\u30dd\u30fc\u30c8\u8ee2\u9001\uff08NAT\uff09\u304c\u306a\u3044\u3068\u5c4a\u304d\u307e\u305b\u3093\u3002\u30eb\u30fc\u30bf\u30fc\u8a2d\u5b9a\u3092\u89e6\u308c\u306a\u3044\u74b0\u5883\u3067\u306f\u3001<span class=\"font-semibold\" data-streamdown=\"strong\">\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u304b\u3089\u30ed\u30fc\u30ab\u30eb\u3078\u76f4\u63a5\u30a2\u30af\u30bb\u30b9\u3059\u308b\u7d4c\u8def\u3092\u81ea\u5206\u3067\u306f\u4f5c\u308c\u306a\u3044<\/span>\u3001\u3068\u3044\u3046\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u52a0\u3048\u3066 Webhook \u306b\u3064\u3044\u3066\u5c11\u3057\u66f8\u304f\u3068\u3001Webhook \u306f\u3001GitHub\u30fbStripe\u30fbSendGrid \u306a\u3069\u306e\u5916\u90e8\u30b5\u30fc\u30d3\u30b9\u304c\u3001<span class=\"font-semibold\" data-streamdown=\"strong\">\u3053\u3061\u3089\u306e URL \u306b HTTPS \u3067 POST \u3057\u3066\u304f\u308b<\/span>\u4ed5\u7d44\u307f\u3067\u3059\u3002\u3064\u307e\u308a\u300c\u3053\u3061\u3089\u304b\u3089 API \u3092\u53e9\u304f\u300d\u306e\u3067\u306f\u306a\u304f\u3001\u300c\u76f8\u624b\u304b\u3089\u3053\u3061\u3089\u306b\u5c4a\u304f\u300d\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 localhost \u3084 192.168.x.x \u306e URL \u306f\u5916\u90e8\u304b\u3089\u898b\u3048\u306a\u3044\u305f\u3081\u3001\u305d\u306e\u307e\u307e\u3067\u306f\u00a0<span class=\"font-semibold\" data-streamdown=\"strong\">Webhook \u3092\u53d7\u3051\u53d6\u308c\u307e\u305b\u3093<\/span>\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306a\u5834\u5408\u306b\u3069\u3046\u5bfe\u5fdc\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308b\u3082\u306e\u304b\u3068\u30cd\u30c3\u30c8\u3067\u8abf\u3079\u3066\u307f\u305f\u3068\u3053\u308d\u3001\u6e21\u308a\u306b\u8239\u3067\u898b\u3064\u3051\u305f\u30b5\u30fc\u30d3\u30b9\u304c Cloudflare Quick Tunnels \u3067\u3059\u3002\u4eca\u56de\u306f\u3001\u793e\u5185 LAN \u4e0a\u306e Vagrant + VMware Fusion \u74b0\u5883\u3067 \u5916\u90e8\u30b5\u30fc\u30d3\u30b9\u306e Webhook \u3092\u53d7\u4fe1\u3059\u308b\u305f\u3081\u306e\u624b\u9806\u3092\u66f8\u3044\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<\/div>\n<p>\u307e\u305a\u3001Cloudflare Quick Tunnels \u306b\u3064\u3044\u3066\u3069\u306e\u3088\u3046\u306a\u3082\u306e\u304b\u3092\u66f8\u3044\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/developers.cloudflare.com\/cloudflare-one\/networks\/connectors\/cloudflare-tunnel\/#how-it-works\">\u516c\u5f0f\u306e\u56f3\u3068\u8aac\u660e<\/a>\u3082\u3042\u308b\u306e\u3067\u30ea\u30f3\u30af\u3092\u3064\u3051\u307e\u3057\u305f\u304c\u3001 Cloudflare Quick Tunnels \u306f\u3001\u30ed\u30fc\u30ab\u30eb\u306b cloudflared \u3092\u7f6e\u304d\u3001\u30b5\u30fc\u30d0\u30fc\u5074\u304b\u3089 Cloudflare \u3078\u5916\u5411\u304d\u306b\u63a5\u7d9a\u3092\u5f35\u308b\u4ed5\u7d44\u307f\u3067\u3059\u3002<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"477\" src=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/cloudflare-tunnel-webhook-flow-1024x477.png\" alt=\"\" class=\"wp-image-9277\" srcset=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/cloudflare-tunnel-webhook-flow-1024x477.png 1024w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/cloudflare-tunnel-webhook-flow-300x140.png 300w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/cloudflare-tunnel-webhook-flow-768x357.png 768w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/cloudflare-tunnel-webhook-flow-1536x715.png 1536w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/cloudflare-tunnel-webhook-flow-150x70.png 150w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/cloudflare-tunnel-webhook-flow-696x324.png 696w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/cloudflare-tunnel-webhook-flow-1068x497.png 1068w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/cloudflare-tunnel-webhook-flow.png 1577w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n<p>\u901a\u5e38\u3001\u793e\u5185\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306f\u300c\u5916\u3078\u306e\u901a\u4fe1\u306f\u901a\u3059\u304c\u3001\u5916\u304b\u3089\u306e\u76f4\u63a5\u30a2\u30af\u30bb\u30b9\u306f\u62d2\u5426\u300d\u3068\u3044\u3046\u8a2d\u5b9a\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002Cloudflare Quick Tunnels \u306f\u3053\u306e\u524d\u63d0\u306b\u5408\u308f\u305b\u3066\u3001\u30eb\u30fc\u30bf\u30fc\u3067\u5185\u5411\u304d\u306e\u7a74\u3092\u958b\u3051\u305a\u306b\u5916\u90e8\u3068\u901a\u4fe1\u3057\u307e\u3059\u3002<\/p>\n<p>\u5916\u90e8\u30b5\u30fc\u30d3\u30b9\uff08SendGrid \u306a\u3069\uff09\u306f Cloudflare \u304c\u767a\u884c\u3059\u308b URL\uff08Quick Tunnels \u306a\u3089 *.trycloudflare.com\uff09\u306b HTTPS \u3067 POST \u3057\u307e\u3059\u3002Cloudflare \u304c\u305d\u308c\u3092\u53d7\u3051\u53d6\u308a\u3001\u3059\u3067\u306b\u5f35\u3063\u3066\u3042\u308b\u30c8\u30f3\u30cd\u30eb\u7d4c\u7531\u3067\u30ed\u30fc\u30ab\u30eb\u306e Web \u30b5\u30fc\u30d0\u30fc\u3078\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u6e21\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u3072\u3068\u3064\u8aa4\u89e3\u3055\u308c\u3084\u3059\u3044\u306e\u304c\u3001\u300c\u5916\u5411\u304d\u63a5\u7d9a\u3060\u3051\u306a\u3089\u9001\u4fe1\u3057\u304b\u3067\u304d\u306a\u3044\u306e\u3067\u306f\uff1f\u300d\u3068\u3044\u3046\u70b9\u3067\u3059\u3002\u5b9f\u969b\u306b\u306f VM \u5074\u304b\u3089 Cloudflare \u3078\u63a5\u7d9a\u3092\u5f35\u308a\u3001\u305d\u306e TCP \u63a5\u7d9a\u3092\u7dad\u6301\u3057\u305f\u307e\u307e HTTP \u306e\u30ea\u30af\u30a8\u30b9\u30c8\uff0f\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u3084\u308a\u53d6\u308a\u3057\u307e\u3059\u3002\u63a5\u7d9a\u306e\u958b\u59cb\u306f\u300c\u5185\u2192\u5916\u300d\u3067\u3059\u304c\u3001\u30c8\u30f3\u30cd\u30eb\u304c\u78ba\u7acb\u3055\u308c\u308c\u3070\u5916\u90e8\u304b\u3089\u30ed\u30fc\u30ab\u30eb\u3078\u5c4a\u304f Webhook \u3082\u53d7\u3051\u53d6\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u307e\u3067\u306e\u8aac\u660e\u304c\u9577\u304f\u306a\u3063\u3066\u304d\u305f\u306e\u3067\u3001\u6b21\u306f\u5b9f\u969b\u306b\u63a5\u7d9a\u3067\u304d\u308b\u304b\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002\u4eca\u56de\u306f\u3001\u793e\u5185 LAN \u4e0a\u306e Vagrant VM \u3067 Web \u30b5\u30fc\u30d0\u30fc\u3092\u52d5\u304b\u3057\u3001cloudflared \u3067 Quick Tunnels \u3092\u5f35\u3063\u3066\u3001\u5916\u90e8\u304b\u3089 HTTPS \u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u304b\u3092\u898b\u307e\u3059\u3002<\/p>\n\n\n<pre class=\"wp-block-code\"><code>\u3010\u4eca\u56de\u306e\u74b0\u5883\u3011\n\u30db\u30b9\u30c8: macOS + Vagrant + VMware Fusion\n\u30b2\u30b9\u30c8: Rocky Linux + Webmin + Virtualmin + LAMP\n\u30c8\u30f3\u30cd\u30eb: cloudflared\uff08Quick Tunnels\uff09<\/code><\/pre>\n\n\n<p>\u307e\u305f\u4f8b\u306b\u3088\u3063\u3066 Webmin \/ Virtualmin \u306e\u8a2d\u5b9a\u7b49\u306f\u5272\u611b\u3057\u307e\u3059\uff08\u7b11\uff09\u3002\u4eca\u56de\u306f EC-CUBE \u304c\u8868\u793a\u3067\u304d\u308b\u74b0\u5883\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"536\" src=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/13_local_site-1024x536.png\" alt=\"\" class=\"wp-image-9284\" srcset=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/13_local_site-1024x536.png 1024w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/13_local_site-300x157.png 300w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/13_local_site-768x402.png 768w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/13_local_site-1536x804.png 1536w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/13_local_site-150x79.png 150w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/13_local_site-696x364.png 696w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/13_local_site-1068x559.png 1068w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/13_local_site.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n<h4><strong>\uff11\uff09cloudflared \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/h4>\n<p>VM \u306b SSH \u3057\u3066\u3001cloudflared \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"888\" height=\"885\" src=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/cloudflared_install.png\" alt=\"\" class=\"wp-image-9278\" srcset=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/cloudflared_install.png 888w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/cloudflared_install-300x299.png 300w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/cloudflared_install-150x149.png 150w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/cloudflared_install-768x765.png 768w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/cloudflared_install-696x694.png 696w\" sizes=\"auto, (max-width: 888px) 100vw, 888px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>$ vagrant ssh\n$ sudo su -\n\n# curl -fsSL https:\/\/pkg.cloudflare.com\/cloudflared.repo | tee \/etc\/yum.repos.d\/cloudflared.repo\n# dnf install -y cloudflared\n# cloudflared --version\ncloudflared version 2026.6.1 (built 2026-06-18-14:33 UTC)\n<\/code><\/pre>\n\n\n<p>\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u8868\u793a\u3055\u308c\u308c\u3070 OK \u3067\u3059\u3002<\/p>\n<h4><strong>\uff12\uff09cloudflared \u3092\u8d77\u52d5\u3059\u308b\uff08\u304c\u5931\u6557\u30fb\u30fb\u30fb\uff09<\/strong><\/h4>\n<p>\u305d\u308c\u3067\u306f\u65e9\u901f cloudflared \u3092\u8d77\u52d5\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"890\" height=\"581\" src=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/2_cloudflared_error.png\" alt=\"\" class=\"wp-image-9279\" srcset=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/2_cloudflared_error.png 890w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/2_cloudflared_error-300x196.png 300w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/2_cloudflared_error-768x501.png 768w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/2_cloudflared_error-150x98.png 150w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/2_cloudflared_error-696x454.png 696w\" sizes=\"auto, (max-width: 890px) 100vw, 890px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo su -\n# cloudflared tunnel --url http:\/\/120.0.0.1:80<\/code><\/pre>\n\n\n<p>\u8d77\u52d5\u306b\u5931\u6557\u3057\u3066\u30b3\u30b1\u3066\u3044\u307e\u3059\u3002\u539f\u56e0\u3092\u63a2\u308a\u307e\u3059\u3002<\/p>\n\n\n<pre class=\"wp-block-code\"><code>failed to request quick Tunnel: Post \"https:\/\/api.trycloudflare.com\/tunnel\":\ndial tcp: lookup api.trycloudflare.com on 192.168.XXX.2:53: no such host<\/code><\/pre>\n\n\n<p>\u6700\u5f8c\u306e\u65b9\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u3066\u3044\u307e\u3059\u3002\u6ce8\u76ee\u3059\u308b\u306e\u306f\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u6700\u5f8c\u306e\u90e8\u5206\u3067\u3059\u3002<\/p>\n<ul class=\"list-inside list-disc whitespace-normal [li_&amp;]:pl-6\" data-streamdown=\"unordered-list\">\n<li class=\"py-1 [&amp;&gt;p]:inline\" data-streamdown=\"list-item\"><code class=\"md-inline-path-filename-like\"><span class=\"md-inline-path-filename\">api.trycloudflare.com<\/span><\/code>\u00a0\u2026 cloudflared \u304c\u30c8\u30f3\u30cd\u30eb\u4f5c\u6210\u6642\u306b\u63a5\u7d9a\u3059\u308b\u5148<\/li>\n<li class=\"py-1 [&amp;&gt;p]:inline\" data-streamdown=\"list-item\"><code class=\"\">192.168.XXX.2:53<\/code> \u2026 \u540d\u524d\u89e3\u6c7a\u306b\u4f7f\u3063\u305f DNS \u30b5\u30fc\u30d0\u30fc\uff08\u30db\u30b9\u30c8\u3068\u540c\u3058 LAN \u4e0a\u306e DNS \uff09<\/li>\n<li class=\"py-1 [&amp;&gt;p]:inline\" data-streamdown=\"list-item\"><code class=\"\">no such host<\/code>\u00a0\u2026 \u305d\u306e DNS \u3067\u306f\u540d\u524d\u3092\u89e3\u6c7a\u3067\u304d\u306a\u304b\u3063\u305f<\/li>\n<\/ul>\n<p>DNS\u306e\u540d\u524d\u89e3\u6c7a\u306e\u3068\u3053\u308d\u3067\u6b62\u307e\u3063\u3066\u3044\u308b\u6a21\u69d8\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001VM\u5185\u3067\u3069\u306eDNS\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"889\" height=\"585\" src=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/3_resolv.conf_-1.png\" alt=\"\" class=\"wp-image-9301\" srcset=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/3_resolv.conf_-1.png 889w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/3_resolv.conf_-1-300x197.png 300w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/3_resolv.conf_-1-768x505.png 768w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/3_resolv.conf_-1-150x99.png 150w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/3_resolv.conf_-1-696x458.png 696w\" sizes=\"auto, (max-width: 889px) 100vw, 889px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code># cat \/etc\/resolv.conf<\/code><\/pre>\n\n\n<p>nameserver \u304c\u30db\u30b9\u30c8\u3068\u540c\u3058 LAN \u4e0a\u306e DNS \uff08192.168.XXX.2\uff09\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u7d9a\u3051\u3066\u3001\u5916\u90e8\u30c9\u30e1\u30a4\u30f3\u304c\u89e3\u6c7a\u3067\u304d\u308b\u306e\u304b\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"890\" height=\"580\" src=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/\uff14_dig_google.png\" alt=\"\" class=\"wp-image-9281\" srcset=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/\uff14_dig_google.png 890w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/\uff14_dig_google-300x196.png 300w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/\uff14_dig_google-768x500.png 768w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/\uff14_dig_google-150x98.png 150w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/\uff14_dig_google-696x454.png 696w\" sizes=\"auto, (max-width: 890px) 100vw, 890px\" \/><\/figure>\n\n\n<p>\u6b63\u5e38\u306a\u3089 IP \u30a2\u30c9\u30ec\u30b9\u304c\u8fd4\u308a\u307e\u3059\u304c\u3001\u8b66\u544a\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u3066\u3044\u3066\u540d\u524d\u89e3\u6c7a\u304c\u3067\u304d\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<div class=\"ui-default-code__line\">\n<div class=\"ui-default-code__line-content\">VM \u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u305f DNS\uff08192.168.XXX.2\uff09\u3067\u306f\u89e3\u6c7a\u3067\u304d\u306a\u3044\u305f\u3081\u3001<\/div>\n<\/div>\n<div class=\"ui-default-code__line\">\n<div class=\"ui-default-code__line-content\">\u30d1\u30d6\u30ea\u30c3\u30af DNS\uff081.1.1.1 \u306a\u3069\uff09\u3092\u4f7f\u3046\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u5909\u66f4\u306b\u3042\u305f\u3063\u3066\u3001\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u540d\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/div>\n<div>\u00a0<\/div>\n<\/div>\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"891\" height=\"578\" src=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/5_connection.png\" alt=\"\" class=\"wp-image-9283\" srcset=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/5_connection.png 891w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/5_connection-300x195.png 300w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/5_connection-768x498.png 768w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/5_connection-150x97.png 150w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/5_connection-696x452.png 696w\" sizes=\"auto, (max-width: 891px) 100vw, 891px\" \/><\/figure>\n\n\n<div class=\"ui-default-code__line\">\n<div>Wired connection 1 \u3068\u3044\u3046\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u540d\u3068\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3053\u308c\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/div>\n<div>\u00a0<\/div>\n<div class=\"ui-default-code__line-content\">\u305f\u3060 resolv.conf \u306f\u3001\u8d77\u52d5\u306e\u305f\u3073\u306b NetworkManager \u304c\u4f5c\u308a\u76f4\u3059\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/div>\n<\/div>\n<div class=\"ui-default-code__line\">\n<div class=\"ui-default-code__line-content\">VM \u5185\u3067\u4e00\u5ea6\u3060\u3051\u624b\u52d5\u5909\u66f4\u3057\u3066\u3082\u3001\u518d\u8d77\u52d5\u3067 192.168.XXX.2 \u306b\u623b\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u3001<\/div>\n<\/div>\n<div class=\"ui-default-code__line\">\n<div class=\"ui-default-code__line-content\">Vagrantfile \u306b\u6b21\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u3001\u8d77\u52d5\u6642\u306b\u6bce\u56de\u30d1\u30d6\u30ea\u30c3\u30af DNS \u304c\u4f7f\u308f\u308c\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/div>\n<div>\u00a0<\/div>\n<\/div>\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"891\" height=\"612\" src=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/6_Vagrantfile-2.png\" alt=\"\" class=\"wp-image-9302\" srcset=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/6_Vagrantfile-2.png 891w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/6_Vagrantfile-2-300x206.png 300w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/6_Vagrantfile-2-768x528.png 768w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/6_Vagrantfile-2-150x103.png 150w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/6_Vagrantfile-2-218x150.png 218w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/6_Vagrantfile-2-696x478.png 696w\" sizes=\"auto, (max-width: 891px) 100vw, 891px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>    # \u30b2\u30b9\u30c8\u8d77\u52d5\u6642\u306b DNS \u3092\u56fa\u5b9a\uff08192.168.XXX.2 \u5bfe\u7b56\uff09\n    # \u6ce8\u610f: nmcli con down\/up \u306f SSH \u7d4c\u8def\u3092\u5207\u308b\u305f\u3081\u4f7f\u308f\u306a\u3044\n    config.vm.provision \"shell\", run: \"always\", inline: &lt;&lt;-SHELL\n      nmcli con mod \"Wired connection 1\" ipv4.dns \"1.1.1.1 8.8.8.8\"\n      nmcli con mod \"Wired connection 1\" ipv4.ignore-auto-dns yes\n      nmcli device reapply eth0\n    SHELL<\/code><\/pre>\n\n\n<h4><strong>\uff13\uff09Vagrant \u518d\u8d77\u52d5<\/strong><\/h4>\n<p>Vagrantfile \u3092\u4fee\u6b63\u3057\u305f\u306e\u3067\u3001\u518d\u8d77\u52d5\u3057\u3066\u30d1\u30d6\u30ea\u30c3\u30af DNS \u304c\u4f7f\u7528\u3055\u308c\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"889\" height=\"611\" src=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/7_reload_provision-1.png\" alt=\"\" class=\"wp-image-9286\" srcset=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/7_reload_provision-1.png 889w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/7_reload_provision-1-300x206.png 300w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/7_reload_provision-1-768x528.png 768w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/7_reload_provision-1-150x103.png 150w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/7_reload_provision-1-218x150.png 218w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/7_reload_provision-1-696x478.png 696w\" sizes=\"auto, (max-width: 889px) 100vw, 889px\" \/><\/figure>\n\n\n<p>\u6700\u5f8c\u306e\u65b9\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u3001\u30d7\u30ed\u30d3\u30b8\u30e7\u30cb\u30f3\u30b0\u306e\u30b7\u30a7\u30eb\u304c\u52d5\u3044\u305f\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\u305d\u308c\u3067\u306f\u5148\u307b\u3069\u3068\u540c\u3058\u3088\u3046\u306b\u3001 VM \u306b ssh \u3067\u5165\u3063\u3066\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"890\" height=\"612\" src=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/8_resolv.conf_after_modified.png\" alt=\"\" class=\"wp-image-9287\" srcset=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/8_resolv.conf_after_modified.png 890w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/8_resolv.conf_after_modified-300x206.png 300w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/8_resolv.conf_after_modified-768x528.png 768w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/8_resolv.conf_after_modified-150x103.png 150w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/8_resolv.conf_after_modified-218x150.png 218w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/8_resolv.conf_after_modified-696x479.png 696w\" sizes=\"auto, (max-width: 890px) 100vw, 890px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"891\" height=\"615\" src=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/9_dig_google_after_modified.png\" alt=\"\" class=\"wp-image-9288\" srcset=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/9_dig_google_after_modified.png 891w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/9_dig_google_after_modified-300x207.png 300w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/9_dig_google_after_modified-768x530.png 768w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/9_dig_google_after_modified-150x104.png 150w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/9_dig_google_after_modified-218x150.png 218w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/9_dig_google_after_modified-696x480.png 696w\" sizes=\"auto, (max-width: 891px) 100vw, 891px\" \/><\/figure>\n\n\n<p>\u30d1\u30d6\u30ea\u30c3\u30af DNS \u304c\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u306e\u78ba\u8a8d\u3068\u3001\u540d\u524d\u89e3\u6c7a\u304c\u3067\u304d\u3066 IP \u30a2\u30c9\u30ec\u30b9\u304c\u53d6\u5f97\u3067\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n<h4><strong>\uff14\uff09cloudflared \u8d77\u52d5\uff08\u307e\u305f\u5225\u306e\u554f\u984c\u30fb\u30fb\u30fb\uff09<\/strong><\/h4>\n<p>\u3053\u3053\u3067\u3082\u3046\u4e00\u5ea6\u3001cloudflared \u3092\u8d77\u52d5\u3057\u3066\u307f\u305f\u306e\u3067\u3059\u304c\u3061\u3087\u3063\u3068\u554f\u984c\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u753b\u50cf\u306e\u30ad\u30e3\u30d7\u30c1\u30e3\u304c\u306a\u3044\u306e\u3067\u8a18\u9332\u3067\u6b8b\u3057\u307e\u3059\u3002<\/p>\n\n\n<pre class=\"wp-block-code\"><code># cloudflared  tunnel --url http:\/\/127.0.0.1:80<\/code><\/pre>\n\n\n<p>\u4e0a\u8a18\u30b3\u30de\u30f3\u30c9\u3067 cloudflared \u81ea\u4f53\u306f\u8d77\u52d5\u3057\u305f\u306e\u3067\u3059\u3002\u3057\u304b\u3057\u306a\u304c\u3089\u3001\u30c8\u30f3\u30cd\u30eb\u306e\u78ba\u8a8d\u3092\u884c\u3046\u305f\u3081\u306b\u30db\u30b9\u30c8PC\u5074\u304b\u3089\u4ee5\u4e0b\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u3068\u3053\u308d\u3001400\u30a8\u30e9\u30fc\u3068\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n<pre class=\"wp-block-code\"><code>$ curl -I Cloudflare Quick Tunnels\u304b\u3089\u6255\u3044\u51fa\u3055\u308c\u305fURL<\/code><\/pre>\n\n\n<p>\u306a\u3093\u3067\u304b\u306a\u3068\u601d\u3044\u3001\u3088\u304f\u3088\u304f\u601d\u3044\u51fa\u3057\u3066\u307f\u308b\u3068\u4eca\u56de\u306f EC-CUBE \u3092\u5165\u308c\u305f\u74b0\u5883\u3067\u3059\u3002<\/p>\n<p>EC-CUBE \u306e\u8a2d\u5b9a\uff08 .env \uff09\u306b TRUSTED_HOSTS \u74b0\u5883\u5909\u6570\u304c\u3042\u308a\u3001\u3053\u3053\u3067\u8a31\u53ef\u3055\u308c\u3066\u3044\u306a\u3044\u3068\u53c2\u7167\u3067\u304d\u306a\u3044\u3053\u3068\u3092\u601d\u3044\u51fa\u3057\u307e\u3057\u305f\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"891\" height=\"614\" src=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/11_env.png\" alt=\"\" class=\"wp-image-9289\" srcset=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/11_env.png 891w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/11_env-300x207.png 300w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/11_env-768x529.png 768w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/11_env-150x103.png 150w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/11_env-218x150.png 218w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/11_env-696x480.png 696w\" sizes=\"auto, (max-width: 891px) 100vw, 891px\" \/><\/figure>\n\n\n<p>\u6c17\u3092\u53d6\u308a\u76f4\u3057\u3066\u3001\u4eca\u5ea6\u3053\u305d\u3068 curl \u3092 \u5b9f\u884c\u3057\u305f\u3089 \u4eca\u5ea6\u306f 301 \u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u304c\u30eb\u30fc\u30d7\u3059\u308b\u3068\u3044\u3046\u72b6\u614b\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u308c\u3082\u306a\u3093\u3067\u304b\u306a\u3068\u8003\u3048\u3066\u307f\u308b\u3068\u3001<\/p>\n\n\n<pre class=\"wp-block-code\"><code># cloudflared  tunnel --url http:\/\/127.0.0.1:80<\/code><\/pre>\n\n\n<div class=\"ui-default-code__line\">\n<div class=\"ui-default-code__line-content\">\u539f\u56e0\u306f\u3001cloudflared \u304c VM \u5185\u3078 HTTP\uff0880\uff09\u3067\u5c4a\u3051\u3066\u3044\u308b\u4e00\u65b9\u3001\u30ed\u30fc\u30ab\u30eb\u30b5\u30a4\u30c8\u306f\u81ea\u5df1\u8a3c\u660e\u66f8\u306e HTTPS\uff08443\uff09\u3067\u52d5\u3044\u3066\u3044\u308b\u305f\u3081\u3067\u3059\u3002\u5916\u5074\u306f\u3059\u3067\u306b HTTPS \u306a\u306e\u306b\u3001\u5185\u5074\u3067\u306f\u300c\u307e\u3060 HTTP\u300d\u3068\u898b\u3048\u3066 301 \u304c\u7e70\u308a\u8fd4\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002<\/div>\n<\/div>\n<div>\u00a0<\/div>\n<div>\n<div class=\"ui-default-code__line\">\n<div class=\"ui-default-code__line-content\">\u305d\u306e\u305f\u3081\u3001cloudflared \u306e\u8ee2\u9001\u5148\u3092\u30ed\u30fc\u30ab\u30eb\u306e HTTPS \u306b\u5408\u308f\u305b\u3066\u5909\u66f4\u3057\u307e\u3059\u3002<\/div>\n<\/div>\n<div class=\"ui-default-code__line\">\n<div class=\"ui-default-code__line-content\">\u81ea\u5df1\u8a3c\u660e\u66f8\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u8a3c\u660e\u66f8\u691c\u8a3c\u3092\u30b9\u30ad\u30c3\u30d7\u3059\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\uff08 &#8211;no-tls-verify \uff09\u3082\u4ed8\u3051\u307e\u3057\u305f\u3002<\/div>\n<\/div>\n<\/div>\n<div>\u00a0<\/div>\n<h4><strong>\uff15\uff09cloudflared \u4eca\u5ea6\u3053\u305d\u8d77\u52d5<\/strong><\/h4>\n<p>\uff14\uff09\u306e\u7d4c\u7def\u304c\u3042\u308a\u307e\u3057\u305f\u306e\u3067\u3001cloudflared \u3092\u4e00\u5ea6\u843d\u3068\u3057\u3066\u3001\u518d\u5ea6\u4ee5\u4e0b\u30b3\u30de\u30f3\u30c9\u3067\u8d77\u52d5\u3055\u305b\u307e\u3059\u3002<\/p>\n\n\n<pre class=\"wp-block-code\"><code># cloudflared tunnel --url https:\/\/127.0.0.1:443 --no-tls-verify<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"890\" height=\"614\" src=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/10_1_cloudflared_started-1.png\" alt=\"\" class=\"wp-image-9291\" srcset=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/10_1_cloudflared_started-1.png 890w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/10_1_cloudflared_started-1-300x207.png 300w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/10_1_cloudflared_started-1-768x530.png 768w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/10_1_cloudflared_started-1-150x103.png 150w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/10_1_cloudflared_started-1-218x150.png 218w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/10_1_cloudflared_started-1-696x480.png 696w\" sizes=\"auto, (max-width: 890px) 100vw, 890px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"889\" height=\"615\" src=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/10_2_cloudflared_started.png\" alt=\"\" class=\"wp-image-9292\" srcset=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/10_2_cloudflared_started.png 889w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/10_2_cloudflared_started-300x208.png 300w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/10_2_cloudflared_started-768x531.png 768w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/10_2_cloudflared_started-150x104.png 150w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/10_2_cloudflared_started-218x150.png 218w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/10_2_cloudflared_started-696x481.png 696w\" sizes=\"auto, (max-width: 889px) 100vw, 889px\" \/><\/figure>\n\n\n<p>\u7121\u4e8b\u8d77\u52d5\u3057\u307e\u3057\u305f\u30fb\u30fb\u30fb\u3002<\/p>\n<div class=\"ui-default-code__line\">\n<div class=\"ui-default-code__line-content\">\u8d77\u52d5\u304c\u6210\u529f\u3059\u308b\u3068\u3001https:\/\/xxxx.trycloudflare.com \u306e\u3088\u3046\u306a URL \u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u305f\u3060\u3057\u3001Quick Tunnels \u3067\u306f\u3001cloudflared \u3092\u8d77\u52d5\u3059\u308b\u305f\u3073\u306b\u3053\u306e URL \u304c\u5909\u308f\u308a\u307e\u3059\u3002URL \u3092\u30e1\u30e2\u3057\u3066\u3082\u518d\u8d77\u52d5\u5f8c\u306b\u306f\u4f7f\u3048\u306a\u3044\u306e\u3067\u3001\u691c\u8a3c\u3067\u8d77\u52d5\u306e\u305f\u3073\u306b\u8868\u793a\u3055\u308c\u305f URL \u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/div>\n<div>\u00a0<\/div>\n<div class=\"ui-default-code__line-content\">\u3067\u306f\u3001\u30db\u30b9\u30c8 PC \u5074\u304b\u3089 curl \u3067\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/div>\n<div>\u00a0<\/div>\n<\/div>\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"889\" height=\"613\" src=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/12_curl-1.png\" alt=\"\" class=\"wp-image-9294\" srcset=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/12_curl-1.png 889w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/12_curl-1-300x207.png 300w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/12_curl-1-768x530.png 768w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/12_curl-1-150x103.png 150w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/12_curl-1-218x150.png 218w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/12_curl-1-696x480.png 696w\" sizes=\"auto, (max-width: 889px) 100vw, 889px\" \/><\/figure>\n\n\n<p>200 \u3067 \u8fd4\u3063\u3066\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u8d8a\u3057\u3067\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u306e\u30b5\u30a4\u30c8\u304c\u8868\u793a\u3067\u304d\u308b\u304b\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"535\" src=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/13_tunnels_site-1024x535.png\" alt=\"\" class=\"wp-image-9295\" srcset=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/13_tunnels_site-1024x535.png 1024w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/13_tunnels_site-300x157.png 300w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/13_tunnels_site-768x402.png 768w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/13_tunnels_site-1536x803.png 1536w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/13_tunnels_site-150x78.png 150w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/13_tunnels_site-696x364.png 696w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/13_tunnels_site-1068x558.png 1068w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/13_tunnels_site.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n<p>\u8868\u793a\u3055\u308c\u307e\u3057\u305f\uff01<\/p>\n<h4><strong>\uff16\uff09 Webhook \u306e\u78ba\u8a8d<\/strong><\/h4>\n<p>\u4eca\u56de\u81ea\u5206\u304c\u78ba\u8a8d\u3057\u305f\u304b\u3063\u305f\u306e\u306f\u3001Webhook \u304c\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u53d7\u3051\u3089\u308c\u308b\u304b\u3068\u3044\u3046\u3053\u3068\u3067\u3057\u305f\u306e\u3067\u3001\u5b9f\u9a13\u306e\u305f\u3081\u306b\u4ee5\u4e0b\u3092\u6e96\u5099\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n<pre class=\"wp-block-code\"><code>webhook-test.php\n\n&lt;?php\n\/\/ \u691c\u8a3c\u7528: \u30c8\u30f3\u30cd\u30eb\u7d4c\u7531\u306e POST \u78ba\u8a8d\n$logFile = __DIR__ . '\/webhook-test.log';\n\nfile_put_contents(\n    $logFile,\n    date('c') . ' ' . file_get_contents('php:\/\/input') . \"\\n\",\n    FILE_APPEND\n);\n\nheader('Content-Type: application\/json');\nhttp_response_code(200);\necho json_encode(&#91;'ok' =&gt; true]), PHP_EOL;\n<\/code><\/pre>\n\n\n<p>\u4e2d\u8eab\u306f\u7c21\u5358\u306a\u3082\u306e\u3067\u3059\u304c\u3001POST\u3055\u308c\u3066\u304d\u305f\u3089\u3001\u5185\u5bb9\u3092\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u8fbc\u307f\u3001 response \u3092\u8fd4\u3059\u51e6\u7406\u3067\u3059\u3002\u30bd\u30fc\u30b9\u306f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u306b\u8a2d\u7f6e\u3057\u3066\u3001\u30ed\u30b0\u306f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u76f4\u4e0b\u306e webhook-test.log \u306b\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n<p>\u30db\u30b9\u30c8 PC \u3092\u5916\u90e8\u30b5\u30fc\u30d3\u30b9\u3068\u898b\u505a\u3057\u3001\u4ee5\u4e0b\u30b3\u30de\u30f3\u30c9\u3067 POST \u3057\u307e\u3059\u3002<\/p>\n\n\n<pre class=\"wp-block-code\"><code>$ curl -i -X POST \"https:\/\/\u3010 Cloudflare Quick Tunnels \u3067\u6255\u3044\u51fa\u3055\u308c\u305fURL\u3011\/webhook-test.php\" -H \"Content-Type: application\/json\" -d '&#91;{\"event\":\"test\"}]'<\/code><\/pre>\n\n\n<p>\u3010\u30db\u30b9\u30c8\u5074\u3011<\/p>\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"889\" height=\"611\" src=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/14_1_webhook_test.png\" alt=\"\" class=\"wp-image-9296\" srcset=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/14_1_webhook_test.png 889w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/14_1_webhook_test-300x206.png 300w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/14_1_webhook_test-768x528.png 768w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/14_1_webhook_test-150x103.png 150w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/14_1_webhook_test-218x150.png 218w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/14_1_webhook_test-696x478.png 696w\" sizes=\"auto, (max-width: 889px) 100vw, 889px\" \/><\/figure>\n\n\n<p>\u3010\u30b2\u30b9\u30c8\u5074\u3011<\/p>\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"889\" height=\"618\" src=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/14_2_webhook_test.png\" alt=\"\" class=\"wp-image-9297\" srcset=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/14_2_webhook_test.png 889w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/14_2_webhook_test-300x209.png 300w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/14_2_webhook_test-768x534.png 768w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/14_2_webhook_test-150x104.png 150w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/14_2_webhook_test-696x484.png 696w\" sizes=\"auto, (max-width: 889px) 100vw, 889px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"889\" height=\"615\" src=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/14_3_webhook_test.png\" alt=\"\" class=\"wp-image-9298\" srcset=\"https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/14_3_webhook_test.png 889w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/14_3_webhook_test-300x208.png 300w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/14_3_webhook_test-768x531.png 768w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/14_3_webhook_test-150x104.png 150w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/14_3_webhook_test-218x150.png 218w, https:\/\/www.wetch.co.jp\/note\/wp-content\/uploads\/2026\/06\/14_3_webhook_test-696x481.png 696w\" sizes=\"auto, (max-width: 889px) 100vw, 889px\" \/><\/figure>\n\n\n<p>\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u306bPOST\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\uff01<\/p>\n<h4><strong>\uff17\uff09\u6700\u5f8c\u306b<\/strong><\/h4>\n<div class=\"ui-default-code__line\">\n<div class=\"ui-default-code__line-content\">\u4eca\u56de\u306f\u3001\u30eb\u30fc\u30bf\u30fc\u306e\u30dd\u30fc\u30c8\u8ee2\u9001\u306a\u3057\u3067\u3001\u30ed\u30fc\u30ab\u30eb\u306e Vagrant \u74b0\u5883\u3092 Cloudflare Quick Tunnels \u7d4c\u7531\u3067\u4e00\u6642\u7684\u306b\u5916\u90e8\u516c\u958b\u3057\u3001 Webhook \u306e POST \u304c\u5c4a\u304f\u3068\u3053\u308d\u307e\u3067\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002<\/div>\n<\/div>\n<div>\u00a0<\/div>\n<div>\u8272\u3005\u3042\u308a\u307e\u3057\u305f\u304c\u30fb\u30fb\u30fb<\/div>\n<div>\u00a0<\/div>\n<div>Cloudflare Quick Tunnels \u306f\u8d77\u52d5\u306e\u305f\u3073 URL \u304c\u5909\u308f\u308a\u3001\u691c\u8a3c\u5411\u3051\u306e\u4e00\u6642\u7684\u306a\u4ed5\u7d44\u307f\u3067\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u30eb\u30fc\u30bf\u30fc\u306e\u5909\u66f4\u3092\u3059\u308b\u3053\u3068\u306a\u304f\u5916\u90e8\u30b5\u30fc\u30d3\u30b9\u3068\u3084\u308a\u3068\u308a\u306e\u78ba\u8a8d\u304c\u3067\u304d\u305f\u308a\u3001\u4e00\u6642\u7684\u306b\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u306e\u30b5\u30a4\u30c8\u3092\u516c\u958b\u3067\u304d\u305f\u308a\u3067\u304d\u308b\u306e\u306f\u4fbf\u5229\u3060\u306a\u3068\u601d\u3044\u307e\u3057\u305f\u3002<\/div>\n<div class=\"ui-default-code__line\">\u00a0<\/div>\n<div class=\"ui-default-code__line\">\n<div class=\"ui-default-code__line-content\">\u4e00\u6642\u7684\u306a\u3082\u306e\u3067\u306f\u306a\u304f\u3001\u518d\u8d77\u52d5\u3057\u3066\u3082\u540c\u3058 URL \u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u3001\u5225\u306e Cloudflare Tunnels \u306e\u69cb\u6210\u3092\u691c\u8a0e\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3042\u3068\u306f\u3001\u4e00\u6642\u7684\u306b\u5916\u90e8\u3068\u901a\u4fe1\u53ef\u80fd\u306a\u72b6\u614b\u306b\u306a\u308b\u306e\u3067\u3001\u691c\u8a3c\u304c\u7d42\u308f\u3063\u305f\u3089 cloudflared \u3092\u6b62\u3081\u3066\u3001\u9589\u3058\u308b\u3053\u3068\u3092\u304a\u5fd8\u308c\u306a\u304f\u3002<\/div>\n<div>\u00a0<\/div>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u30c6\u30b9\u30c8\u3057\u3066\u3044\u308b\u3068\u304d\u306b\u3001\u3053\u3093\u306a\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002 \u5916\u90e8\u30b5\u30fc\u30d3\u30b9\u304b\u3089 Webhook \u3092\u53d7\u4fe1\u3057\u305f\u3044\u3002 \u305f\u3060\u3001\u30b0\u30ed\u30fc\u30d0\u30eb IP \u304c\u3042\u3063\u3066\u3082\u3001\u5185\u5411\u304d\u306e\u30a2\u30af\u30bb\u30b9\u7d4c\u8def\u3092\u4f5c\u308c\u306a\u3044\uff08\u793e\u5185 LAN \u306e\u30eb\u30fc\u30bf\u30fc\u8a2d\u5b9a\u306f\u89e6\u308c\u306a\u3044\uff09\u3002 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":9299,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_wp_rev_ctl_limit":""},"categories":[210,213],"tags":[],"class_list":["post-9276","post","type-post","status-publish","format-standard","has-post-thumbnail","category-210","category-213"],"_links":{"self":[{"href":"https:\/\/www.wetch.co.jp\/note\/wp-json\/wp\/v2\/posts\/9276","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wetch.co.jp\/note\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wetch.co.jp\/note\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wetch.co.jp\/note\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wetch.co.jp\/note\/wp-json\/wp\/v2\/comments?post=9276"}],"version-history":[{"count":0,"href":"https:\/\/www.wetch.co.jp\/note\/wp-json\/wp\/v2\/posts\/9276\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wetch.co.jp\/note\/wp-json\/wp\/v2\/media\/9299"}],"wp:attachment":[{"href":"https:\/\/www.wetch.co.jp\/note\/wp-json\/wp\/v2\/media?parent=9276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wetch.co.jp\/note\/wp-json\/wp\/v2\/categories?post=9276"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wetch.co.jp\/note\/wp-json\/wp\/v2\/tags?post=9276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}