I'm trying to setup a linux router (Red Hat 9) to forward all web request from our clients on port 80 to an external proxy server. Everything is working (routing wise) aside from the transparent proxy forwarding. On a client...if I enter the proxy settings in Internet Explorer I can browse the internet just fine and this is expected. However, if I remove the proxy settings it doesn't work. Here is the IPTABLES command I'm trying to use to do the forwarding:
$IPTABLES -t nat -A PREROUTING -i $INTERNAL -s ! 168.94.74.68 -p tcp --dport 80 -j DNAT --to 168.94.74.68:8080
$IPTABLES -t nat -A POSTROUTING -o $INTERNAL -s 192.168.0.0/24 -d 168.94.74.68 -j MASQUERADE
$IPTABLES -A FORWARD -s 192.168.0.0/24 -d 168.94.74.68 -i $INTERNAL -o $EXTERNAL -p tcp --dport 8080 -j ACCEPT
The ERROR I'm getting is:
"HTTP 502 Proxy Error - The Uniform Resource Locator (URL)
does not use a recognized protocol. Either the protocol is
not supported or the request was not typed correctly.
Confirm that a valid protocol is in use (for example, HTTP
for a Web request). (12006)
Internet Security and Acceleration Server"
Any thoughts?
-bitwise
$IPTABLES -t nat -A PREROUTING -i $INTERNAL -s ! 168.94.74.68 -p tcp --dport 80 -j DNAT --to 168.94.74.68:8080
$IPTABLES -t nat -A POSTROUTING -o $INTERNAL -s 192.168.0.0/24 -d 168.94.74.68 -j MASQUERADE
$IPTABLES -A FORWARD -s 192.168.0.0/24 -d 168.94.74.68 -i $INTERNAL -o $EXTERNAL -p tcp --dport 8080 -j ACCEPT
The ERROR I'm getting is:
"HTTP 502 Proxy Error - The Uniform Resource Locator (URL)
does not use a recognized protocol. Either the protocol is
not supported or the request was not typed correctly.
Confirm that a valid protocol is in use (for example, HTTP
for a Web request). (12006)
Internet Security and Acceleration Server"
Any thoughts?
-bitwise