Skip to content

Instantly share code, notes, and snippets.

@hernad
Last active December 17, 2015 21:59
Show Gist options
  • Save hernad/5678480 to your computer and use it in GitHub Desktop.
Save hernad/5678480 to your computer and use it in GitHub Desktop.
n56 router
https://forum.openwrt.org/viewtopic.php?id=29747
http://aacable.wordpress.com/2012/08/13/youtube-caching-with-squid-nginx/
/opt/etc/squid/squid.conf
-------------------------------------------
/opt/home/admin # squid -d 9
/opt/home/admin # squid -z
http_port 3128 transparent
visible_hostname localhost
...
access_log /opt/var/log/access.log squid
#logfile_daemon /opt/usr/lib/squid/logfile-daemon
cache_log /opt/var/log/cache.log
cache_store_log /opt/var/log/store.log
mime_table /opt/etc/squid/mime.conf
pid_filename /opt/var/log/squid.pid
#diskd_program /opt/usr/lib/squid/diskd-daemon
#unlinkd_program /opt/usr/lib/squid/unlinkd
#pinger_program /opt/usr/lib/squid/pinger
#icon_directory /opt/usr/share/squid/icons
/opt/home/admin # netstat -tlnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:8200 0.0.0.0:* LISTEN 641/minidlna
tcp 0 0 127.0.0.1:139 0.0.0.0:* LISTEN 909/smbd
tcp 0 0 192.168.1.1:139 0.0.0.0:* LISTEN 909/smbd
tcp 0 0 192.168.1.1:4044 0.0.0.0:* LISTEN 558/xupnpd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 613/portmap
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 510/httpd
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 854/vsftpd
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 412/dnsmasq
tcp 0 0 192.168.1.1:53 0.0.0.0:* LISTEN 412/dnsmasq
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 524/dropbear
tcp 0 0 0.0.0.0:3128 0.0.0.0:* LISTEN 1804/(squid)
tcp 0 0 0.0.0.0:38712 0.0.0.0:* LISTEN 638/rpc.mountd
tcp 0 0 0.0.0.0:30712 0.0.0.0:* LISTEN 486/miniupnpd
tcp 0 0 127.0.0.1:445 0.0.0.0:* LISTEN 909/smbd
tcp 0 0 192.168.1.1:445 0.0.0.0:* LISTEN 909/smbd
tcp 0 0 0.0.0.0:41311 0.0.0.0:* LISTEN -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment