小编dar*_*n08的帖子

如何使用iptables在centos中打开10011端口

我需要为名为 Teamspeak 3 的应用程序打开端口 10011 才能工作。

我正在使用 CentOS,我尝试了以下命令:

sudo iptables -I INPUT -p tcp --dport 10011 -j ACCEPT
Run Code Online (Sandbox Code Playgroud)

我按下回车键,控制台换了一行,没有错误,没有输出。仍然,当我使用网站检查该端口是否打开时,它没有打开。

有什么我做错或我可能忽略了吗?

谢谢你。


编辑:这是 iptables -L 给我的内容(出于安全原因,我删除了一些行。)

Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     tcp  --  any    any     anywhere             anywhere            tcp dpt:10011
Run Code Online (Sandbox Code Playgroud)

linux iptables centos port

1
推荐指数
1
解决办法
2924
查看次数

标签 统计

centos ×1

iptables ×1

linux ×1

port ×1