This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
web_services:squid_update_cache [2015/01/28 14:03] tschulz [Edit /etc/rc.local] |
web_services:squid_update_cache [2015/01/28 14:04] tschulz [Edit /etc/rc.local] |
||
---|---|---|---|
Line 28: | Line 28: | ||
<file>net.ipv6.conf.all.forwarding=1</file> | <file>net.ipv6.conf.all.forwarding=1</file> | ||
==== Edit /etc/rc.local ==== | ==== Edit /etc/rc.local ==== | ||
- | * Change 999.999.999.999 to the local ip of squid server. This will redirect every port 80 request through squid. | + | * Change **999.999.999.999** to the local ip of squid server. This will redirect every **port 80** request through squid. |
- | * In this example we are using port 3129 as a transparent proxy port | + | * In this example we are using **port 3129** as a transparent proxy port |
<file>iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to 999.999.999.999:3129</file> | <file>iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to 999.999.999.999:3129</file> | ||
==== Edit /etc/squid/squid.conf ==== | ==== Edit /etc/squid/squid.conf ==== |