Problem with IPTables/UFW
Problem with IPTables/UFW
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
Re: Problem with IPTables/UFW
Hi
You miss the most important information
What system you use in your server ?
You miss the most important information
What system you use in your server ?
Re: Problem with IPTables/UFW
huh, yep )
Ubuntu 18.04.2
have 5 servers with 18.04, but this is first time trouble...
Ubuntu 18.04.2
have 5 servers with 18.04, but this is first time trouble...
Re: Problem with IPTables/UFW
Hey!
I had the same problem. Thanks. I fixed it.
I had the same problem. Thanks. I fixed it.
-
- Posts: 12
- Joined: Tue Nov 15, 2016 6:04 am
- Os: Ubuntu 15x
- Web: apache + nginx
Re: Problem with IPTables/UFW
please share with us.. we have the same problem
Re: Problem with IPTables/UFW
Hello everyone. Im just installed a VestaCP on a OHV VPS. Ubuntu 18.04. And after a few reboots, iptables is stopped at every reboot. I have to go to admin user, and start/restart iptables and done. When iptables is down, the /webmail of any domain don't work (and im sure many other things will not work). Ubuntu have ufw but as others said: iptables it is not installed as service, but you can show their rules. Does anyone knows how to fix this?
thank you.
PD: found a russian? post, i cant understand what it says, but found 2 lines.
apt-get install ifupdown
/usr/local/vesta/bin/v-update-firewall
I'm not a Linux expert, but after run these lines and reboot, the VPS (a testing one) started ok! iptables is on on the VestaCP web console. Now, i have a rule that must block ICMP and sometimes works, and almost time it did not... so i can ping the IP or name of my VPS. Now, every time I reboot, Iptables is started and ICMP blocked!!! But, if I turn off Iptables from Vesta Panel and them turn on again, and ICMP is not blocked any more... like Iptables isn't working. But i know if iptables is off, many of resources/services will not work.
It is possible that exist an inconsistency between ufw and iptables?
thank you.
PD: found a russian? post, i cant understand what it says, but found 2 lines.
apt-get install ifupdown
/usr/local/vesta/bin/v-update-firewall
I'm not a Linux expert, but after run these lines and reboot, the VPS (a testing one) started ok! iptables is on on the VestaCP web console. Now, i have a rule that must block ICMP and sometimes works, and almost time it did not... so i can ping the IP or name of my VPS. Now, every time I reboot, Iptables is started and ICMP blocked!!! But, if I turn off Iptables from Vesta Panel and them turn on again, and ICMP is not blocked any more... like Iptables isn't working. But i know if iptables is off, many of resources/services will not work.
It is possible that exist an inconsistency between ufw and iptables?
Re: Problem with IPTables/UFW
ok. its me again...
In my case the problem was:
Ubuntu uses ufw, and VestaCp installs iptables. So, i disabled ufw with:
ufw disable
then check that with:
ufw status
and i saw:
Status: inactive
Thats all. Now every time I reboot, iptables starts ok with VestaCP.
In my case the problem was:
Ubuntu uses ufw, and VestaCp installs iptables. So, i disabled ufw with:
ufw disable
then check that with:
ufw status
and i saw:
Status: inactive
Thats all. Now every time I reboot, iptables starts ok with VestaCP.
-
- Posts: 3
- Joined: Fri Nov 27, 2020 10:09 am
- Contact:
- Os: CentOS 4x
- Web: apache + nginx
Re: Problem with IPTables/UFW
we have the same problem