chisel配置systemd和客户端配置方法

chisel 服务段

1
2
3
4
5
6
7
8
9
[Unit]
Description=Chisel

[Service]
ExecStart=/home/witt/.local/chisel/chisel server --auth "user:password" --port 5000 --reverse
restart=on-failure

[Install]
WantedBy=default.target

chisel 客户端

1
2
3
4
# 将blog.163.com:80端口转发本地8081端口
chisel client --auth "user:password" http://server:5000 0.0.0.0:8081:blog.163.com:80
# 将blog.163.com:80端口转发服务器8081端口
chisel client --auth "user:password" http://server:5000 R:8081:blog.163.com:80