当前位置: 首页 > wzjs >正文

网站的关于我们怎么做摄影网站cnu视觉联盟

网站的关于我们怎么做,摄影网站cnu视觉联盟,wordpress生成的html,网站设计 线框图 怎么画文章目录选择准备环境安装一键安装服务端(在公网服务器上)docker安装客户端(在本地局域网)1panel安装客户端(在本地局域网)安全配置生成默认 ca生成 frps 证书生成 frpc 的证书服务端配置客户端配置参考选择…

文章目录

  • 选择
  • 准备环境
  • 安装
    • 一键安装服务端(在公网服务器上)
    • docker安装客户端(在本地局域网)
    • 1panel安装客户端(在本地局域网)
  • 安全配置
    • 生成默认 ca
    • 生成 frps 证书
    • 生成 frpc 的证书
  • 服务端配置
  • 客户端配置
  • 参考

选择

截至2025年,nps四年没维护了:https://github.com/ehang-io/nps

主流方案:https://github.com/fatedier/frp

准备环境

需要一台公网服务器
需要一个域名,并提供泛域名解析。

安装

一键安装服务端(在公网服务器上)

https://github.com/MvsCode/frps-onekey

wget https://gitee.com/mvscode/frps-onekey/raw/master/install-frps.sh -O ./install-frps.sh
chmod 700 ./install-frps.sh
./install-frps.sh install

frps安装路径:/usr/local/frps

frps status manage : frps {start|stop|restart|status|config|version}
Example:start: frps startstop: frps stop
restart: frps restart

docker安装客户端(在本地局域网)

docker run --restart=always --network host -d -v ~/frpc.ini:/etc/frp/frpc.ini --name frpc snowdreamtech/frpc

1panel安装客户端(在本地局域网)

略,很简单

安全配置

自定义 TLS 协议加密

cat > my-openssl.cnf << EOF
[ ca ]
default_ca = CA_default
[ CA_default ]
x509_extensions = usr_cert
[ req ]
default_bits        = 2048
default_md          = sha256
default_keyfile     = privkey.pem
distinguished_name  = req_distinguished_name
attributes          = req_attributes
x509_extensions     = v3_ca
string_mask         = utf8only
[ req_distinguished_name ]
[ req_attributes ]
[ usr_cert ]
basicConstraints       = CA:FALSE
nsComment              = "OpenSSL Generated Certificate"
subjectKeyIdentifier   = hash
authorityKeyIdentifier = keyid,issuer
[ v3_ca ]
subjectKeyIdentifier   = hash
authorityKeyIdentifier = keyid:always,issuer
basicConstraints       = CA:true
EOF

生成默认 ca

openssl genrsa -out ca.key 2048
openssl req -x509 -new -nodes -key ca.key -subj "/CN=domain.com" -days 36500 -out ca.crt

生成 frps 证书

openssl genrsa -out server.key 2048openssl req -new -sha256 -key server.key \-subj "/C=XX/ST=DEFAULT/L=DEFAULT/O=DEFAULT/CN=domain.com" \-reqexts SAN \-config <(cat my-openssl.cnf <(printf "\n[SAN]\nsubjectAltName=DNS:localhost,IP:127.0.0.1,DNS:domain.com")) \-out server.csropenssl x509 -req -days 365 -sha256 \-in server.csr -CA ca.crt -CAkey ca.key -CAcreateserial \-extfile <(printf "subjectAltName=DNS:localhost,IP:127.0.0.1,DNS:domain.com") \-out server.crt

生成 frpc 的证书

openssl genrsa -out client.key 2048
openssl req -new -sha256 -key client.key \-subj "/C=XX/ST=DEFAULT/L=DEFAULT/O=DEFAULT/CN=domain.com" \-reqexts SAN \-config <(cat my-openssl.cnf <(printf "\n[SAN]\nsubjectAltName=DNS:localhost,IP:127.0.0.1,DNS:domain.com")) \-out client.csropenssl x509 -req -days 365 -sha256 \-in client.csr -CA ca.crt -CAkey ca.key -CAcreateserial \-extfile <(printf "subjectAltName=DNS:localhost,DNS:domain.com") \-out client.crt

服务端配置

将上面生成好的文件放到/usr/local/frps/ssl/

nano /usr/local/frps/frps.toml 
transport.tls.certFile = "/usr/local/frps/ssl/server.crt"
transport.tls.keyFile = "/usr/local/frps/ssl/server.key"
transport.tls.trustedCaFile = "/usr/local/frps/ssl/ca.crt"

客户端配置

将上面生成好的文件放到/etc/frp/ssl/

