iptables + squid cannot serve https requests
Hi all,
Installed a squid on a remote server and an iptables on local and add two rules in iptables:
iptables -t nat -A PREROUTING -s ! [squid-server] -d 0.0.0.0/0 -p tcp --dport 443 -i br0 -j DNAT --to-destination [squid-server]:3128
iptables -t nat -A PREROUTING -s ! [squid-server] -d 0.0.0.0/0 -p tcp --dport 80 -i br0 -j DNAT --to-destination [squid-server]:3128
In this situation all http requests served but https requests failed. And when directly connected to squid it was OK and can serve https requests.
And Firefox returned "ssl_error_rx_record_too_long" error.
Thanks.
|