MD 编辑: Post:21.body 保存 删除 取消
更新 登录 & 发布

CHNP2P.bit

随手记录的小黑板.

关注更新已关注

最新评论:

推荐几个刚发现的资源站点

on Oct 06, 2016
阅读全文

Windows下Zeronet建站小技巧

on Oct 06, 2016

Zeronet建站

下载
https://github.com/HelloZeroNet/ZeroBundle/raw/master/dist/ZeroBundle-win.zip
例如ZeroNet的路径是
C:\ZeroBundle\ZeroNet
打开命令行:

cd C:\ZeroBundle\ZeroNet
..\python\python.exe zeronet.py siteCreate

会得出例如:

- ----------------------------------------------------------------------
- Site private key: 23DKQpzxhbVBrAtvLEc2uvk7DZweh4qL3fn3jpM3LgHDczMK2TtYUq
-                   !!! ^ Save it now, required to modify the site ^ !!!
- Site address:     13DNDkMUExRf9Xa9ogwPKqp7zyHFEqbhC2
- ----------------------------------------------------------------------

13DNDkMUExRf9Xa9ogwPKqp7zyHFEqbhC2就是站点地址
C:\ZeroBundle\ZeroNet\data会生成13DNDkMUExRf9Xa9ogwPKqp7zyHFEqbhC2目录
Site private key这个必须自己保存记录,以后修改站点就是靠这个keySign

Clone站点

在ZeroHello页面左侧点击需要Clone的站点
例如:
image alt
生成
http://127.0.0.1:43110/13LEv8nMKtoNApMRcrBfAx6s3csjtxirSm
打开资源管理器:
C:\ZeroBundle\ZeroNet\data\13LEv8nMKtoNApMRcrBfAx6s3csjtxirSm
选择(除了content.json不要复制)
image alt
复制到可管理站点目录内,例如上面示例中有private key的站点:
C:\ZeroBundle\ZeroNet\data\13DNDkMUExRf9Xa9ogwPKqp7zyHFEqbhC2

关闭站点Clone属性

C:\ZeroBundle\ZeroNet\data\13DNDkMUExRf9Xa9ogwPKqp7zyHFEqbhC2\content.json

