Mar 212014
 

Start from squid 3.2, as mentioned here, you can use random acl. This helps me achieve my goal to round-robin outgoing IP address as follow:

[raw]
acl one_fourth_1 random 1/4
acl one_fourth_2 random 1/3
acl one_fourth_3 random 1/2
acl one_fourth_4 random 1/1

tcp_outgoing_address xxx.xxx.xxx.203 one_fourth_1
tcp_outgoing_address xxx.xxx.xxx.204 one_fourth_2
tcp_outgoing_address xxx.xxx.xxx.205 one_fourth_3
tcp_outgoing_address xxx.xxx.xxx.206 one_fourth_4
[/raw]

Sure you need to have all these IPs configured on your server.

Mar 052014
 

I just could not make it work although it seems pretty easy and straightforward.

I have a machine with 4 IPs (216.x.x.203~206), and start Apache listening on 1203~1206 for each IP, then for each VirtualHost (such as 216.x.x.203:1203) I turn on ProxyRequests, and set ProxySourceAddress to that IP address, thus client connecting to 203 will have their request go out through 203 as well. Continue reading »

Apr 182012
 

I installed tsocks on OSX through macport and it kept reporting “Segmentation fault: 11” for whatever command I issue, later on turned out I need to put “tordns_enable = false” in tsocks.conf to solve the problem.

Don’t know why, and I told myself – don’t dig into things that don’t matter your core business, hehe.

Jul 052009
 

I was trying to get online last time and it was super slow, finally I picked to use proxy in KR which seems to be the best.

So far seems things are working, it’s surely slow but obviously it’s acceptable.