LINUX – IPTABLES TRAFFIC PROXY SERVER – SQUID TRANSPARENT
Project detail
LINUX – IPTABLES TRAFFIC PROXY SERVER – SQUID TRANSPARENT
Necessary to configure “SQUID TRANSPARENT” and Iptables to connect proxy server.
http_port 8888 transparent
/var/log/squid/access.log
This example iptables output traffic proxy server:
# Redirect HTTP traffic to the proxy server
sudo iptables -t nat -A OUTPUT -p tcp –dport 80 -j DNAT –to-destination “$PROXY_IP:$PROXY_PORT”
# Redirect HTTPS traffic to the proxy server
sudo iptables -t nat -A OUTPUT -p tcp –dport 443 -j DNAT –to-destination “$PROXY_IP:$PROXY_PORT”
Error on connected iptables to squid proxy /var/log/squid/access.log:
TCP_MISS/403 4135 GET http://detectportal.firefox.com/canonical.html – HIER_NONE/- text/html
TAG_NONE/400 4417 NONE error:invalid-request – HIER_NONE/- text/html