Тут возникла проблемма при настройке прозрачного прокси сам прокси работает когда прописываеш жеско а вот при перенапровлении выдает
Код: Выделить всё
(ERROR
The requested URL could not be retrieved
--------------------------------------------------------------------------------
While trying to retrieve the URL: /
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 webmaster.
--------------------------------------------------------------------------------
Generated Wed, 08 Mar 2006 07:32:51 GMT by rout (squid/2.5.STABLE12) )
Код: Выделить всё
(# Generated by iptables-save v1.2.11 on Wed Mar 8 10:09:42 2006
*nat
:PREROUTING ACCEPT [33:6324]
:POSTROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A PREROUTING -d 192.168.3.220 -p tcp -m tcp --dport 3055 -j DNAT --to-destination 192.168.0.3:3050
-A PREROUTING -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128
-A PREROUTING -p tcp -m tcp --dport 21 -j REDIRECT --to-ports 3128
-A POSTROUTING -s 192.168.0.0/255.255.255.0 -j MASQUERADE
COMMIT
# Completed on Wed Mar 8 10:09:42 2006
# Generated by iptables-save v1.2.11 on Wed Mar 8 10:09:42 2006
*mangle
:PREROUTING ACCEPT [40:6955]
:INPUT ACCEPT [20:2759]
:FORWARD ACCEPT [14:2986]
:OUTPUT ACCEPT [5:248]
:POSTROUTING ACCEPT [9:746]
COMMIT
# Completed on Wed Mar 8 10:09:42 2006
# Generated by iptables-save v1.2.11 on Wed Mar 8 10:09:42 2006
*filter
:INPUT DROP [16:2567]
:FORWARD DROP [10:2488]
:OUTPUT ACCEPT [5:248]
-A INPUT -p tcp -m tcp --dport 20 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
-A INPUT -s 192.168.0.0/255.255.255.0 -p tcp -m tcp --dport 3128 -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-A FORWARD -s 192.168.0.0/255.255.255.0 -p tcp -m tcp --dport 53 -j ACCEPT
-A FORWARD -s 192.168.0.0/255.255.255.0 -p udp -m udp --dport 53 -j ACCEPT
-A FORWARD -s 192.168.0.0/255.255.255.0 -p tcp -m tcp --dport 25 -j ACCEPT
-A FORWARD -s 192.168.0.0/255.255.255.0 -p tcp -m tcp --dport 110 -j ACCEPT
-A FORWARD -d 192.168.3.220 -p tcp -m tcp --dport 3055 -j ACCEPT
-A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -s 192.168.0.0/255.255.255.0 -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A OUTPUT -o lo -j ACCEPT
COMMIT
# Completed on Wed Mar 8 10:09:42 2006
)