Comments (9)
ssh可以,你看是不是自己哪个防火墙的问题。
from frp.
公网Linux服务器防火墙配置:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8001 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 7000 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 6000 -j ACCEPT
内网Mac服务器没有开启防火墙功能 @iseeyou
from frp.
ssh root@ip -p 端口
from frp.
仍然是连接超时
[root@iZ94i1kgqbxZ ~]# ssh [email protected] -p 6000
ssh: connect to host 192.168.1.4 port 6000: Connection timed out
frps启动正常
[root@iZ94i1kgqbxZ service]# ./frps -c ./frps.ini
2016/08/25 19:10:30 [main.go:182] [I] Start frps success
2016/08/25 19:11:22 [control.go:314] [I] ProxyName [ssh], start proxy success
frpc启动正常
➜ /Users/sevenone/Downloads/frp_0.8.1_darwin_amd64 >./frpc -c ./frpc.ini
2016/08/25 19:11:24 [main.go:109] [I] Start frpc success
2016/08/25 19:11:24 [control.go:185] [I] ProxyName [ssh], connect to server [120.25.147.61:7000] success!
2016/08/25 19:11:24 [control.go:193] [I] Start to send heartbeat to frps
from frp.
怎么看你都应该是 ssh [email protected] -p 6000吧
from frp.
120.25.147.61 是公网IP
ssh [email protected]本就可以远程登录
ssh [email protected] -p 6000这样做有什么额外的意义?
我想要的是从外网访问内网主机资源,so how to do?
@FlashSoft
from frp.
@SmarkSeven 从外网访问内网,你应该是访问外网的ip,frp帮你打洞到内网。。。
from frp.
也就是说这个访问行为同时有三个主机参与
1.我的电脑 、2.被访问的内网主机、3.搭桥的外网主机
今天第一次接触内外穿透,有很多地方不明白
@iseeyou 是这样吗
from frp.
刚刚试了下
ssh [email protected] -p 6000
和
ssh -oPort=6000 [email protected]
这两种形式都可以
谢谢 @iseeyou @FlashSoft
from frp.
Related Issues (20)
- frpc 0.53.0 crash HOT 2
- [Feature Request] open a tunnel on frps using other applications by calling a method passing configuration as string parameter HOT 2
- Is the configuration secure enough for RDP access? HOT 2
- QUIC Protocol is not working on FreeBSD HOT 2
- 360防火墙报病毒,是否有异常? HOT 1
- frpc客户端莫名其妙的掉线 HOT 2
- [Feature Request] 请问tcp转发时能否获取到真实的公网ip? HOT 3
- 启动之后,是不是留了后门了 HOT 5
- 穿透内网多个http端口出来 HOT 5
- 两端 toml 都配置了 user 名称,stcp和xtcp无法使用 HOT 1
- 服务器必须使用IPV4地址吗,怎么才能使用二级域名做为服务器地址呢? HOT 4
- [Feature Request] HOT 2
- 最新版的frp,http端口问题 HOT 2
- [Feature Request] Add an API to server to disconnect the client HOT 2
- 客户端-同一个ip,不支持多个端口穿透 HOT 1
- Allow through UFW HOT 1
- frps_full_example.toml内容勘误 HOT 2
- [Feature Request] 服务器网络异常时,重试时间是如何确定的? HOT 3
- 使用tcpmux无法访问网站 HOT 2
- [Feature Request] 打洞代码参数使用疑惑 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from frp.