简体   繁体   English

如何为我的VM实例删除NAT?

[英]How to remove NAT for my VM Instance?

I just created a VM instance with a static IP address to install cpanel. 我刚刚创建了一个具有静态IP地址的VM实例来安装cpanel。

It turns out that cPanel has some problems with NAT. 事实证明,cPanel在NAT方面存在一些问题。 Also cPanel does not provide technical support for systems with NAT. 另外,cPanel不为具有NAT的系统提供技术支持。

Now I want to disable/remove NAT in my VM instance. 现在,我想在我的VM实例中禁用/删除NAT。 Otherwise I will never be able to use cPanel on it. 否则我将永远无法在其上使用cPanel。

Is it possible? 可能吗?

Well, if by saying NAT you mean Network Address Translation, you can't remove it from your VM instance due to NAT is allocated in your router. 好吧,如果说NAT的意思是网络地址转换,则由于路由器中分配了NAT,因此无法将其从VM实例中删除。 You need instead to forward a port in your router to your VM's local port. 相反,您需要将路由器中的端口转发到VM的本地端口。 If you're using cPanel, the standard port should be 2082. The reason to forward a port is to enable all incoming packages to be redirected from you router's external (global static or dynamic)IP to your VM's local IP, from router's port to local port. 如果您使用的是cPanel,则标准端口应为2082。转发端口的原因是允许将所有传入软件包从路由器的外部(全局静态或动态)IP重定向到VM的本地IP,从路由器的端口重定向至VM。本地端口。 Try to check out your router settings and find port forwarding option there. 尝试检查您的路由器设置,并在那里找到端口转发选项。 Also try to google for web-server behind NAT. 也可以尝试在NAT后面搜索Google的网络服务器。

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

相关问题 如何更改我的VM实例操作系统 - how to change my vm instance operating system 如何防止我的 GCP VM 实例中的用户成为 root? - How can prevent users in my GCP VM Instance to become root? 如何将Google Cloud VM实例的外部IP更改为我的“普通” IP - How to change External IP of a Google Cloud VM instance to my 'normal' IP 如何在我自己的 GCP VM 或 Jupterlab 实例中使用 TensorFlow Embeddings Projector? - How can I use the TensorFlow Embeddings Projector inside my own GCP VM or Jupterlab instance? 在我的 GCP 项目中创建 VM 实例时,如何接收自定义 email 通知 - How can I receive custom email notifications when a VM instance is created in my GCP Project 我的SSL证书说它是颁发给我的VM的实例名称的 - My SSL certificate says it is issued to instance name of my VM 如何连接到 google VM 实例上的 psql - how to connect to psql on google VM Instance 如何获得 GCP VM 实例的正常运行时间 - how to get uptime of GCP VM instance 如何在GCP VM实例上创建ansible主服务器? - How to create ansible master on GCP VM instance? 如何在 GCP 中运行的 vm 实例中安装包 - how to install a package in running vm instance in GCP
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM