<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi guys, thanks for reading this! I’m new so sorry if this is a dumb question! But I've been finding the answer for 3 days but still no sign of light.<div class=""><br class=""></div><div class="">I’ve already posted the problem on GCE discussion group- this link: <a href="https://groups.google.com/forum/#!topic/gce-discussion/xwlHYhFTUtU" class="">https://groups.google.com/forum/#!topic/gce-discussion/xwlHYhFTUtU</a></div><div class=""><br class=""></div><div class="">To make it clear, I also restate the problem here:</div><div class=""><div class="IVILX2C-ed-a" style="margin: 0px 0px 0px 44px; padding: 0px 0px 0px 5px; border: 0px;"><div tabindex="0" class="IVILX2C-tb-P" style="margin: 0px; padding: 0px; border: 0px; color: rgb(34, 34, 34); line-height: normal;"><div style="margin: 0px; padding: 0px; border: 0px;" class=""><div style="margin: 0px; padding: 0px; border: 0px; overflow: auto;" class=""><div style="margin: 0px; padding: 0px; border: 0px; max-height: 10000px;" class=""><div dir="ltr" style="margin: 0px; padding: 0px; border: 0px;" class=""><p style="margin: 1em 0px; padding: 0px; border: 0px; line-height: normal; clear: both; color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;" class=""><span style="font-size: 11px;" class="">Been working on this for 2 days and still cannot find the way out :(</span></p><p style="margin: 1em 0px; padding: 0px; border: 0px; line-height: normal; clear: both; color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;" class=""><span style="font-size: 11px;" class="">Below is my setup for testing, which basically supports all http_access through port 8888</span></p><p style="margin: 1em 0px; padding: 0px; border: 0px; line-height: normal; clear: both; color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;" class=""><span style="font-size: 11px;" class="">-squid.conf file:</span></p><pre style="margin-top: 0px; padding: 5px; border: 0px; width: auto; max-height: 600px; overflow: auto; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; background-color: rgb(239, 240, 241); word-wrap: normal; color: rgb(36, 39, 41);" class=""><code style="margin: 0px; padding: 0px; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; font-size: 11px;" class="">http_port 8888
http_access allow all
</code></pre><p style="margin: 1em 0px; padding: 0px; border: 0px; line-height: normal; clear: both; color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;" class=""><span style="font-size: 11px;" class="">-Open port 8888 for incoming HTTP data by gcloud command (which returned "allowed")</span></p><pre style="margin-top: 0px; padding: 5px; border: 0px; width: auto; max-height: 600px; overflow: auto; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; background-color: rgb(239, 240, 241); word-wrap: normal; color: rgb(36, 39, 41);" class=""><code style="margin: 0px; padding: 0px; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; font-size: 11px;" class="">gcloud compute firewall-rules create allow-tcp --description "Incoming-http-allowed." --allow tcp:8888 --format json
</code></pre><p style="margin: 1em 0px; padding: 0px; border: 0px; line-height: normal; clear: both; color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;" class=""><span style="font-size: 11px;" class="">With the setup above, I can telnet to the IP with port 8888. However, when querying to some http links with browser (Safari/Chrome), I always get this message</span></p><pre style="margin-top: 0px; padding: 5px; border: 0px; width: auto; max-height: 600px; overflow: auto; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; background-color: rgb(239, 240, 241); word-wrap: normal; color: rgb(36, 39, 41);" class=""><code style="margin: 0px; padding: 0px; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; font-size: 11px;" class="">The following error was encountered while trying to retrieve the URL: <a href="http://google.com/" target="_blank" rel="nofollow" style="margin: 0px; padding: 0px; border: 0px; text-decoration: none; color: rgb(102, 17, 204); cursor: pointer;" class="">http://google.com/</a>
Access Denied.
Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.
Your cache administrator is webmaster.
</code></pre><ul style="margin: 0px 0px 1em 30px; padding: 0px; border: 0px; color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;" class=""><li style="line-height: 17px; margin: 0px 0px 0.5em; padding: 0px; border: 0px; word-wrap: break-word;" class=""><span style="font-size: 11px;" class="">I also tried other ports (3128, 8000, 80) but no help</span></li><li style="line-height: 17px; margin: 0px; padding: 0px; border: 0px; word-wrap: break-word;" class=""><span style="font-size: 11px;" class="">I also tried to force the port to listen IPv4 addresses with something like <code style="margin: 0px; padding: 1px 5px; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; background-color: rgb(239, 240, 241); white-space: pre-wrap;" class="">http_port <a href="http://0.0.0.0:8888/" target="_blank" rel="nofollow" style="margin: 0px; padding: 0px; border: 0px; text-decoration: none; color: rgb(102, 17, 204); cursor: pointer;" class="">0.0.0.0:8888</a></code> and still not working</span></li></ul><p style="margin: 1em 0px; padding: 0px; border: 0px; line-height: normal; clear: both; color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;" class=""><span style="font-size: 11px;" class="">Someone please help me out of this mess :( Much appreciated!</span></p><p style="margin: 1em 0px; padding: 0px; border: 0px; line-height: normal; clear: both; color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;" class=""><span style="font-size: 11px;" class="">P/S: I connect to the squid proxy though my Macbook (OS Sierra) with Web Proxy (HTTP) enabled in Network Preferences.</span></p><p style="margin: 1em 0px; padding: 0px; border: 0px; line-height: normal; clear: both; color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;" class=""><span style="font-size: 11px;" class=""><span class="comment-copy" style="margin: 0px; padding: 0px; border: 0px;">This is some logs from cache.log, which probably indicates that my conf file is fraud. <code style="margin: 0px; padding: 1px 5px; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; background-color: rgb(239, 240, 241);" class="">client_side.cc(777) swanSong: local=10.xxx.0.2:8888 remote=113.xxx.xxx.113:54856 flags=1</code> - 10.xxx.0.2 is GCE's internal IP - 113.xxx.xxx.113 is my computer's external IP</span><span style="background-color: rgb(255, 255, 255);" class=""> </span></span></p></div></div></div></div></div></div></div><div class=""><span style="font-size: 9px;" class=""><span style="color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class=""><br class=""></span></span></div><div class=""><span style="color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class=""><font size="2" class="">Much appreciated if anyone can help me out!</font></span></div><div class=""><span style="color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class=""><font size="2" class=""><br class=""></font></span></div><div class=""><span style="color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class=""><font size="2" class="">Thank you!</font></span></div><div class=""><span style="color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class=""><font size="2" class="">Chuong</font></span></div></body></html>