I’ve been experimenting using Podman on my OpenWrt router to run a rootful Jellyfin container. My goal is to access the Jellyfin container via the router's LAN IP address (192.168.1.1) without needing to specify the container's internal IP address (e.g., 10.88.0.2).
What I’ve Done So Far
- Set up Podman and Jellyfin
- I followed the OpenWrt Docker Host Guide to configure Podman.
- I referred to the Podman Networking Guide to understand the bridge network - the default network.
- Expected Behavior
- On my desktop PC running Linux Mint, rootful containers configured similarly (using the bridge network) are accessible via the host PC's IP address.
- I expected the Jellyfin instance on the router to be accessible at
http://192.168.1.1:8096
.
- Observed Behavior
- On the router, I can only access Jellyfin using the container’s internal IP (e.g.,
http://10.88.0.2:8096
). - The ports are not being forwarded/published to
192.168.1.1
. - I've also got a lot of repeating messages in the system log indicating that the podman interface isn't coming up properly. Error at the end of the message
Steps I’ve Tried
- I followed the suggestions in this GitHub issue, including adjusting firewall rules and ensuring proper port forwarding from the bridge network to the LAN. Unfortunately, this didn’t work for me.
Issue with Fixed IP
In an attempt to simplify access, I’ve tried assigning a fixed IP address to the container during creation. However, this has proven problematic:
- Sometimes after rebooting the router or restarting the container, I encounter a Podman IPAM error stating that the IP address is already allocated to another container (the same container ID!).
- This forces me to manually resolve the issue by modifying the container’s IP, which is not an ideal solution.
Can anyone help?
root@router1:~# ubus call system board
{
"kernel": "6.6.60",
"hostname": "router1",
"system": "ARMv8 Processor rev 0",
"model": "Bananapi BPI-R4",
"board_name": "bananapi,bpi-r4",
"rootfs_type": "squashfs",
"release": {
"distribution": "OpenWrt",
"version": "SNAPSHOT",
"revision": "r28072-b902284290",
"target": "mediatek/filogic",
"description": "OpenWrt SNAPSHOT r28072-b902284290",
"builddate": "1731480827"
}
}
Excerpt of network config:
config interface 'podman'
option proto 'external'
option device 'podman0'
Excerpt of firewall config:
config zone
option name 'podman'
option input 'REJECT'
option output 'ACCEPT'
option forward 'ACCEPT'
option mtu_fix '1'
list network 'podman'
config forwarding
option src 'lan'
option dest 'podman'
config forwarding
option src 'podman'
option dest 'wan'
config rule
option name 'Podman DNS'
option src 'podman'
option dest_port '53'
option target 'ACCEPT'
config rule
option name 'Podman DHCP'
list proto 'udp'
option target 'ACCEPT'
option src 'podman'
Error:
Sun Nov 17 21:30:06 2024 daemon.notice netifd: Interface 'podman' is now down
Sun Nov 17 21:30:06 2024 daemon.notice netifd: Interface 'podman' is setting up now
Sun Nov 17 21:30:06 2024 daemon.notice netifd: podman (7558): BusyBox v1.36.1 (2024-11-13 06:12:21 UTC) multi-call binary.
Sun Nov 17 21:30:06 2024 daemon.notice netifd: podman (7558):
Sun Nov 17 21:30:06 2024 daemon.notice netifd: podman (7558): Usage: ip [OPTIONS] address|route|link|neigh|rule [ARGS]
Sun Nov 17 21:30:06 2024 daemon.notice netifd: podman (7558):
Sun Nov 17 21:30:06 2024 daemon.notice netifd: podman (7558): OPTIONS := -f[amily] inet|inet6|link | -o[neline]
Sun Nov 17 21:30:06 2024 daemon.notice netifd: podman (7558):
Sun Nov 17 21:30:06 2024 daemon.notice netifd: podman (7558): ip addr add|del IFADDR dev IFACE | show|flush [dev IFACE] [to PREFIX]
Sun Nov 17 21:30:06 2024 daemon.notice netifd: podman (7558): ip route list|flush|add|del|change|append|replace|test ROUTE
Sun Nov 17 21:30:06 2024 daemon.notice netifd: podman (7558): ip link set IFACE [up|down] [arp on|off] [multicast on|off]
Sun Nov 17 21:30:06 2024 daemon.notice netifd: podman (7558): [promisc on|off] [mtu NUM] [name NAME] [qlen NUM] [address MAC]
Sun Nov 17 21:30:06 2024 daemon.notice netifd: podman (7558): [master IFACE | nomaster] [netns PID]
Sun Nov 17 21:30:06 2024 daemon.notice netifd: podman (7558): ip neigh show|flush [to PREFIX] [dev DEV] [nud STATE]
Sun Nov 17 21:30:06 2024 daemon.notice netifd: podman (7558): ip rule [list] | add|del SELECTOR ACTION
Sun Nov 17 21:30:06 2024 daemon.notice netifd: podman (7558): Failed to parse message data
Sun Nov 17 21:30:06 2024 daemon.notice netifd: podman (7558): BusyBox v1.36.1 (2024-11-13 06:12:21 UTC) multi-call binary.
Sun Nov 17 21:30:06 2024 daemon.notice netifd: podman (7558):
Sun Nov 17 21:30:06 2024 daemon.notice netifd: podman (7558): Usage: ip [OPTIONS] address|route|link|neigh|rule [ARGS]
Sun Nov 17 21:30:06 2024 daemon.notice netifd: podman (7558):
Sun Nov 17 21:30:06 2024 daemon.notice netifd: podman (7558): OPTIONS := -f[amily] inet|inet6|link | -o[neline]
Sun Nov 17 21:30:06 2024 daemon.notice netifd: podman (7558):
Sun Nov 17 21:30:06 2024 daemon.notice netifd: podman (7558): ip addr add|del IFADDR dev IFACE | show|flush [dev IFACE] [to PREFIX]
Sun Nov 17 21:30:06 2024 daemon.notice netifd: podman (7558): ip route list|flush|add|del|change|append|replace|test ROUTE
Sun Nov 17 21:30:06 2024 daemon.notice netifd: podman (7558): ip link set IFACE [up|down] [arp on|off] [multicast on|off]
Sun Nov 17 21:30:06 2024 daemon.notice netifd: podman (7558): [promisc on|off] [mtu NUM] [name NAME] [qlen NUM] [address MAC]
Sun Nov 17 21:30:06 2024 daemon.notice netifd: podman (7558): [master IFACE | nomaster] [netns PID]
Sun Nov 17 21:30:06 2024 daemon.notice netifd: podman (7558): ip neigh show|flush [to PREFIX] [dev DEV] [nud STATE]
Sun Nov 17 21:30:06 2024 daemon.notice netifd: podman (7558): ip rule [list] | add|del SELECTOR ACTION
Sun Nov 17 21:30:06 2024 daemon.notice netifd: podman (7558): Failed to parse message data
Sun Nov 17 21:30:06 2024 daemon.notice netifd: podman (7558): interface podman0 does not have ip address
Sun Nov 17 21:30:06 2024 daemon.notice netifd: Interface 'podman' is now down
Sun Nov 17 21:30:06 2024 daemon.notice netifd: Interface 'podman' is setting up now