CentOS 7开放端口开放但不起作用

发布于 2025-02-13 09:03:52 字数 634 浏览 0 评论 0原文

centos 7开放端口开放,但不起作用

t尝试在我的VPS Centos 7上打开端口,就像5060一样,

这个端口只是我需要在系统中打开的数字,

在iptables和firewall-cmd中打开它

2004h[root@centos ~]# sudo firewall-cmd --list-all
public (active)
  target: default
  icmp-block-inversion: no
  interfaces: eth0 eth1
  sources:
  services: cockpit dhcpv6-client http https ssh telnet
  ports: 5060/tcp 80/tcp 443/tcp
  protocols:
  forward: yes
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules: 

我现在 在我使用 https://portchecker.co/check 端口已关闭

centos 7 open port is open but not working

t try to open port on my vps centos 7 like 5060

this port is just number i need it open in my system

i open it in iptables and firewall-cmd

2004h[root@centos ~]# sudo firewall-cmd --list-all
public (active)
  target: default
  icmp-block-inversion: no
  interfaces: eth0 eth1
  sources:
  services: cockpit dhcpv6-client http https ssh telnet
  ports: 5060/tcp 80/tcp 443/tcp
  protocols:
  forward: yes
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules: 

now on i check port using https://portchecker.co/check the port is closed

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

行雁书 2025-02-20 09:03:53

在某些国家,港口5060被ISP阻止
我了解您在虚拟机中打开了端口。
您还需要在VPS主机面板安全组中打开端口。

In some countries port 5060 is blocked by ISP
what i understand you opened the port in your virtual machine.
you need to open the port in VPS host panel security group as well.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文