简体   繁体   English

无论我做什么都无法转发我的端口

[英]Can't Forward my port no matter what I do

before I start this post I'd like to state that I'm somewhat familiar with the concept of.networks and how they work but certain things still manage to confuse me so please excuse any dumb mistakes that I make but please understand that you can use as much "Networking Jargon" as you'd like.在我开始这篇文章之前,我想 state 我有点熟悉 .networks 的概念以及它们的工作方式,但某些事情仍然让我感到困惑所以请原谅我犯的任何愚蠢的错误,但请理解你可以使用尽可能多的“网络行话”。

So anyways, I recently converted my old PC into a small Linux server running Ubuntu (I know, I know INSERT DISTRO HERE is better but I'm learning as I go and I don't really feel like re-installing it).所以无论如何,我最近将我的旧 PC 转换为运行 Ubuntu 的小型 Linux 服务器(我知道,我知道INSERT DISTRO HERE更好,但我正在学习 go,我真的不想重新安装它)。

Everything works perfectly well inside of my local.network, but I would really love it if I had the ability access my server (SSH,specifically) from outside of my.network (I travel a lot).在我的 local.network 内部一切都运行良好,但如果我能够从 my.network 外部(我经常出差)访问我的服务器(特别是 SSH),我会非常喜欢它。 So I do the usual things:所以我做通常的事情:

  • I set my server IP type to STATIC (192.168.0.101)我将我的服务器 IP 类型设置为 STATIC (192.168.0.101)

  • I allowed firewall traffic (TCP/UDP) from port 22我允许来自端口 22 的防火墙流量 (TCP/UDP)

  • I added a "Virtual Server" that routes to 192.168.0.101 (my server's LAN IP) through port 22 (Port Forwarding [I'm using a TP-LINK WR841N v9 that's just how they called it])我添加了一个“虚拟服务器”,通过端口 22(端口转发 [我使用的是 TP-LINK WR841N v9,这就是他们的称呼])路由到 192.168.0.101(我服务器的 LAN IP)

And this is the part that's confusing me...这是让我困惑的部分......

From what I understand, I needed to create a DYNAMIC DNS address In order for the IP to "stay static" so that I could connect to it (Like connecting to google.com instead of 10.something.something)据我了解,我需要创建一个动态地址 DNS 以便 IP“保持静态”以便我可以连接到它(比如连接到 google.com 而不是 10.something.something)

So I created a "NO-IP" account and managed to get the dynamic DNS to work.所以我创建了一个“NO-IP”帐户并设法让动态 DNS 工作。 (I tested it by pinging the address) (我通过ping地址测试了它)

But whenever I test my port from an external.network it remains closed, I've exhausted all of my options so I'm turning to you Reddit, Please help!但是每当我从 external.network 测试我的端口时,它仍然关闭,我已经用尽了我所有的选择,所以我转向你 Reddit,请帮忙!

I'm not sure if I understand your question correctly... But in order to reach your local PC you'll need to have a public static IP, so you'll be able to reach this PC from the Inte.net.我不确定我是否正确理解了你的问题......但是为了连接到你的本地 PC,你需要有一个公共 static IP,这样你就可以从 Inte.net 连接到这台 PC。

I don't know all the details, but I can suppose you'll have to get a static public IP (from your ISP) and then make port forwarding on the router to reach that server.我不知道所有细节,但我可以假设您必须获得 static public IP(来自您的 ISP),然后在路由器上进行端口转发才能到达该服务器。 And then, having these things done you'll be able to configure DNS to reach that server.然后,完成这些操作后,您将能够配置 DNS 以访问该服务器。

I'd first recommend making everything work without DNS. That's the most challenging part.我首先建议在没有 DNS 的情况下使一切正常。这是最具挑战性的部分。 And then just configure DSN (it's going to be easy I guess...)然后只需配置 DSN(我想这会很容易......)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM