View Issue Details

IDProjectCategoryView StatusLast Update
0015802CentOS-7firewalldpublic2019-02-08 15:57
Reporterkeerthi4308 
PriorityurgentSeverityblockReproducibilityalways
Status newResolutionopen 
PlatformDockerOSCentos 7OS Version7.6.1810
Product Version7.6.1810 
Target VersionFixed in Version 
Summary0015802: firewalld is not running on centos 7 docker container
DescriptionFirst of all, firewalld is not runnning when executed firewall-cmd --state
The following is the error message for systemctl status firewalld

Feb 08 05:53:21 8464fce11939 firewalld[530]: ERROR: Raising SystemExit in run_server
Feb 08 05:54:02 8464fce11939 systemd[1]: Unit firewalld.service cannot be reloaded because it i...ve.
Feb 08 15:27:03 8464fce11939 systemd[1]: Starting firewalld - dynamic firewall daemon...
Feb 08 15:27:03 8464fce11939 systemd[1]: Started firewalld - dynamic firewall daemon.
Feb 08 15:27:04 8464fce11939 firewalld[1027]: WARNING: ipset not usable, disabling ipset usage ...ll.
Feb 08 15:27:04 8464fce11939 firewalld[1027]: WARNING: iptables not usable, disabling IPv4 firewall.
Feb 08 15:27:04 8464fce11939 firewalld[1027]: WARNING: ip6tables not usable, disabling IPv6 firewall.
Feb 08 15:27:04 8464fce11939 firewalld[1027]: WARNING: ebtables not usable, disabling ethernet ...ll.
Feb 08 15:27:04 8464fce11939 firewalld[1027]: FATAL ERROR: No IPv4 and IPv6 firewall.
Feb 08 15:27:04 8464fce11939 firewalld[1027]: ERROR: Raising SystemExit in run_server

--------------------------------------------------------------------------------------------------------------

For systemctl status iptables -l

‚óŹ iptables.service - IPv4 firewall with iptables
   Loaded: loaded (/usr/lib/systemd/system/iptables.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fri 2019-02-08 06:00:52 UTC; 7min ago
  Process: 681 ExecStart=/usr/libexec/iptables/iptables.init start (code=exited, status=1/FAILURE)
 Main PID: 681 (code=exited, status=1/FAILURE)

Feb 08 06:00:52 8464fce11939 systemd[1]: Starting IPv4 firewall with iptables...
Feb 08 06:00:52 8464fce11939 iptables.init[681]: iptables: Applying firewall rules: iptables-restore v1.4.21: iptables-restore: unable to initialize table 'nat'
Feb 08 06:00:52 8464fce11939 iptables.init[681]: Error occurred at line: 2
Feb 08 06:00:52 8464fce11939 iptables.init[681]: Try `iptables-restore -h' or 'iptables-restore --help' for more information.
Feb 08 06:00:52 8464fce11939 iptables.init[681]: [FAILED]
Feb 08 06:00:52 8464fce11939 systemd[1]: iptables.service: main process exited, code=exited, status=1/FAILURE
Feb 08 06:00:52 8464fce11939 systemd[1]: Failed to start IPv4 firewall with iptables.
Feb 08 06:00:52 8464fce11939 systemd[1]: Unit iptables.service entered failed state.
Feb 08 06:00:52 8464fce11939 systemd[1]: iptables.service failed.

Steps To ReproduceI followed the instructions in https://hub.docker.com/_/centos to build centos image with systemd. Then I did systemctl enable/start/status firewalld and similarly for iptables.service.

I tried restart, disable and then enable firewalld. I did restart the centos 7 docker container as well but the error persisted.
TagsNo tags attached.
abrt_hash
URL

Activities

keerthi4308

keerthi4308

2019-02-08 15:57

reporter  

firwalld.png (118,621 bytes)
firwalld.png (118,621 bytes)
iptables.png (108,558 bytes)
iptables.png (108,558 bytes)

Issue History

Date Modified Username Field Change
2019-02-08 15:57 keerthi4308 New Issue
2019-02-08 15:57 keerthi4308 File Added: firwalld.png
2019-02-08 15:57 keerthi4308 File Added: iptables.png