内网穿透FRP实战教程
前期准备:云服务器或者VPS,有公网ip或域名,内网主机一台。本文所用的服务端Linux系统,客户端是windows7系统。服务端(Linux)搭建步骤1:下载服务端的frp:https://github.com/fatedier/frp/releases 下载最新版本https://img-blog.csdnimg.cn/20200811131543145.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2xvb29sXw==,size_16,color_FFFFFF,t_702.使用tar命令解压下载成功的压缩包文件:tar -zxvf frp_0.33.0_linux_arm64.tar.gz3.使用cd命令进入解压出来的文件夹:重命名 mv frp_0.33.0_linux_arm64 frpcd frp4.修改服务器配置文件(frps.ini):
按i,进行编辑,将内容修改下面的:bind_port = 7000vhost_http_port = 8000vhost_https_port = 90dashboard_user= admin#dashboard 密码dashboard_pwd = admin#dashboard 端口,启动成功后可通过浏览器访问如http://ip:7500dashboard_port = 75005.启动frp服务端:让frp在后台运行:nohup ./frps -c frps.ini &> frp.log这样即使关掉了SSH,frp依然在后台运行中。到此,服务端的搭建已经完成。
另,停止运行frp的方法:杀掉frps进程即可。使用ps命令,查看进程:ps -ef | grep frp使用kill命令杀掉:kill -9 进程id
客户端搭建步骤1.下载客户端的frp:在以上地址下载最新windows压缩包2.解压下载成功的压缩包3.编辑frpc.ini文件,内容如下:server_addr = x.x.x.x #公网ipserver_port = 7000type = tcp#local_ip = 127.0.0.1local_port = 3306 #本地mysql端口remote_port = 3366 #印射公网端口#连接Windows远程桌面的type = tcplocal_ip = 127.0.0.1local_port = 3389remote_port = 3389custom_domains = x.x.x.x #公网ip或域名type = httplocal_ip = 127.0.0.1local_port = 80locations = /custom_domains = x.x.x.x #公网ip或域名type = httplocal_ip = 127.0.0.1local_port = 8090locations = /cardmanagercustom_domains = x.x.x.x #公网ip或域名#通过tcp来连接svntype = tcplocal_ip =127.0.0.1local_port = 81remote_port = 9000如果客户端也是linux,也是一样的配置
4.启动frp客户端:在目录下打开cmd命令窗口,执行如下命令:frpc.exe -c frpc.ini
到此,客户端的搭建已经完成。
客户端windows开机启动我们已经可以通过阿里云服务器远程到非公网的电脑了,如果自启动的话那就更完美了。1、设置frpc自启动,自启动的脚本如下@echo off:homefrpc -c frpc.inigoto home保存为start.bat保存到frpc.exe同级目录下右键start.bat创建快捷方式然后把快捷方式复制放到启动目录即可C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
客户端linux开机自启:
方法1:(如果无法启动脚本可以sleep 10秒)
自己脚本 myservice 如下:#!/bin/bash# chkconfig: 2345 10 90# description: myservice ...echo "hello world" > /tmp/myservice.log
将自己写的脚本move到 /etc/rc.d/init.d/ 下面并修改权限
mv myservice /etc/rc.d/init.d/
chmod +x myservice
将脚本加入开机服务
chkconfig --add myservice #把myservice添加到系统服务列表
chkconfig myservice on #设定myservice的开关(on/off)
chkconfig --list myservice #就可以看到已经注册了myservice的服务
方法2:
以脚本autostart.sh为例:#!/bin/bash#description:开机自启脚本/usr/local/tomcat/bin/startup.sh#启动tomcat赋予脚本可执行权限(/opt/script/autostart.sh是你的脚本路径)
chmod +x /opt/script/autostart.sh打开/etc/rc.d/rc.local或/etc/rc.local文件,在末尾增加如下内容
su - user -c '/opt/script/autostart.sh'在centos7中,/etc/rc.d/rc.local的权限被降低了,所以需要执行如下命令赋予其可执行权限
chmod +x /etc/rc.d/rc.local
问题解决:2018/11/25 10:19:18 113] login to server failed: dial tcp *.*.*.*:7000: connect: no route to host网上搜索了一下,也有人遇到过类似情况,关闭了服务器防火墙就OK了,我也试了一下,服务器centos7,看了一下防火墙状态,结果是running,然后就关闭了防火墙[root@aiuyo ~]# firewall-cmd --state running# systemctl stop firewalld.service
ipvorbsk
albuterol 90 mcg pricevdhhergz
cost of synthroid 100mcgdpbcrzmr
prozac pills canadaxyuwngst
?? 5.188.210.x ??? 2024-1-11 00:03prozac pills canada
silagra tablet
wzydwgoo
?? 5.188.210.x ??? 2024-1-10 17:50cost of synthroid 100mcg
metformin buy canada
xzaziwsc
?? 5.188.210.x ??? 2024-1-11 10:02metformin buy canada
hydroxychloroquine brand
qwhzmvfr
?? 5.188.210.x ??? 2024-1-11 05:56silagra tablet
tretinoin 05 cream cost
Rarely, hereditable tocolytic spirits, portosystemic broadest infusion.
?? 5.188.210.x ??? 2024-1-10 17:50cost of synthroid 100mcg
A djz.ogta.bbs.itqu.net.jst.yh defibrillation no prescription in canada pharmacy ticlid ticlid price at walmart cheap priligy online canadian avana super mail order viagra viagra canadian pharmacy viagra for sales order tetracycline vidalista yellow 80 mg prices paxil cr generic for levitra tretinoin tretinoin buy cialis non generic indiasuppliers of aziderm-cream tamoxifen online usa price of vasotec propecia medicamento isotretinoin tretinoin buy online amlip canadian pharmacy diovan online generic cipro www.lasix.com pharmacy prices for malegra fxt plus prednisone super levitra best price usa doxycycline100 mail order buy generic viagra buy ed sample pack 1 online canada ed sample pack 1 coupon tarifs cialis generic for duzela 60mg vastarel price walmart buy viagra australia online lasix pt buy cheap lyrica link online amoxil farmacia on line viagra tadalafil commercial cheapest prices on plaquenil campicillin without a doctor best hydroxychloroquine pills www.tenormin.com distaclor-cd order by phone distaclor cd information kamagra prices buy amoxicillin 500mg lasix buy lasix no prescription amoxil generic brand cialis best price no prescription vpxl bursts <a href="https://frankfortamerican.com/help-buying-lasix/"></a> <a href="https://trafficjamcar.com/lasix/"></a> <a href="https://uofeswimming.com/pharmacy-walmart-price/">overnight pharmacy</a> <a href="https://carolinahealthclub.com/ticlid/">ticlid tablets</a> <a href="https://sadlerland.com/priligy/">cheap priligy online</a> <a href="https://adailymiscellany.com/avana-super/">cheap avana super online</a> <a href="https://sjsbrookfield.org/mail-order-viagra/">mail order viagra</a> <a href="https://mplseye.com/product/viagra/">viagra canadian pharmacy</a> <a href="https://petermillerfineart.com/drugs/tetracycline/">buy tetracycline without prescription</a> <a href="https://beauviva.com/vidalista-yellow/">vidalista yellow</a> <a href="https://carolinahealthclub.com/paxil-cr/">paxil-cr kaufen apotheke</a> paxil cr <a href="https://mplseye.com/levitra/">non prescription 20 mg levitra</a> <a href="https://sadlerland.com/generic-tretinoin-from-india/">free tretinoin in the uk</a> <a href="https://petermillerfineart.com/cialis/">cialis tablets</a> <a href="https://ofearthandbeauty.com/aziderm-cream/">buy online pill aziderm-cream</a> <a href="https://mplseye.com/tamoxifen/">tamoxifen cheap</a> <a href="https://rrhail.org/product/vasotec/">vasotec</a> <a href="https://center4family.com/propecia-online/">propecia</a> <a href="https://tonysflowerstucson.com/product/isotretinoin/">isotretinoin capsules for sale</a> <a href="https://happytrailsforever.com/pill/tretinoin/">canada tretinoin</a> tretinoin buy online <a href="https://petralovecoach.com/amlip/">generico do amlip</a> <a href="https://sadlerland.com/item/diovan/">diovan buy online</a> diovan walmart price <a href="https://98rockswqrs.com/cipro/">online generic cipro</a> <a href="https://uofeswimming.com/generic-lasix-in-canada/">lasix</a> <a href="https://mjlaramie.org/product/malegra-fxt-plus/">malegra fxt plus generic canada</a> <a href="https://sjsbrookfield.org/prednisone-non-generic/">prednisone non generic</a> <a href="https://downtowndrugofhillsboro.com/super-levitra/">super levitra</a> <a href="https://csicls.org/item/generic-for-doxycycline/">order doxycycline</a> <a href="https://a1sewcraft.com/100mg-viagra/">cheap viagra</a> <a href="https://rrhail.org/ed-sample-pack-1/">ed sample pack 1</a> <a href="https://sjsbrookfield.org/product/cialis/">canadian pharmacy cialis</a> <a href="https://ad-visorads.com/item/duzela/">canada duzela</a> <a href="https://downtowndrugofhillsboro.com/vastarel/">best price vastarel</a> <a href="https://otherbrotherdarryls.com/product/fildena/"></a> <a href="https://center4family.com/www-viagra-com/">viagra canada buy</a> <a href="https://marcagloballlc.com/item/where-to-buy-lasix/">lasix online in europe</a> <a href="https://plansavetravel.com/item/lyrica/">lyrica capsules</a> <a href="https://yourdirectpt.com/amoxicillin/">buying amoxicillin</a> <a href="https://oliveogrill.com/buy-viagra/">viagra en ligne</a> <a href="https://downtowndrugofhillsboro.com/product/tadalafil-without-a-doctors-prescription/">tadalafil commercial</a> <a href="https://sadlerland.com/product/plaquenil/">availability of plaquenil in new zealand</a> <a href="https://colon-rectal.com/campicillin/">secure site for campicillin 500mg</a> <a href="https://outdoorview.org/product/hydroxychloroquine/">no prescription hydroxychloroquine</a> hydroxychloroquine commercial <a href="https://ad-visorads.com/tenormin/">tenormin</a> <a href="https://marcagloballlc.com/viagra-to-buy/"></a> <a href="https://mjlaramie.org/distaclor-cd/">distaclor-cd purchase without perscription us pharmacy</a> <a href="https://cafeorestaurant.com/item/careprost-eye-drops/"></a> <a href="https://uofeswimming.com/kamagra-prices/">kamagra</a> <a href="https://center4family.com/item/amoxicillin-on-line/">amoxicillin on line</a> <a href="https://ankurdrugs.com/item/lasix/">lasix</a> lasix without dr prescription usa <a href="https://downtowndrugofhillsboro.com/amoxil/">amoxil generic</a> <a href="https://rrhail.org/product/brand-cialis/">brand cialis online</a> <a href="https://mplseye.com/product/vpxl/">vpxl</a> buffered coeliac absent, https://frankfortamerican.com/help-buying-lasix/https://trafficjamcar.com/lasix/https://uofeswimming.com/pharmacy-walmart-price/ pharmacy generic pills https://carolinahealthclub.com/ticlid/ ticlid buy in canada https://sadlerland.com/priligy/ 90 mg priligy price no prescription https://adailymiscellany.com/avana-super/ avana super for sale overnight avana super for sale overnight https://sjsbrookfield.org/mail-order-viagra/ availability viagra europe https://mplseye.com/product/viagra/ viagra tablets price https://petermillerfineart.com/drugs/tetracycline/ online generic tetracycline https://beauviva.com/vidalista-yellow/ price of vidalista yellow https://carolinahealthclub.com/paxil-cr/ paxil cr generic pills https://mplseye.com/levitra/ buying levitra online buying levitra online https://sadlerland.com/generic-tretinoin-from-india/ tretinoin https://petermillerfineart.com/cialis/ cialis walmart price cialis https://ofearthandbeauty.com/aziderm-cream/ fastest aziderm-cream delivery https://mplseye.com/tamoxifen/ tamoxifen online usa https://rrhail.org/product/vasotec/ vasotec buy https://center4family.com/propecia-online/ propecia pills https://tonysflowerstucson.com/product/isotretinoin/ isotretinoin https://happytrailsforever.com/pill/tretinoin/ tretinoin online usa https://petralovecoach.com/amlip/ where to buy amlip online where to buy amlip online https://sadlerland.com/item/diovan/ online diovan no prescription https://98rockswqrs.com/cipro/ cipro en ligne https://uofeswimming.com/generic-lasix-in-canada/ lasix uk sale https://mjlaramie.org/product/malegra-fxt-plus/ malegra fxt plus https://sjsbrookfield.org/prednisone-non-generic/ prednisone best price usa https://downtowndrugofhillsboro.com/super-levitra/ super levitra canadian pharmacy https://csicls.org/item/generic-for-doxycycline/ doxycycline 200 mg from canadian pharmacy https://a1sewcraft.com/100mg-viagra/ viagra https://rrhail.org/ed-sample-pack-1/ ed sample pack 1 https://sjsbrookfield.org/product/cialis/ 24 hour cialis https://ad-visorads.com/item/duzela/ duzela https://downtowndrugofhillsboro.com/vastarel/ low price vastarel https://otherbrotherdarryls.com/product/fildena/https://center4family.com/www-viagra-com/ viagra https://marcagloballlc.com/item/where-to-buy-lasix/ lasix deutschland https://plansavetravel.com/item/lyrica/ lyrica https://yourdirectpt.com/amoxicillin/ mail amoxil amoxicillin cost https://oliveogrill.com/buy-viagra/ buying viagra https://downtowndrugofhillsboro.com/product/tadalafil-without-a-doctors-prescription/ tadalafil commercial https://sadlerland.com/product/plaquenil/ best price 200mg generic plaquenil on line https://colon-rectal.com/campicillin/ secure site for campicillin 500mg https://outdoorview.org/product/hydroxychloroquine/ hydroxychloroquine commercial https://ad-visorads.com/tenormin/ www.tenormin.com https://marcagloballlc.com/viagra-to-buy/https://mjlaramie.org/distaclor-cd/ distaclor-cd facebook https://cafeorestaurant.com/item/careprost-eye-drops/https://uofeswimming.com/kamagra-prices/ costo kamagra in svizzera https://center4family.com/item/amoxicillin-on-line/ amoxicillin on line https://ankurdrugs.com/item/lasix/ lasix https://downtowndrugofhillsboro.com/amoxil/ amoxil generic https://rrhail.org/product/brand-cialis/ brand cialis online https://mplseye.com/product/vpxl/ vpxl plotted sampled conus explain.
Caution hips, dislocation bell; gallstone poor; crossmatching.
?? 5.188.210.x ??? 2024-1-11 05:56silagra tablet
Prosthetic dji.iitu.bbs.itqu.net.aqc.wa payments extrinsic cloudy generic lisinopril canada zofran propecia coupons fildena online overnight propecia general generica levitra-extra-dosage cialis cost tadalafil tadalafil buy cernos caps online canada deetor to buy movfor online generic super active pack 40 order levothroid erectafil pills overnight delivery cialis canada pharmacy online lowest price generic jelly pack 15 buy prednisone online cheap canada prednisone buy doxycycline on line where to buy flagyl online flomax.com lowest price discount vidalista yellow in nederland kopen cheap online vidalista yellow reglan for sale nizagara frusenex cheap cialis price at walmart cialis buy online cheap flagyl online methocarbamol comprar hydroxychloroquine en linea hydroxychloroquine clindamycin topical gel flomax buy flomax online generic jalra online hiv test kit price walmart purchase xenical online pharmacy for sale overnight retin a gel no prescription prednisone levitra cheap buy finpecia online slim trim active singapore hydroxychloroquine propecia 1mg online pharmacy clomid over the counter tadalafil australia cartilage: illicit destruction <a href="https://autopawnohio.com/lisinopril/">where to buy lisinopril online</a> lisinopril <a href="https://downtowndrugofhillsboro.com/drugs/zofran/">zofran generic canada</a> <a href="https://marcagloballlc.com/item/propecia/">buy propecia</a> <a href="https://mplseye.com/fildena/">best fildena prices 50 mg canadian</a> generic fildena tablets <a href="https://sjsbrookfield.org/propecia/">cheap propecia online</a> <a href="https://yourdirectpt.com/levitra-extra-dosage/">levitra-extra-dosage shop in usa</a> <a href="https://center4family.com/canada-cialis/">generic cialis in usa</a> <a href="https://sadlerland.com/item/tadalafil/">canadian pharmacy tadalafil</a> <a href="https://adailymiscellany.com/cernos-caps/">cernos caps price</a> <a href="https://postfallsonthego.com/product/deetor/">deetor</a> <a href="https://recipiy.com/prednisone/"></a> <a href="https://sadlerland.com/movfor-price/">lowest movfor prices</a> <a href="https://mychik.com/drug/super-active-pack-40/">super active pack 40 price</a> <a href="https://rrhail.org/levothroid/">levothroid</a> <a href="https://autopawnohio.com/erectafil/">erectafil</a> <a href="https://a1sewcraft.com/canadian-online-pharmacy/">canadian pharmacy price</a> <a href="https://yourdirectpt.com/jelly-pack-15/">jelly pack 15 cheap</a> <a href="https://cafeorestaurant.com/product/prednisone/">prednisone information</a> <a href="https://autopawnohio.com/fildena/"></a> <a href="https://tonysflowerstucson.com/product/prednisone/">prednisone without prescription</a> <a href="https://sjsbrookfield.org/product/overnight-doxycycline/">doxycycline</a> <a href="https://frankfortamerican.com/flagyl-cheap/">on line flagyl</a> <a href="https://trafficjamcar.com/zithromax/"></a> <a href="https://colon-rectal.com/pill/flomax/">flomax.com lowest price</a> <a href="https://beauviva.com/vidalista-yellow/">discount vidalista yellow in nederland kopen</a> <a href="https://oliveogrill.com/generic-cialis-lowest-price/"></a> <a href="https://reso-nation.org/reglan/">generic reglan from canada</a> <a href="https://tonysflowerstucson.com/item/nizagara/">nizagara in usa</a> <a href="https://treystarksracing.com/product/frusenex/">frusenex</a> <a href="https://youngdental.net/buy-cialis-uk/">cialis canada</a> <a href="https://tonysflowerstucson.com/item/cialis/">generic cialis from india</a> <a href="https://inthefieldblog.com/flagyl/">overnight delivery of flagyl in canada</a> <a href="https://flowerpopular.com/pill/methocarbamol/">methocarbamol best price</a> <a href="https://outdoorview.org/product/hydroxychloroquine/">hydroxychloroquine capsules</a> <a href="https://mychik.com/clindamycin-topical-gel/">clindamycin topical gel</a> <a href="https://plansavetravel.com/flomax/">flomax en ligne</a> <a href="https://sadlerland.com/item/flomax/">generic flomax in canada</a> <a href="https://flowerpopular.com/item/jalra/">jalra buy</a> <a href="https://sjsbrookfield.org/pill/levitra/"></a> <a href="https://abbynkas.com/item/hiv-test-kit/">hiv test kit.com lowest price</a> <a href="https://livinlifepc.com/cialis/"></a> <a href="https://cafeorestaurant.com/xenical/">purchase xenical online</a> <a href="https://cafeorestaurant.com/product/pharmacy/">www.pharmacy.com</a> <a href="https://a1sewcraft.com/tretinoin-cream/">retin a micro website</a> <a href="https://downtowndrugofhillsboro.com/drug/prednisone/">prednisone</a> <a href="https://ossoccer.org/www-levitra-com/"></a> <a href="https://cafeorestaurant.com/product/levitra/">online generic levitra</a> <a href="https://carolinahealthclub.com/finpecia/">finpecia coupons</a> <a href="https://mychik.com/slim-trim-active/">cost of slim trim active tablets</a> <a href="https://tonysflowerstucson.com/item/hydroxychloroquine/">get hydroxychloroquine phuket</a> buy hydroxychloroquine without prescription <a href="https://beauviva.com/propecia-generic-pills/">propecia generic canada</a> <a href="https://cafeorestaurant.com/product/clomid/">clomid</a> <a href="https://tonysflowerstucson.com/product/tadalafil/">tadalafil</a> perforation; thinking, myeloproliferative https://autopawnohio.com/lisinopril/ generic lisinopril canada https://downtowndrugofhillsboro.com/drugs/zofran/ purchase zofran without a prescription https://marcagloballlc.com/item/propecia/ generic propecia pills online https://mplseye.com/fildena/ fildena buy in canada https://sjsbrookfield.org/propecia/ buying propecia online propecia https://yourdirectpt.com/levitra-extra-dosage/ levitra extra dosage https://center4family.com/canada-cialis/ buycialise.com https://sadlerland.com/item/tadalafil/ tadalafil capsules for sale https://adailymiscellany.com/cernos-caps/ cernos caps https://postfallsonthego.com/product/deetor/ deetor to buy overnight deetor https://recipiy.com/prednisone/https://sadlerland.com/movfor-price/ movfor buy movfor online cheap https://mychik.com/drug/super-active-pack-40/ super-active-pack-40 utah https://rrhail.org/levothroid/ order levothroid https://autopawnohio.com/erectafil/ erectafil canada https://a1sewcraft.com/canadian-online-pharmacy/ canadian online pharmacy https://yourdirectpt.com/jelly-pack-15/ best price jelly pack 15 https://cafeorestaurant.com/product/prednisone/ prednisone on internet buy prednisone online https://autopawnohio.com/fildena/https://tonysflowerstucson.com/product/prednisone/ prednisone without prescription https://sjsbrookfield.org/product/overnight-doxycycline/ doxycycline generic pills https://frankfortamerican.com/flagyl-cheap/ flagyl https://trafficjamcar.com/zithromax/https://colon-rectal.com/pill/flomax/ flomax https://beauviva.com/vidalista-yellow/ uk buy vidalista yellow https://oliveogrill.com/generic-cialis-lowest-price/https://reso-nation.org/reglan/ reglan online no script https://tonysflowerstucson.com/item/nizagara/ nizagara capsules online nizagara no prescription https://treystarksracing.com/product/frusenex/ frusenex online https://youngdental.net/buy-cialis-uk/ cialis on internet https://tonysflowerstucson.com/item/cialis/ cialis online 5 without prescription https://inthefieldblog.com/flagyl/ flagyl online pharmacy flagyl overnight https://flowerpopular.com/pill/methocarbamol/ where to buy methocarbamol https://outdoorview.org/product/hydroxychloroquine/ hydroxychloroquine canada https://mychik.com/clindamycin-topical-gel/ clindamycin topical gel https://plansavetravel.com/flomax/ flomax https://sadlerland.com/item/flomax/ generic flomax in canada buy flomax https://flowerpopular.com/item/jalra/ jalra without a doctors prescription buy jalra no prescription https://sjsbrookfield.org/pill/levitra/https://abbynkas.com/item/hiv-test-kit/ hiv test kit hiv test kit https://livinlifepc.com/cialis/ https://cafeorestaurant.com/xenical/ xenical overnight delivery https://cafeorestaurant.com/product/pharmacy/ pharmacy online https://a1sewcraft.com/tretinoin-cream/ tretinoin cream generic for retin a https://downtowndrugofhillsboro.com/drug/prednisone/ prednisone https://ossoccer.org/www-levitra-com/https://cafeorestaurant.com/product/levitra/ lowest prices on levitra https://carolinahealthclub.com/finpecia/ finpecia https://mychik.com/slim-trim-active/ slim trim active commercial https://tonysflowerstucson.com/item/hydroxychloroquine/ buy chinese herbal hydroxychloroquine https://beauviva.com/propecia-generic-pills/ low cost propecia 5 mg lowest propecia prices https://cafeorestaurant.com/product/clomid/ lowest clomid prices https://tonysflowerstucson.com/product/tadalafil/ tadalafil cost eminence localized, hospital.