{
 "address": "13DNDkMUExRf9Xa9ogwPKqp7zyHFEqbhC2",
 "cloneable": false,

在"address"下一行添加
"cloneable": false,
同理打开Clone属性就是ture

免费只用一年xxx.bit域名

实例:
http://127.0.0.1:43110/chnp2p.bit
https://bit.no.com:43110/chnp2p.bit/

首先查询你需要注册的.bit是否被使用过
https://dotbit.me/

发送Bitmessage(比特信)
目标地址:
BM-2cVddUzqe4DWCGorpXUXAUh2SwyD5S9ByU
标题:
want chnp2p.bit domain
内容:

domain:chnp2p.bit
ZeroNet site: 1LMJTsx6C7XLK2dMVJHpZpt3JTErAQ1e1a
阅读全文

下载视频方法

on Oct 05, 2016

下载youtube-dl

https://github.com/rg3/youtube-dl/releases

下载ffmpeg

https://ffmpeg.org/download.html

youtube-dl添加代理实例

cd c:\lolo
youtube-dl.exe --proxy localhost:1080 -f bestvideo+bestaudio "URL"

c:\lolo目录内放置ffmpeg.exe

国内站点下载you-get

https://github.com/soimort/you-get/releases

you-get实例

you-get -i 'https://www.youtube.com/watch?v=jNQXAC9IVRw'
you-get --itag=18 'https://www.youtube.com/watch?v=jNQXAC9IVRw'
you-get -x 127.0.0.1:8087 'https://www.youtube.com/watch?v=jNQXAC9IVRw'
you-get -i 'http://www.panda.tv/s6'
阅读全文

windows端口映射

on Oct 05, 2016

添加192.168.11.1的80端口到本地端口8080

netsh interface portproxy add v4tov4 8080 192.168.11.1 80

删除本地映射端口8080

netsh interface portproxy delete v4tov4 listenport=8080
阅读全文

Haproxy手工安装设置

on Oct 05, 2016

安装haproxy

wget 'https://github.com/haproxy/haproxy/archive/v1.7-dev3.tar.gz'
tar zxvf v1.7-dev3.tar.gz
cd haproxy-1.7-dev3
make TARGET=linux2628 PREFIX=/usr/local/haproxy
make install PREFIX=/usr/local/haproxy

编辑配置文件
vi /usr/local/haproxy/haproxy.cfg

global
    ulimit-n    51200
    log         127.0.0.1 local2
    chroot      /var/lib/haproxy
    pidfile     /var/run/haproxy.pid
    user        haproxy
    group       haproxy
    daemon

defaults
    mode                    tcp
    log                     global
    option                  dontlognull
    timeout connect         5s
    timeout client          1m
    timeout server          1m

frontend ss-443
        bind *:443
        default_backend ss-443
backend ss-443
        server server1 远端服务器地址:443 maxconn 20480

运行
/usr/local/haproxy/sbin/haproxy -f /usr/local/haproxy/haproxy.cfg
自运行
vi /etc/rc.local,在文档最后添加:
/usr/local/haproxy/sbin/haproxy -f /usr/local/haproxy/haproxy.cfg

阅读全文

翻墙工具VPS服务器安装一览

on Oct 05, 2016

OpenConnect server(ocserv) 一键脚本 for deibian 7+

apt-get update && apt-get upgrade -y
wget http://git.io/p9r8 --no-check-certificate -O ocservauto.sh && bash ocservauto.sh
wget git.io/ocservauto -O- --no-check-certificate|bash -

客户端下载:
IOS
App Store搜索CISCO Anyconnect
windows
https://software.cisco.com/download/release.html?mdfid=286281283&softwareid=282364313&release=4.3.02039&relind=AVAILABLE&rellifecycle=&reltype=latest

shadowsocks-libev一键安装脚本

Debian/Ubuntu

wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-libev-debian.sh
chmod +x shadowsocks-libev-debian.sh
./shadowsocks-libev-debian.sh 2>&1 | tee shadowsocks-libev-debian.log

卸载

./shadowsocks-libev-debian.sh uninstall

使用命令:
启动:/etc/init.d/shadowsocks start
停止:/etc/init.d/shadowsocks stop
重启:/etc/init.d/shadowsocks restart
状态:/etc/init.d/shadowsocks status

ShadowsocksR一键安装脚本

wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocksR.sh
chmod +x shadowsocksR.sh
./shadowsocksR.sh 2>&1 | tee shadowsocksR.log

卸载
./shadowsocksR.sh uninstall
编辑配置文件
vi /etc/shadowsocks.json

{
    "server":"0.0.0.0",
    "server_ipv6":"::",
    "local_address":"127.0.0.1",
    "local_port":1080,
    "port_password":{
        "21":{"password":"password1", "obfs":"http_simple", "obfs_param":"189.cn"},
        "80":{"protocol":"auth_aes128_md5", "password":"password2", "obfs":"tls1.2_ticket_auth", "obfs_param":"189.cn"},
        "443":{"password":"password3"}
    },
    "timeout":300,
    "method":"chacha20",
    "protocol": "auth_sha1_v4",
    "protocol_param": "",
    "obfs": "tls1.2_ticket_auth",
    "obfs_param": "cloudfront.com",
    "redirect":["bing.com", "cloudflare.com:443"],
    "dns_ipv6": false,
    "fast_open": false,
    "workers": 1
}

启动:/etc/init.d/shadowsocks start
停止:/etc/init.d/shadowsocks stop
重启:/etc/init.d/shadowsocks restart
状态:/etc/init.d/shadowsocks status

客户端下载:
http://127.0.0.1:43110/shadowsocksr.bit/
https://bit.no.com:43110/shadowsocksr.bit/

安装Nghttp2+Squid

sudo apt-get update
sudo apt-get install g++ make binutils autoconf automake autotools-dev libtool pkg-config \
  zlib1g-dev libcunit1-dev libssl-dev libxml2-dev libev-dev libevent-dev libjansson-dev \
  libjemalloc-dev cython python3-dev python-setuptools

安装spdylay

wget 'https://github.com/tatsuhiro-t/spdylay/releases/download/v1.4.0/spdylay-1.4.0.tar.xz'
tar xpf spdylay-1.4.0.tar.xz && cd spdylay-1.4.0 && ./configure
make && make install
ldconfig

安装nghttp2

apt-get install libev-dev libjansson-dev libjemalloc-dev python-dev cython
wget https://github.com/nghttp2/nghttp2/releases/download/v1.15.0/nghttp2-1.15.0.tar.xz && tar xpf nghttp2-1.15.0.tar.xz && cd nghttp2-1.15.0 && ./configure
make && make install
ldconfig

安装squid 3.5.12

sudo apt-get install squid

编辑Squid的配置文件

vi /etc/squid/squid.conf

添加密码:不需要
touch /etc/squid/passwd
htpasswd -m /etc/squid/passwd user #squid 不支持MD5验证

1.增加用户
htpasswd /etc/squid/user.pass lookwest
2.修改用户密码:
htpasswd -d /etc/squid/user.pass lookwest
3.删除用户:
htpasswd -D /etc/squid/user.pass lookwest

安装supervisor

sudo apt-get install supervisor
配置文件
vi /etc/supervisor/supervisord.conf

配置nghttpx

nghttpx -s -D --conf=/root/nghttp2-1.4.0/nghttpx.conf /root/certs/www_xxx_com.key /root/certs/www_xxx_com.crt

关闭

pkill nghttpx

配置supervisor

vi /etc/supervisor/supervisord.conf

添加内容

[program:nghttpx]
command=nghttpx -s -D --conf=/root/nghttp2-1.4.0/nghttpx.conf /root/certs/www_xxx_com.key /root/certs/www_xxx_com.crt
autorestart=true
user=root

客户端
chrome设置https代理
可以下载插件Proxy SwitchyOmega

阅读全文
新增文章

Title

21 小时之前 · 2 min read ·
3 comments
Body
阅读全文

Title

21 hours ago · 2 min read

0 条评论:

请登录吐槽一下吧!
user_name1 day ago
回复
Body
当前已连接 20 个节点
CHNP2P © 2016 | Powered by ZeroNet
This page is a snapshot of ZeroNet. Start your own ZeroNet for complete experience. Learn More