Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article? ã¯ããã« Charles ã使ã㨠PC ä¸ã« HTTP ãããã·ãç«ã¦ã¦ç«¯æ«ã®éä¿¡ããã£ããã£ãããªã¯ã¨ã¹ããã¬ã¹ãã³ã¹ã®å 容ãè¦ãããæ¸ãæãããã¨ãåºæ¥ããé¡ä¼¼ã®ã½ããã¦ã§ã¢ã¨ã㦠Wireshark ã Fiddler, Paros ãããã ã¢ããªã®éçºããã¦ãã¦ããããã®ã¯ãAPIãã¹ã¿ãã§åºå®å¤ããè¿ãã¦ãããªããç°å¸¸ç³»ã¨ã©ã¼ã®ãããã°ãããã¥ãããã¨ããå ´é¢ã ããCharles ãªãéä¿¡ã好ãã«å¤ãæ¸ãæããããã®ã§ãããã«ç°¡åã«å¯¾å¦ãããã¨ãã§ããã Charles 㯠Java ã¢ããªãªã®ã§ OS X ã ãã§ãªã W
ãã¾ã¾ã§ãªãã¼ã¹ãããã·ã®è¨å®ãããããã£ã¦ããªãã¦ããã§ã«åãã¦ãããµã¼ãã®è¨å®ãè¦ããè¦ã¾ãã§ä½¿ãåãã¦ãããã¡ããã¨ç解ãããã¨æã£ã¦ãããã¥ã¢ã«ãèªã¿ç´ããããã£ã¨ããã£ããè¨å®ã®æ¹æ³ (How) ãããã£ããã¨ä»¥ä¸ã«ããªãããæ¸ãå¿ è¦ããããã¨ããçç± (Why) ãç解ã§ããã®ãå¬ãããä¹ ãã¶ãã«ãããã£ãï¼ãã¨å«ã³ãããªã£ããæåãå¿ããªããã¡ã«ãæãåºããããã«ãæ¸ãã¦ããã mod_proxy - Apache HTTP ãµã¼ã ãã¼ã¸ã§ã³ 2.2 ã Apache ã®ãããã·é¢é£ã®ããã¥ã¢ã«ã mod_proxy ã使ããã¨ã«ãªãã 大äºãªãã£ã¬ã¯ãã£ãã¯ã ProxyPass 㨠ProxyPassReverse ã®ãµãã¤ã ProxyPass ããããªãã¼ã¹ãããã·ãããä¸ã§ã®ã»ã¨ãã©ãã¹ã¦ã®ãã¨ããã£ã¦ããããå®ã¯è¦æ £ãã (ã³ãããæ £ãã) è¨å®ã§ã¯ãã®ãã£ã¬ã¯
DMZãªããã«ãããã·ãµã¼ããç«ã¦ã¦ãå¤é¨ãµã¼ãã®APIãªãããå¼ã³åºãããå ´åãªããã«ãApacheã§ãã©ã¯ã¼ããããã·ãç«ã¦ãã æ§æ APãµã¼ãâï¼DMZã®ï¼ãã©ã¯ã¼ããããã·ãµã¼ãâå¤é¨APIãµã¼ã ãã®æ§æã«ããçç± DMZãã¯ãããã¨ã§ãããã¯ã¼ã¯çãªã»ãã¥ãªãã£ãç¢ºä¿ åå¾ããã³ã³ãã³ãããã£ãã·ã¥ãããã¨ã§è² è·è»½æ¸ httpd.confã®è¨å®å¤æ´ ä¸è¨ã®ï¼ã¤ã®ã¢ã¸ã¥ã¼ã«ããã¼ãããã LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_http_module modules/mod_proxy_http.so proxy ãã£ã¬ã¯ãã£ãã¨ãã¦ä»¥ä¸ãè¨å®ã # ãããOffã ã¨ãªãã¼ã¹ãããã·ã«ãªãã®ã§æ³¨æï¼ ProxyRequests On Order deny,allow Deny from all
Apacheã®mod_proxyã®è¨å®ãããã®ã§ã¡ã¢ãããã ä»åã¯ããªãã¼ã¹ãããã·ï¼ããç¹å®ã®ãã¹ã ããé¤å¤æ¡ä»¶ãæ¸ãã¦å¥ãµã¼ãã¼ã¸ãããã·ããã ã¤ã³ã¹ãã¼ã« takuya@host $ sudo aptitude install apache2 #apache2ã®ã¤ã³ã¹ãã¼ã« takuya@host $ sudo a2enmod proxy #mod_proxyãæå¹å takuya@host $ sudo a2enmod proxy_http #httpã®ãããã·ã使ã ãã®ã»ãã«ã proxy_balancerï¼ãããã·æ©è½ã使ã£ããã¼ããã©ã³ãµï¼ proxy_ftp ftpãµã¼ãã¼ã®ãããã·æ©è½ãããã proxy_ajp apache tomcat ã¢ããªã±ã¼ã·ã§ã³ééä¿¡ãããã·ãªã©ãããã proxy_connect #connect ã¡ã½ããï¼HTTPSã®ãããã·ã§ä½¿ã
ãããã·ã¨ããã°ãHTTPãããã·(WEBãããã·)ãä¸è¬çã«ããç¥ããã¦ãããå¿åãããã·ã使ããã¨ã«ãã£ã¦ããç¨åº¦ã¯ã©ã¤ã¢ã³ãã®å¿åæ§ã確ä¿ã§ãããããã®ã§ãé常ãããã·ã¯ããããµã¼ãã£ã³ãªã©ãããã¦ã¼ã¶ã®ã¡ãªããã°ããç®ç«ã¤ã®ã ãããããã·ã使ããã¨ã«ãã£ã¦ãããã·ç®¡çè ã«ã¯è¤æ°ã®ã¡ãªããããã£ããããã ãããã·ãå®ç¾ããã«ã¯ãä¸è¬çã« Squid ãã¡ã¸ã£ã¼ã ããApacheã«ããããã·ã®æ©è½ããããå®ç¾å¯è½ãªæ©è½ãã¾ã¨ãã¦ã¿ããã ãã©ã¯ã¼ããããã·(LANå åãã®ãããã·) ã»ãããããæå®ããURLã¸ã®æ¥ç¶ãæå¦(ã³ã³ãã³ããããã¯) ã»LANå PCã®ãã©ã¦ã¸ã³ã°ç£è¦ ã»ãã£ãã·ã¥ã«ããé«éå é常ã®ãã©ã¯ã¼ããããã·ã¯ã¯ã©ã¤ã¢ã³ãã¨å ã ã®ãµã¼ãã®éã«ä½ç½®ããä¸éãµã¼ãã§ãã å ã ã®ãµã¼ãããã³ã³ãã³ããåå¾ããããã«ãã¯ã©ã¤ã¢ã³ãã¯ãããã·ã«å ã ã®ãµã¼ããæå®ãã¦ãªã¯ã¨ã¹
æ°ãããï¼ ãªãProxyPassReverseã«balancer://~~ ãè¨å®ã§ããªãã®ã *1 ãªãProxyPassReverseã«ajp://~~ ãè¨å®ã§ããªãã®ã ãªãbackendãhttpã¨ajpã®å ´åã§ãProxyPassReverseã«è¨å®ããURLãç°ãªãã®ã ãªã©ãªã©ãä»ã¾ã§ã¯mod_proxyããæ©ä¼ãã»ã¨ãã©ãªãé©å½ã«ãè¶ãæ¿ãã¦ããã®ã§ãä¸éã®äººããç¸å½é ãã¦ããã¨ã¯æãã¾ããããã£ãããªã®ã§èªåç¨ã¾ã¨ããæãã¤ãããã¨ãã¤ãã¤ãã¨ã¡ã¢ã£ã¦ããããããªãåé·ã§ããã è¿½è¨ 20100907 http://ftp.riken.jp/net/apache//httpd/CHANGES_2.2 apache 2.2.12 ãããbalancer:// ã®URLã«ãProxyPassReverseã使ããããã«mod_proxyããã¯ã¼ã¢ãããã¦ãã¾ããã *)
Androidã®ã¢ããªéçºãããã¨ãã«ããµã¼ãã¨ã®éä¿¡ã確èªãããã¨ãããã¨ã¯ããããã¾ãã éä¿¡ã®ç¢ºèªã«Fiddlerãçµã¿åããã¦ä½¿ããã¨ã§ãXMLãæ´å½¢ãããç¶æ ã§è¦ããã詳細ãªHTTPãããã確èªãããããªã¯ã¨ã¹ããæ¹ããããããã¢ããªããã°ã©ã å´ãå¤æ´ããã«éçºãµã¼ããè¦ã«è¡ãããã«ãããã§ããããã«ãªãã¾ããèªåã®ãã¼ã«ã«ãã·ã³ã ãã§ãµã¼ãã»ã¯ã©ã¤ã¢ã³ãã¢ãã«ã®éçºãå®äºã§ããç°å¢ãä½ã£ã¦ããã¨æ¥½ã§ããã Fiddlerã«ã¤ãã¦ã¯ãã¡ãã å®ã¯Fiddlerããããããã®ã§ãæ©è½ã¾ã¨ãç´¹ä» : blog.loadlimit â digital matter â Androidã¨ãã¥ã¬ã¼ã¿ã®HTTP Proxyè¨å®æ¹æ³ã«ã¤ãã¦åèã«ããã®ã¯ãã¡ãã [Android] ã¨ãã¥ã¬ã¼ã¿ã¼ã®ãããã·è¨å®ï¼Using the Emulator with a Proxyï¼ â adakod
â ããã¾ã§ç ´ç¶»ãã¦ããã±ã¼ã¿ã¤IDèªè¨¼ï¼ç°¡åãã°ã¤ã³ï¼ 2009å¹´å¤ãã¯ã¦ãªããã¯ãã¼ã¯çéã§ã¯ããããããã°ã¤ã³ããå±ããã¨ãã話é¡ã§æã¡åãã ã£ããIPã¢ãã¬ã¹å¶éããã¦ãã¦ãçªç ´ã§ãã¦ãã¾ãã®ã§ã¯ãªããã¨ãã話ã ã£ãã å®éã«åãã¦ãã使ãããPHPã«ãããããããã°ã¤ã³ãµã³ãã«ããä½ã£ã¦ã¿ã¾ãã, ke-tai.org, 2009å¹´7æ31æ¥ SoftBank Mobileã®æºå¸¯ç¨GatewayãPCã§éãæ¹æ³ã®ã¡ã¢, Perlã¨ãmemoã¨ãæ¥è¨ã¨ãã, 2009å¹´8æ1æ¥ ã½ãããã³ã¯ã®æºå¸¯ç¨GatewayãPCã§éãæ¹æ³ãããããã§ã, ke-tai.org, 2009å¹´8æ4æ¥ ããã¯è¦ããã«æ¬¡ã®ãããªè©±ã ã£ãã ã¾ããSoftBankã®æºå¸¯é»è©±ã§ç¹å®ã®APN mailwebservice.softbank.ne.jp ã§ãããæ¥ç¶ãã¦ãæå®ã®Proxyãµã¼ã sbwap
Firefoxã«ã¯ãå¿åãã©ã¦ã¸ã³ã°ãè¡ããã¨ãã§ããã¢ããªã³ãããã¤ãããã¾ãããããããããããã·ãµã¼ãã¼ã®ç¨æããã¦ãã¼ã«ã«ã»ãããã¦ããå¿ è¦ããããªã©ãåå¿è ã«ã¨ã£ã¦ã¯ã¡ãã£ã¨ããããããã®ãå¤ãã§ããã ã¾ãããããã¦ãããã·ãµã¼ããã»ãããã¦ããæ¥ç¶ã極端ã«é ãã£ããããã¤ã®éã«ã使ããªããªã£ã¦ããããããã¨ãçãããªããã¤ã©ã¤ã©ããããããã¨ãããã¾ãã ãããã串ãéãããã©ã¦ã¸ã³ã°ãããã¿ã³ä¸ã¤ã§å®è¡ãããã¨ãã§ããFirefoxã¢ããªã³ãããHide My Ass!ãã§ãã ãHide My Ass!ãã¯ããã©ã¦ã¸ã³ã°æã«ãå°ç¨ã®ã¹ãã¼ã¿ã¹ãã¼ãã¿ã³ãã¯ã³ã¯ãªãã¯ããã ãã§ãååã®ãããã·ãµã¼ãã¹ãHide My Ass!ããå©ç¨ããã®ã¨åãããã«ããã¯ã·çµç±ã§ãã©ã¦ã¸ã³ã°ãè¡ããã¨ãã§ããã¢ããªã³ã§ãã å¾æ¥ã®å種ã®ã¢ããªã³ã¨éããWebãµã¼ãã¹ãFirefoxã§å©ç¨
â¡ãã©ã¦ã¶ã¨ãããã·ãµã¼ãã-ãããã·ã®èªåè¨å®æ¹æ³ã解説- ãã©ã¦ã¶ã¨ã¯ç°¡åã«èª¬æãããã¾ãã¨ãWebãµã¤ãã®ãã¼ã¸ãé²è¦§ããããã®ã¢ããªã±ã¼ã·ã§ã³ã½ããã®äºã§ããWindowsã®OSãã使ãã®æ¹ã¯ã¤ã³ã¿ã¼ãããã¨ã¯ã¹ããã¼ã©ã¼(以ä¸IE)ããæ¨æºã®ã¢ããªã±ã¼ã·ã§ã³ã½ããã¨ãã¦ä»ãã¦ãã¾ãã以åã¾ã§ã¯ãã®IEã¨ãããã¹ã±ã¼ããé常ã«äººæ°ã®é«ããã©ã¦ã¶ã¨ãªã£ã¦ããã¾ããããä»ã§ã¯ãããã¹ã±ã¼ãã人æ°ãã©ã¦ã¶ã¨ãã¦ä¸éãã¦ãã¾ããæ°ããªäººæ°ãèªãFirefoxã人æ°ãéãã¦ãã¾ãã ããããã®æ¨æºã®ã¢ããªã¨ãã¦è£ åããããã¤ã¯ãã½ãã社ã®IEã®ä½¿ç¨è ãã»ã¨ãã©ã§ãããã«ã¯çãè½ã¨ãç©´ãããã¾ããIEã®ã»ãã¥ãªãã£ã¼ãã¼ã«ãçã£ããããã³ã°è¡çºãããã¯ã©ãã«ã¼ãããªããçã£ã¦ããã¨è¨ãäºã§ãã ä½æ IEã®ã»ãã¥ãªãã£ã¼ãã¼ã«ãçã£ã¦ããã®ã§ããããï¼ çãã¯ç°¡åã§ãããã åã«ãã½ã³ã³åå¿è ã®
2007å¹´04æ07æ¥22:15 ã«ãã´ãªiTech Apache - proxyã使ã£ã¦äººæ§ã®ã¢ã¯ã»ã¹ããã°ãã ãããªPHPãªãã¦ä½¿ããªãã¦ããApacheã ãã§ã§ãã¾ãããªã ä¼æ¥ã¤ã³ãã©ãããã®ã¡ãã£ã¨ã°ãã¤å°è©±4æ¬*ãã¼ã ãã¼ã¸ãä½ã人ã®ãã¿å¸³ ããªãç°¡åãªæ§é ã§ãã æ¤ç´¢ããã¯ã¹ãã http://(èªç¤¾ã°ã«ã¼ãã¦ã§ã¢ãã¡ã¤ã³)/get.php ã«å¯¾ãã¦ãæ¤ç´¢ããã¯ã¹ããã¯ã¨ãªãéä¿¡ããã ããã§ããµã¼ãã¼ã«æ¤ç´¢ãã¼ã¯ã¼ãå±¥æ´ãä¿åãã¾ãã ãã®å¾ãä½äºããªãã£ããã®ããã« header("Location: http://www.google.co.jp/search?q=".$q."&hl=ja&ie=EUC-JP"); ãPHPã«æ¸ãè¾¼ãã§ããã ãã§ãGoogleã®æ¤ç´¢çµæã«ç§»è¡ããã 以ä¸ã¯Apache 2.0.xã«ãããæ¹æ³ã§ããã1.3.xã§ã2.2.xã§ãéãã¯ã»
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}