使用OSX squidman app从IE虚拟机访问本地网站

时间:2016-04-06 01:03:32

标签: macos internet-explorer virtual-machine squid

我正在使用我的macbook中的squidman app从移动设备访问我的本地站点(ej。 my-site.dev ),直到这一点,一切都很好(我得到了)这是通过跟随this tutorial完成的。但现在我正试图从我的macbook上安装的IE10虚拟机访问同一个网站,在虚拟机上我去了 Internet选项/连接/局域网设置那里我检查了使用LAN的代理服务器并在地址字段中添加了我的macbook IP,然后我用与squidman配置的端口相同的端口填充端口字段( 8080),当我去任何网站时,我收到此错误:

ERROR
The requested URL could not be retrieved

The following error was encountered while trying to retrieve the URL: my-site.dev
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.

这是squidman生成的模板:

# ----------------------------------------------------------------------
# WARNING - do not edit this template unless you know what you are doing
# ----------------------------------------------------------------------

# the parent cache
cache_peer %PARENTPROXY% parent %PARENTPORT% 7 no-query no-digest no-netdb-exchange default


# disk and memory cache settings
cache_dir ufs %CACHEDIR% %CACHESIZE% 16 256
maximum_object_size %MAXOBJECTSIZE%


# store coredumps in the first cache dir
coredump_dir %CACHEDIR%


# the hostname squid displays in error messages
visible_hostname %VISIBLEHOSTNAME%


# log & process ID file details
cache_access_log stdio:%ACCESSLOG%
cache_store_log stdio:%STORELOG%
cache_log %CACHELOG%
pid_filename %PIDFILE%


# Squid listening port
http_port %PORT%


# Access Control lists
acl SSL_ports port 443
acl Safe_ports port 80      # http
acl Safe_ports port 21      # ftp
acl Safe_ports port 443     # https
acl Safe_ports port 70      # gopher
acl Safe_ports port 210     # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280     # http-mgmt
acl Safe_ports port 488     # gss-http
acl Safe_ports port 591     # filemaker
acl Safe_ports port 777     # multiling http
acl CONNECT method CONNECT
%ALLOWEDHOSTS%
%DIRECTHOSTS%


# Only allow cachemgr access from localhost
http_access allow localhost manager 
http_access deny manager


# Deny requests to certain unsafe ports
http_access deny !Safe_ports


# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports


# protect web apps running on the proxy host from external users
# http_access deny to_localhost


# rules for client access go here
http_access allow localhost
%HTTPACCESSALLOWED%


# after allowed hosts, deny all other access to this proxy
# don't list any other access settings below this point
http_access deny all


# specify which hosts have direct access (bypassing the parent proxy)
%ALWAYSDIRECT%
always_direct deny all


# hierarchy stop list (squid-recommended)
hierarchy_stoplist cgi-bin ?



# refresh patterns (squid-recommended)
refresh_pattern ^ftp:       1440    20% 10080
refresh_pattern ^gopher:    1440    0%  1440
refresh_pattern -i (/cgi-bin/|\?) 0 0%  0
refresh_pattern .       0   20% 4320

# hosts file
hosts_file /private/etc/hosts

非常感谢任何帮助。

1 个答案:

答案 0 :(得分:0)

我通过转到偏好设置/客户端/在squidman应用程序中为提供代理服务器并在其中添加192.168.1.0/24子网来解决此问题。现在我可以在设备和IE10虚拟机中打开我的站点。