Hello Luggers,

 I have a setup of single box running WhiteBox Linux 3.0 with squid & iptables.
   The iptables setup is :-
   i forward all incomming connections to 80 port from local users to
   squid proxy server with rules:
   iptables -t nat -A PREROUTING -i eth0 -s ! 192.168.0.1 -p tcp --dport
   80 -j DNAT --to 192.168.0.1:3128
   iptables -t nat -A POSTROUTING -o eth0 -s 192.168.0.0/24 -d
   192.168.0.1 -j SNAT --to 192.168.0.1
   iptables -A FORWARD -s 192.168.0.0/24 -d 192.168.0.2 -i eth0 -o eth0
   -p tcp --dport 8080 -j ACCEPT
   I have allowed localhost and 192.168.0.0/24 network in squid acl
   config.Now my problem is that when every any host tries to browse any
   site the following error is shown by squid
   If i hit http://www.yahoo.com/ in browser i get
   ==========================================
    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 root.

   
--------------------------------------------------------------------------------
   Generated Mon, 13 Dec 2004 13:27:24 GMT by pdc.larchtech.com
   (squid/2.5.STABLE3)
   ====================================================
   Does anybody have any idea how do i correct this.
 
   Regards,
   Rohit Baisakhiya

-- 
http://mm.ilug-bom.org.in/mailman/listinfo/linuxers

Reply via email to