User Tools

Site Tools


doc:howto:proxy.squid
This wiki is read only and for archival purposes only. >>>>>>>>>> Please use the new OpenWrt wiki at https://openwrt.org/ <<<<<<<<<<

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
doc:howto:proxy.squid [2017/05/18 18:10]
Jalakas
doc:howto:proxy.squid [2018/02/09 12:55]
Jalakas [Configuration]
Line 20: Line 20:
 </​code>​ </​code>​
  
-==== Configuration ​==== +==== Storage configuration ​==== 
-Mount your caching storage device partition ​(/dev/sda1 in this example) ​to "/​tmp/​squid":​+You need to update '​fstab'​ configuration to mount your caching storage device partition to "/​tmp/​squid"​
 + 
 +Open '​fstab'​ configuration in Luci or in terminal:
 <​code>​ <​code>​
 vi /​etc/​config/​fstab vi /​etc/​config/​fstab
 </​code>​ </​code>​
  
 +In this example partition '/​dev/​sda1'​ with '​ext4'​ filesystem, is mounted to '/​tmp/​squid',​ and filesystem check (fsck) is enabled:
 <​code>​ <​code>​
 config mount config mount
Line 35: Line 38:
 </​code>​ </​code>​
  
 +Save your configuration and try out if mounting works. Manually mount your configuration file for test:
 +<​code>​
 +mount -a
 +</​code>​
 +
 +And check if you see your device in list:
 +<​code>​
 +df -h
 +</​code>​
 === Set up forwarding === === Set up forwarding ===
 Add http (port 80) traffic forwarding to Squid (so called transparent mode). ​ Add http (port 80) traffic forwarding to Squid (so called transparent mode). ​
-Edit firewall section: ​+Add firewall section: ​
 <​code>​ <​code>​
 vi /​etc/​config/​firewall vi /​etc/​config/​firewall
Line 100: Line 112:
  
 http_access deny all http_access deny all
- 
-# Allow ICP queries from local networks only 
-icp_access allow localnet 
-icp_access deny all 
  
 refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^ftp: 1440 20% 10080
doc/howto/proxy.squid.txt · Last modified: 2018/02/09 12:55 by Jalakas