Notes on Podman Network
Notes on Podman Network
Section titled “Notes on Podman Network”0.Intro
Section titled “0.Intro”This is a note on some issues relating to podman network and firewalld on RHEL.
1.Environment
Section titled “1.Environment”- RHEL 9.4
- Podman 4.9.4-rhel
2. Issue Details
Section titled “2. Issue Details”| –network | –net | -p | firewall status |
|---|---|---|---|
| - | [x] | [x] | Allowed |
| bridge | [x] | [x] | Blocked |
| host | - | - | Blocked |
As showed in table above, if using podman with --net -p parameters only, firewalld will not block the access on this port.
However, with --network bridge configured, and paramters above configured, the firewalld will block this access.
And as showed, firewalld will block all access on configuring --network host.
3. Fix problem above
Section titled “3. Fix problem above”On ports mapping, spefic ip address like 127.0.0.1 on host port.
[1]. Linux-Firewall-初探
[2]. Netstat-常用参数