centos frp内网穿透_内网穿透 无需公网ip

centos frp内网穿透_内网穿透 无需公网ip说明Linux搭建frp实现内网穿透操作步骤安装步骤省略(下载解压拷贝到server服务器和client服务器完事)具体移步:github注意程序文件需要追加可执行权限!注意相关端口放行!服务端配置文件:frps.ini[common]bind_port=7777authentication_method=tokentoken=12345678tls_only=truekcp_bind_port=7777max_pool_count=10l

大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。

Jetbrains全系列IDE使用 1年只要46元 售后保障 童叟无欺

说明

  • Linux搭建frp实现内网穿透

操作步骤

  • 安装步骤省略(下载解压拷贝到server服务器和client服务器完事)具体移步:github

    • 注意程序文件需要追加可执行权限!
    • 注意相关端口放行!
  • 服务端配置文件:frps.ini

    [common]
    bind_port = 7777
    authentication_method = token
    token = 12345678
    tls_only = true
    kcp_bind_port = 7777
    max_pool_count = 10
    log_file = /path/to/frp/frps.log
    ### trace, debug, info, warn, error
    log_level = error
    log_max_days = 3
    
    # allow_ports = 1,4-5
    
    vhost_http_port = 80
    vhost_https_port = 443
    
    dashboard_port = 10
    dashboard_user = admin
    dashboard_pwd = 12345678
    
    
  • 客户端配置文件:frpc.ini

    [common]
    server_addr = 8.8.8.8
    server_port = 7777
    tls_enable = true
    token = 12345678
    protocol = kcp
    # pool_count = 5
    log_file = /root/frp/frpc.log
    log_level = trace
    log_max_days = 3
    
    [ssh]
    type = tcp
    local_ip = 127.0.0.1
    local_port = 22
    remote_port = 1
    
    [http:test]
    type = http
    local_ip = 127.0.0.1
    local_port = 80
    custom_domains = test.top
    proxy_protocol_version = v2
    
    [https:test]
    type = https
    local_port = 443
    custom_domains = test.top
    proxy_protocol_version = v2
    use_encryption = true
    use_compression = true
    #plugin = https2http
    #plugin_local_addr = 127.0.0.1:80
    #plugin_crt_path = /path/to/test.pem
    #plugin_key_path = /path/to/test.key
    #plugin_host_header_rewrite = test.top
    #plugin_header_X-From-Where = frp
    
    
  • 服务端开机自启动

    # 添加系统服务
    sudo vim /lib/systemd/system/frps.service
    
    # 服务内容
    [Unit]
    Description=frps service
    After=network.target syslog.target
    Wants=network.target
    
    [Service]
    Type=simple
    ExecStart=/path/to/frp/frps -c /path/to/frp/frps.ini
    
    [Install]
    WantedBy=multi-user.target
    
    # 启动
    sudo systemctl start frps
    
    # 开机启动
    sudo systemctl enable frps
    
    # 其它命令
    sudo systemctl restart frps
    sudo systemctl stop frps
    sudo systemctl status frps
    
    
  • 客户端开机自启动

    # 添加系统服务
    sudo vim /lib/systemd/system/frpc.service
    
    # 服务内容
    [Unit]
    Description=frpc service
    After=network.target syslog.target
    Wants=network.target
    
    [Service]
    Type=simple
    ExecStart=/path/to/frp/frpc -c /path/to/frp/frpc.ini
    
    [Install]
    WantedBy=multi-user.target
    
    # 启动
    sudo systemctl start frpc
    
    # 开机启动
    sudo systemctl enable frpc
    
    # 其它命令
    sudo systemctl restart frpc
    sudo systemctl stop frpc
    sudo systemctl status frpc
    
    
  • 定时任务,每天定时重启server和client

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/194445.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 黑盒测试用例设计 二[通俗易懂]

    黑盒测试用例设计 二[通俗易懂]因果图法一.方法简介1.定义是一种利用图解法分析输入的各种组合情况,从而设计测试用例的方法,它适合于检查程序输入条件的各种组合情况。2.因果图法产生的背景等价类划分法和边界值分析方法都是着重考虑输入条件,但没有考虑输入条件的各种组合、输入条件之间的相互制约关系。这样虽然各种输入条件可能出错的情况已经测试到了,但多个输入条件组合起来可能出错的情况却被忽视了。如果在测试时必须考虑输入条件…

    2022年4月30日
    41
  • Python简单爬虫入门一

    Python简单爬虫入门一

    2022年2月22日
    43
  • 儿童计算机编程主要是学什么,儿童编程是什么教什么?学习少儿编程有3大好处…

    少儿编程在中国起步较晚,但政策很好,技术发展也作为一个重要议题提上议事日程,为节目制作行业的发展提供了良好的土壤和坚实的基础,尤其是儿童节目的编排。在2018年,人工智能再次被写入工作报告。同时,我国的大学、中小学也逐步开设了程序设计和人工智能课程。由此可见,我国也在鼓励普及和推广节目教育,使更多的儿童学会编程。少儿编程是学什么的?少儿编程并不是让孩子成为程序员,而是要学会编程思维应用在日常的学习…

    2022年4月14日
    50
  • linux服务器中如何解压分卷文件,Linux解压rar文件(unrar安装和使用,分卷解压)…

    linux服务器中如何解压分卷文件,Linux解压rar文件(unrar安装和使用,分卷解压)…windows平台很多压缩文档为rar文件,那么怎么做到Linux解压rar文件(unrar安装和使用)?简单,centos5安装unrar即可。unrar安装方法如下:wgethttp://dag.wieers.com/rpm/packages/unrar/unrar-3.6.8-1.el5.rf.i386.rpm;rpm-Uvhunrar-3.6.8-1.el5.rf.i386.rpm…

    2022年7月11日
    26
  • 小议AutoEventWireup属性

    小议AutoEventWireup属性1.在web页面添加一个label和button控件ViewCode<%@PageLanguage=”C#”AutoEventWireup=”false”CodeFile=”AutoEventWireup属性.aspx.cs”Inherits=”_Default”%><!DOCTYPEhtmlPUBLIC”-//W3C//DT…

    2022年5月28日
    30
  • 大数据架构之– Lambda架构「建议收藏」

    大数据架构之– Lambda架构「建议收藏」一、什么是Lambda架构Lambda架构由Storm的作者[NathanMarz]提出,根据维基百科的定义,Lambda架构的设计是为了在处理大规模数据时,同时发挥流处理和批处理的优势。通过批处理提供全面、准确的数据,通过流处理提供低延迟的数据,从而达到平衡延迟、吞吐量和容错性的目的。为了满足下游的即席查询,批处理和流处理的结果会进行合并。二、Lambda架构组成Lambda架构包含三层,BatchLayer、SpeedLayer和ServingLayer。架.

    2022年6月25日
    33

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号