Search squid archive

Re: Squid3 stable8 web cache proxy - iptables help!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks man!!!


Wilson Hernandez - MSD, S. A. wrote:
> 
> echo "%%% Transparent Proxy %%%"
> iptables -t nat -A PREROUTING -i $LAN_IFACE -p tcp \
>         -s $LAN_ADDRESSES --sport $UNPRIVPORTS --dport 80 \
>         -j REDIRECT --to-port 3128
> 
> iptables -A INPUT -i $LAN_IFACE -p tcp \
>         -s $LAN_ADDRESSES --sport $UNPRIVPORTS -d $LAN_IP --dport 3128 \
>         -m state --state NEW -j ACCEPT
>         
> # Now enable response from squid as server sport 80
> iptables -A OUTPUT -o $LAN_IFACE -p tcp \
>         -s $LAN_IP --sport 80 --dport $UNPRIVPORTS \
>         -m state --state ESTABLISHED,RELATED -j ACCEPT
>         
> echo "... Done Transparent Proxy ..."
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Squid3-stable8-web-cache-proxy---iptables-help%21-tp24643025p24698023.html
Sent from the Squid - Users mailing list archive at Nabble.com.


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux