Saya akan coba untuk share sesuai dengan subject & yang mana telah diujicoba & running well di jaringan rtrwnet. ( LUSCA + UNBOUND + VIDEO CACHE )
Untuk Masta masta disini mohon bimbingan klo ada yang salah.
To the point aja langsung dech.
Sebelumnya pack squid harus sudah terinstall terlebih dahulu.
Login PFsense console atau ssh to PFsense dan ketik command :
# pkg_add -r python
kemudian install libraries.
# pkg_add -r py25-bsddb
# pkg_add -r py25-gdbm
# pkg_add -r py25-sqlite3
# pkg_add -r py25-tkinter
Install URLGrabber
Silakan Download urlgrabber from URLGrabber Download Archive & extract atau bisa langsung melalui consul ( website ready saat postingan ini dibikin )
# fetch
http://linux.duke.edu/sourcecode/urlgra … 0.2.tar.gz
# tar -xzf urlgrabber-0.2.tar.gz
# cd urlgrabber-0.2
# python setup.py bdist_rpm
# python setup.py install
Install Iniparse
Silakan Download python-iniparse from Iniparse Project Website. atau bisa langsung melalui consul ( website ready saat postingan ini dibikin )
# fetch
http://iniparse.googlecode.com/files/in … 0.4.tar.gz
# tar -xzf iniparse-0.4.tar.gz
# cd iniparse-0.4
# python setup.py bdist_rpm
# python setup.py install
Install VideoCache ( website ready saat postingan ini dibikin )
# fetch
http://www.indofreebsd.or.id/download/v … 9.1.tar.gz
# tar -xvzf videocache-1.9.1.tar.gz
# python setup.py install
konfigurasi VideoCache
bisa menggunakan perintah VI atau melalui winscp juga bisa lalu edit file /etc/videocache.conf setting sesuai dengan dibawah ini:
* proxy
o Set the IP address and port on which squid is listening on PFsense.
* cache_host
o The IP address of PFsense.
Configure Squid
Selanjutnya masuk ke /usr/local/pkg/squid.inc . Dan copy paste configurasi video cache dibawah ini setelah acls.
# --BEGIN-- videocache config for squid
url_rewrite_program /usr/bin/python /usr/share/videocache/videocache.py
url_rewrite_children 10
acl videocache_allow_url url_regex -i \.youtube\.com\/get_video
acl videocache_allow_url url_regex -i \.cache[a-z0-9]?[a-z0-9]?[a-z0-9]?\.googlevideo\.com\/videoplayback
acl videocache_allow_url url_regex -i \.cache[a-z0-9]?[a-z0-9]?[a-z0-9]?\.googlevideo\.com\/get_video
acl videocache_allow_url url_regex -i proxy\-[0-9][0-9]\.dailymotion\.com\/
acl videocache_allow_url url_regex -i [a-z0-9][0-9a-z][0-9a-z]?[0-9a-z]?[0-9a-z]?\.xtube\.com\/(.*)flv
acl videocache_allow_url url_regex -i bitcast\.vimeo\.com\/vimeo\/videos\/
acl videocache_allow_url url_regex -i va\.wrzuta\.pl\/wa[0-9][0-9][0-9][0-9]?
acl videocache_allow_url url_regex -i \.files\.youporn\.com\/(.*)\/flv\/
acl videocache_allow_url url_regex -i \.msn\.com\.edgesuite\.net\/(.*)\.flv
acl videocache_allow_dom dstdomain v.mccont.com vp.video.google.com dl.redtube.com
acl videocache_deny_url url_regex -i http:\/\/[a-z][a-z]\.youtube\.com http:\/\/www\.youtube\.com
url_rewrite_access deny videocache_deny_url
url_rewrite_access allow videocache_allow_url
url_rewrite_access allow videocache_allow_dom
redirector_bypass on
# --END-- videocache config for squid
Terakhir :
Save and restart squid service and you have videocache running on your PFsense.
catatan : disable the https option in the General Setup Settings.
Correct Me if I am Wrong.
salam,
mohon maaf lupa sumbernya ( yg pasti hasil googling ) , saya hanya edit & sesuaikan setting dengan jaringan saya.