iptables
방화벽 서비스를 시작하려고 했지만 항상 실패합니다. 무엇이 잘못되었나요?
# systemctl status iptables.service
iptables.service - IPv4 firewall with iptables
Loaded: loaded (/usr/lib/systemd/system/iptables.service; enabled)
Active: failed (Result: exit-code) since Sat 2013-10-26 11:01:54 CDT; 41s ago
Process: 2114 ExecStart=/usr/libexec/iptables/iptables.init start (code=exited, status=1/FAILURE)
Oct 26 11:01:54 localhost.localdomain iptables.init[2114]: iptables: Applying firewall rules: iptables-restore: line 1 failed
Oct 26 11:01:54 localhost.localdomain systemd[1]: iptables.service: main process exited, code=exited, status=1/FAILURE
Oct 26 11:01:54 localhost.localdomain systemd[1]: Failed to start IPv4 firewall with iptables.
Oct 26 11:01:54 localhost.localdomain systemd[1]: Unit iptables.service entered failed state.
답변1
(루트로) 시도하십시오:
iptables-restore < /etc/sysconfig/iptables
실패하면 추가 정보와 함께 오류가 표시됩니다. 작동한다면 systemd 서비스 파일에 문제가 있을 수 있습니다.