Salve…
Ho copiato un firewall da un altro conputer su fedora20.
Ho fatto un file per systemctl, inserendo queste righe:
[Unit]
Description=To start iptalbes automatically
[Service]
ExecStart=/usr/sbin/iptables
[Install]
WantedBy=multi-user.target
inserendo poi systemctl enable iptables.service
Quando vado all’accensione però non parte e questo è il risultato di systemctl -lstatus iptables
iptables.service - To start iptalbes automatically
Loaded: loaded (/etc/systemd/system/iptables.service; enabled)
Active: failed (Result: exit-code) since ven 2014-03-14 17:41:54 CET; 5min ago
Process: 3146 ExecStart=/usr/sbin/iptables (code=exited, status=2)
Main PID: 3146 (code=exited, status=2)
CGroup: /system.slice/iptables.service
mar 14 17:41:54 bina.agr.unipg.it
localhost.localdomain systemd[1]: Started To start iptalbes automatically.
mar 14 17:41:54 bina.agr.unipg.it
localhost.localdomain iptables[3146]: iptables v1.4.19.1: no command specified
mar 14 17:41:54 bina.agr.unipg.it
localhost.localdomain iptables[3146]: Try `iptables -h' or 'iptables --help' for more information.
mar 14 17:41:54 bina.agr.unipg.it
localhost.localdomain systemd[1]: iptables.service: main process exited, code=exited, status=2/INVALIDARGUMENT
mar 14 17:41:54 bina.agr.unipg.it
localhost.localdomain systemd[1]: Unit iptables.service entered failed state.
Ho letto che è stato anche sostituito iptables con firewalld, ma la sintassi è molto diversa.
Anche con systemctl -l status firewalld da che non è funzionante
firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled)
Active: inactive (dead) since ven 2014-03-14 17:33:54 CET; 15min ago
Main PID: 570 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/firewalld.service
mar 14 17:30:56 bina.agr.unipg.it systemd[1]: Starting firewalld - dynamic firewall daemon...
mar 14 17:30:57 bina.agr.unipg.it systemd[1]: Started firewalld - dynamic firewall daemon.
mar 14 17:33:53 bina.agr.unipg.it
localhost.localdomain systemd[1]: Stopping firewalld - dynamic firewall daemon...
mar 14 17:33:54 bina.agr.unipg.it
localhost.localdomain systemd[1]: Stopped firewalld - dynamic firewall daemon.
Come posso fare per far partire iptables o firewalld all’avvio?
Grazie
Sergio