歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux資訊 >> 更多Linux >> 我的代理80如何轉發到3128

我的代理80如何轉發到3128

日期:2017/2/27 14:21:09   编辑:更多Linux
  /sbin/iptables -t nat -A PREROUTING -s 192.168.0.0/24 -i eth1 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128 /sbin/iptables -t nat -A PREROUTING -s 192.168.0.0/24 -i eth1 -p tcp -m tcp --dport 443 -j REDIRECT --to-ports 3128 訪問出現下列錯誤 ERROR The requested URL could not be retrieved -------------------------------------------------------------------------------- While trying to retrieve the URL: /forum/index.PHP The following error was encountered: Invalid URL Some ASPect of the requested URL is incorrect. Possible problems: Missing or incorrect Access protocol (should be `http://'' or similar) Missing hostname Illegal double-escape in the URL-Path Illegal character in hostname; underscores are not allowed Your cache administrator is root. 謝謝呀..很急 squid的問題了 squid配置文件加入 httpd_accel_host virtual httpd_accel_port 80 httpd_accel_with_proxy on httpd_accel_uses_host_header on iptables防火牆規則裡只要有這麼一句 iptables -t nat -A PREROUTING -i eth1 -p tcp -s 193.100.0.0(內網段)/24 --dport 80 -j DNAT --to 193.100.0.3(代理服務器地址):3128




Copyright © Linux教程網 All Rights Reserved