job fails for "restart iptables"
I want to install tigervnc server on a remote server, by following this article:
Add this to the file:
sudo vi /etc/sysconfig/iptables
then restart iptables
-A INPUT -p tcp -m state --state NEW -m tcp --dport 5903 -j ACCEPT
job failed, I checked the system logs
sudo systemctl restart iptables.service
Job failed. See system logs and 'systemctl status' for details.
how to deal with this?
Oct 8 00:13:49 canard iptables.init: iptables: Applying firewall rules: iptables-restore: line 1 failed
Oct 8 00:13:49 canard iptables.init: [FAILED]
Oct 8 00:13:49 canard systemd: iptables.service: main process exited, code=exited, status=1
Oct 8 00:13:49 canard systemd: Unit iptables.service entered failed state.
Oct 8 00:15:11 canard avahi-daemon: Invalid response packet from host 126.96.36.199.