( makgab | 2024. 09. 29., v – 10:55 )

Próbálgatom:

  • hoszt: 192.168.1.70/24
  • lxc konténer: 192.168.122.236/24 (virbr0)

konténerben fut egy teszt httpd. curl el is éri. curl http://192.168.122.236  -> OK

Beállítom a firewalld szabályt (public zóna: eno0 interfész 192.168.1.70): 

firewall-cmd --zone=public --add-forward-port=port=8080:proto=tcp:toport=80:toaddr=192.168.122.236

De nem érem el a konténert:

# curl http://192.168.1.70:8080
curl: (7) Failed to connect to 192.168.1.70 port 8080 after 0 ms: Couldn't connect to server

Mi hiányzik?