Problem with IPTables/UFW
Posted: Thu Jun 27, 2019 11:55 am
Hi!
Have fresh installed and rebooted server with VestaCP. Iptables row at VestaCP Server`s tab look like stopped...
When i try from command line to "service iptables start/restart/stop/status" getting this: Unit iptables.service not found.
But...if try to run from VestaCP Server`s tab, its doing very slowly, but after 1 - 2 minutes IPTbales looks like started and working normally... but... after that i have troubles with "sudo -s" - sudo: unable to resolve host <wrong-hostname>: Resource temporarily unavailable
I wanna try to set correct hosts and hostname by edit /etc/hosts and "hostnamesctl set-hostname <correct-hostname>". Thats solutions make me fast with "sudo -s" and restarting iptables trough VestaCP Server`s tab.
And finally... after rebooting - iptables stoped again...
What`s wrong with iptables?
p.s.
its not my first expirience with VCP, but its first time when i have troubles with firewall
Have fresh installed and rebooted server with VestaCP. Iptables row at VestaCP Server`s tab look like stopped...
When i try from command line to "service iptables start/restart/stop/status" getting this: Unit iptables.service not found.
But...if try to run from VestaCP Server`s tab, its doing very slowly, but after 1 - 2 minutes IPTbales looks like started and working normally... but... after that i have troubles with "sudo -s" - sudo: unable to resolve host <wrong-hostname>: Resource temporarily unavailable
I wanna try to set correct hosts and hostname by edit /etc/hosts and "hostnamesctl set-hostname <correct-hostname>". Thats solutions make me fast with "sudo -s" and restarting iptables trough VestaCP Server`s tab.
And finally... after rebooting - iptables stoped again...
What`s wrong with iptables?
p.s.
its not my first expirience with VCP, but its first time when i have troubles with firewall