博文

目前显示的是 四月, 2019的博文

常用的公共 DNS 服务器

给Firefox设置远程DNS解析,破解DNS劫持与污染! DNS劫持在国内经常出现。在Firefox中,设置远程DNS解析可以防止DNS劫持。 方法很简单,只需在Firefox地址栏输入自定义配置 about:config ,搜索 network.proxy.socks_remote_dns 修改为 true 。 实际测试,发现这样子没有用。 常用的公共 DNS 服务器包括: Google Public DNS (8.8.8.8, 8.8.4.4)、 Norton DNS (198.153.192.1, 198.153.194.1)、 OpenDNS (208.67.222.222, 208.67.220.220)、 OpenDNS Family (208.67.222.123, 208.67.220.123)、 Comodo Secure DNS (156.154.70.22, 156.156.71.22)、 ScrubIt DNS (67.138.54.100, 207.225.209.66)、 DNS Advantage (156.154.70.1, 156.154.71.1)。 更换了DNS后, 记得在DOS下执行 ipconfig /flushdns 以清除DNS缓存。

privoxy 和 shadowsocks配置

图片
摘录自: https://blog.liuguofeng.com/p/4010 安装 Shadowsocks shadowsocks 客户端和服务器端是同一个安装包,两个脚本不同,客户端模式是 sslocal,服务器端模式是 ssserver CentOS 下搭建 # 安装pip yum install python-setuptools && easy_install pip # 安装shadowsocks pip install shadowsocks Ubuntu 下搭建 # 安装pip apt-get install python-pip # 安装shadowsocks pip install shadowsocks sslocal 运行 shadowsocks 客户端 nohup sslocal -s your_server_ip -p your_server_port -l 1080 -k your_server_passwd -t 600 -m rc4-md5 > /dev/null 2>&1 & 解释 # your_server_ip: 服务器 IP # your_server_port: 服务器端口 # your_server_passwd: SS 密码 # rc4-md5: 加密方式 或创建一个 shadowsocks 的配置文件 vim /etc/shadowsocks.json { "server":"your_server_ip", # ss 服务器 IP "server_port":your_server_port, # 端口 "local_address": "127.0.0.1", # 本地 IP "local_port":1080, # 本地端口 "password":"your_server_passwd",# 连接 ss 密码 "timeout":300,