سلام
من یه اسکویید رو پورت 8888 راه انداختم.با قابلیت authentication
با روت-مپ ترافیک وب رو هدایت کردم به سمت سرور اسکویید.
و در سرور هم با آی پی تیبل ترافیک رو انداختم رو پورت 8888:
--------------------------------------------------------------------------------
"-A PREROUTING -s 10.32.3.0/24 -p tcp --dport 80 -j DNAT --to 64.23.45.12:8888"
--------------------------------------------------------------------------------
اما وقتی یه وب براوس می کنم ارور زیر رو تو اکسپلورر میده:
--------------------------------------------------------------------------------
The requested URL could not be retrieved
The following error was encountered while trying to retrieve the URL: /
Invalid URL
--------------------------------------------------------------------------------
و این پیام تو access.log:
--------------------------------------------------------------------------------
1281752166.811 0 10.32.3.12 NONE/400 1744 GET / - NONE/- text/html
--------------------------------------------------------------------------------
اما وقتی هر آی پی الکی تو تنظیمات پراکسی اکسپلورر ست می کنم با پورت 80 درست کار می کنه و میاد یوزر پسورد می پرسه.
در ضمن اگه پراکسی ترانسپرنت کانفیگ کنم درست کار میکنه
اینم
squid.conf:
--------------------------------------------------------------------------------
visible_hostname black
maximum_object_size 64000 KB
dns_nameservers 4.2.2.4
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd
acl ncsa_users proxy_auth REQUIRED
acl snmppublic snmp_community squiz
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563 8443
acl Safe_ports port 80 1000 443 563 70 20-65535 280 488 591 777 5555 465 210 21
acl CONNECT method CONNECT
http_access allow ncsa_users
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
tcp_outgoing_address 64.23.45.12
http_port 8888
cache_mem 20 MB
cache_dir ufs /var/spool/squid 100 16 256
#access_log none
#cache_log none
access_log /log/access.log
cache_store_log none
cache_effective_user nobody
http_access deny all
--------------------------------------------------------------------------------
ممنون کمک کنید.
موضوعات مشابه: