a.k.a. what to do when your ISP starts blocking sites :(
Set the SOCKS proxy to local SSH tunnel
networksetup -setsocksfirewallproxy "Ethernet" localhost 8080
To clear the domain and port
#!/usr/bin/perl | |
###################################################################### | |
# killcx : | |
# | |
# Close a TCP connection under Linux. | |
# | |
# (c) Jerome Bruandet - <floodmon@spamcleaner.org> | |
# | |
# version 1.0.3 - 18-May-2011 | |
# |
#!/usr/bin/stap | |
global connections | |
global filter_port = 80 | |
// | |
global report | |
global spend_time | |
global active_count | |
global have_spend_time = 0 |
---- | |
Linux 基于策略的路由(Linux Policy Routing) | |
Linux 有传统的基于数据包目的地址的路由算法,和新的基于策略的路由算法 | |
新算法优点:支持多个路由表,支持按数据报属性(源地址、目的地址、协议、端口、数据包大小、内容等)选择不同路由表 | |
# 查看规则命令,后面可跟其它参数,默认为 show(list) 显示全部 | |
ip rule |
<?php | |
/** | |
* Use php curl multi, rolling request url. | |
* | |
* @author liwanghui@dratio.com | |
*/ | |
class CurlRoll | |
{ | |
/** |