Skip to content

[Bug] After opening the firewalld service, the container cannot be exposed to the external network #7765

@iammsf

Description

@iammsf

Contact Information

1Panel Version

1.10.23-lts

Problem Description

在centos stream 10上安装1panel,firewalld和iptables均启用,firewalld已放开所需的外部访问端口。
新安装的docker容器应用,无论是否勾选允许外部访问,容器端口无论是暴露到0.0.0.0还是网卡地址,均无法实现外部访问。关闭或卸载firewalld后可成功访问

Steps to Reproduce

创建一个容器应用,如wordpress,将其内部80端口暴露到0.0.0.0:10001或eth0 10.0.1.2:10001上。
在系统→防火墙中新建规则,放行10001端口,允许所有IP访问。
使用浏览器访问http://ip:10001

The expected correct result

预期结果:成功访问WordPress
实际结果:address unreachable
在系统→防火墙中停用firewalld,则可以正常访问

Related log output

Additional Information

之前的版本从没遇到过,疑似是最新版1.10.23lts特有的问题

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions