https://github.com/fatedier/frp
https://github.com/ntop/n2n
https://github.com/meyerd/n2n/tree/master/n2n_v2
https://github.com/localtunnel/server
frp测试
frps in 172.16.0.15
frps.ini as
frps.ini
# [common] is integral section
[common]
# A literal address or host name for IPv6 must be enclosed
# in square brackets, as in "[::1]:80", "[ipv6-host]:http" or "[ipv6-host%zone]:80"
bind_addr = 0.0.0.0
bind_port = 7000
# if you want to support virtual host, you must set the http port for listening (optional)
#vhost_http_port = 80
#vhost_https_port = 443
# if you want to configure or reload frps by dashboard, dashboard_port must be set
dashboard_port = 7500
# dashboard assets directory(only for debug mode)
# assets_dir = ./static
# console or real logFile path like ./frps.log
log_file = ./frps.log
# debug, info, warn, error
log_level = info
log_max_days = 3
# if you enable privilege mode, frpc can create a proxy without pre-configure in frps when privilege_token is correct
privilege_mode = true
privilege_token = 9ce11dffabf820a0de33ab34d0010064
# only allow frpc to bind ports you list, if you set nothing, there won't be any limit
privilege_allow_ports = 2000-3000,3001,3003,4000-50000
# pool_count in each proxy will change to max_pool_count if they exceed the maximum value
max_pool_count = 100
# ssh is the proxy name, client will use this name and auth_token to connect to server
[ssh]
type = tcp
auth_token = 9ce11dffabf820a0de33ab34d0010064
bind_addr = 0.0.0.0
listen_port = 6000
frpc in 172.16.0.25
frpc.ini as
frps.ini
# [common] is integral section
[common]
# A literal address or host name for IPv6 must be enclosed
# in square brackets, as in "[::1]:80", "[ipv6-host]:http" or "[ipv6-host%zone]:80"
server_addr = 172.16.0.15
server_port = 7000
# console or real logFile path like ./frpc.log
log_file = ./frpc.log
# debug, info, warn, error
log_level = info
log_max_days = 3
# for authentication
auth_token = 9ce11dffabf820a0de33ab34d0010064
# for privilege mode
privilege_token = 9ce11dffabf820a0de33ab34d0010064
privelege_mode = true
# ssh is the proxy name same as server's configuration
[ssh]
# tcp | http, default is tcp
type = tcp
local_ip = 127.0.0.1
local_port = 22
# true or false, if true, messages between frps and frpc will be encrypted, default is false
use_encryption = true
# default is false
use_gzip = false
# connections will be established in advance, default value is zero
pool_count = 10
ssh -oPort=6000 root@172.16.0.15 # input password, it will login 172.16.0.25 as root
frps dashboard like this: http://172.16.0.15:7500
image.png
n2n测试(doing)
n2n 借助三层虚拟网卡实现,需要安装tun
网友评论