-
Archives
- January 2023
- August 2022
- July 2022
- June 2022
- January 2022
- September 2020
- February 2018
- December 2017
- May 2017
- April 2017
- February 2017
- December 2016
- November 2016
- May 2016
- April 2016
- June 2015
- May 2015
- November 2014
- May 2014
- April 2014
- February 2014
- December 2013
- October 2013
- August 2013
- June 2013
- May 2013
- March 2013
- February 2013
- January 2013
- May 2012
- August 2011
- July 2011
- June 2011
- May 2011
- December 2010
- November 2010
- June 2010
- April 2010
- November 2009
- October 2009
- May 2009
- February 2009
- December 2008
-
Meta
Monthly Archives: July 2011
1:1 NAT with iptables and KVM
Use libvirt to add a network with NAT forwarding to an interface. It will add most of the iptables rules for you. It should looks something like below. “iptables -L”: Chain FORWARD (policy ACCEPT) target prot opt source destination ACCEPT … Continue reading
Squid 3.1 Ad Block
It seems like the Squid 3.x (at least for 3.1) parses acl rules a bit differently. I needed to add “all” to the http_access deny for it to work. acl ads dstdom_regex “/etc/squid/ad_block.txt” http_access deny all ads Instructions for initial … Continue reading
Posted in Uncategorized
Leave a comment
Installing Squid 3.1 on CentOS 5.6 with SELinux
Since there are no official packages of Squid 3.1 for CentOS or RHEL, the only ways to install are compiling from source or via 3rd party rpm. My method may not be proper so if there are any glaring mistakes, … Continue reading
Using TC to Limit Uplink Bandwidth in Linux
Short guide on using TC to force users to obey a certain upload speed in linux. #First add a ‘root’ for eth1 tc qdisc add dev eth1 root handle 1: htb default 30 #Second add a class (bucket) with bandwidth … Continue reading
Batch to Turn Off Display in Windows 7
Here is a simple way to turn off the display in Windows 7. It is not instantaneous, but I can live with it waiting one minute. The script temporarily changes the idle time to 1 minute, waits 65 seconds for … Continue reading