Frp基础配置模版存档,供参考:
不写注释说明了,直接上模板:
frps.ini
1 2 3 4 5 6 7 |
[common] bind_port = 7000 privilege_token = password vhost_http_port = 8080 dashboard_port = 7500 dashboard_user = admin dashboard_pwd = admin |
frpc.ini
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
[common] server_addr = net.cn server_port = 7000 privilege_token = password login_fail_exit = false [http_web1] type = http local_ip = 192.168.1.1 local_port = 80 use_compression = true use_encryption = true custom_domains = web1.net.cn [http_web2] type = http local_ip = 192.168.1.2 local_port = 880 use_compression = true use_encryption = true custom_domains = web2.net.cn [ssh] type = tcp local_ip = 192.168.1.10 local_port = 25 remote_port = 5000 |
如果需要看完整的带说明的示例,可以访问:
https://github.com/fatedier/frp/blob/master/conf/frps_full.ini
https://github.com/fatedier/frp/blob/master/conf/frpc_full.ini