serverAddr = 
serverPort = auth.method = "token"
auth.token = "xxxxxx"webServer.addr = "0.0.0.0"
webServer.port = 8080
webServer.user = "xxxxxx"
webServer.password = "xxxxxx"
webServer.pprofEnable = false# tls
transport.tls.certFile = "/etc/frp/ssl/client.crt"
transport.tls.keyFile = "/etc/frp/ssl/client.key"
transport.tls.trustedCaFile = "/etc/frp/ssl/ca.crt"[[proxies]]
name = "ha"
type = "https"
localPort = 443
localIP = "192.168.141.250"
subdomain = "ha"
transport.useEncryption = true
transport.useCompression = true[[proxies]]
name = "freshrss"
#type = "https"
#localPort = 443
type = "http"
localPort = 80
localIP = "192.168.170.1"
subdomain = "freshrss"
transport.useEncryption = true
transport.useCompression = true[[proxies]]
name = "wol"
type = "http"
localPort = 9090
localIP = "192.168.255.254"
subdomain = "wol"
transport.useEncryption = true
transport.useCompression = true

参考

https://shaonianzhentan.github.io/ha-docs/#/install_frpc


文章转载自:

http://5Gu7Ch1B.bdfph.cn
http://Ny6RVrkZ.bdfph.cn
http://zbnlseNU.bdfph.cn
http://bGSLqnwO.bdfph.cn
http://AHNmzGYs.bdfph.cn
http://DhCfkCWL.bdfph.cn
http://OYEklqzU.bdfph.cn
http://nLmxW2K7.bdfph.cn
http://mqeJbH1W.bdfph.cn
http://sDuo5MtV.bdfph.cn
http://qhbLigjf.bdfph.cn
http://sXs7QOHZ.bdfph.cn
http://XFU41ICL.bdfph.cn
http://kX0UrVbc.bdfph.cn
http://kxR9yljk.bdfph.cn
http://30u4cTkB.bdfph.cn
http://BTFTwQQ8.bdfph.cn
http://sXfveSiR.bdfph.cn
http://6N9lV9Fn.bdfph.cn
http://TfHfHzvt.bdfph.cn
http://jQOpb6ot.bdfph.cn
http://GInmlLkH.bdfph.cn
http://5DmDLdwW.bdfph.cn
http://2SZvqOcY.bdfph.cn
http://I6xGu2mn.bdfph.cn
http://qdokI7jq.bdfph.cn
http://hdIrPcm9.bdfph.cn
http://mzfmdQlL.bdfph.cn
http://ACpeMxJN.bdfph.cn
http://wBbZEoQR.bdfph.cn
http://www.dtcms.com/wzjs/740487.html

相关文章:

  • 西安专业的网站优化浙江省住房和城乡建设厅成绩查询
  • 网站统计天津seo管理平台
  • 新手学做网站学哪些知识wordpress强大播放器
  • 孝仙洪高速公路建设指挥部网站网站管理助手 伪静态
  • 企业电子商务网站的建设方式深圳网站建设 百度一下
  • 汉字域名的网站普洱做网站的报价
  • 做网站的资源有哪些上海天华建筑设计有限公司合肥分公司
  • 门户网站综合型门户天津网站制作
  • 做网站运营有趣吗济南建设官方网站
  • 建设网站 费用吗做网站导航栏目怎么做
  • 江津哪个网站可以做顺风车flash 网站模板
  • 企业网站的首页设计北京seo优化哪家公司好
  • app 游戏网站建设短视频营销现状
  • 合肥简川科技网站建设公司 概况微信公众号会员卡管理系统
  • php网站建设设计制作方案中国住建部
  • 根据百度地图做网站wordpress 问卷插件
  • 江门有什么网站推广wordpress 社交
  • 重庆建设教育网站骨科医院网站优化服务商
  • 可以做翻译兼职的网站有哪些wordpress vps
  • wordpress子目录站点有没有教做网站的app
  • 做羞羞事的网站有哪些电子商务网站开发与设计报告
  • 滨江道网站建设域名备案审核需要多久
  • 个人网站建设方案书实例秦皇岛市住房和城乡建设局网
  • 自己做的网站怎么调用百度地图毕业设计论文网站开发需要多少钱
  • 如何把做的网站与域名连接填空秒懂网站
  • ...课程网站建设简介哪个网站做长图免费转高清
  • 做不锈钢管网站知识付费网站开发
  • 站长工具域名wordpress 标题插件
  • 厦门旅游集团网站建设湛江外包做网站
  • 广东圆心科技网站开发需要多少钱安徽网络推广推广机构