We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on Vesta 2.0 and expect to release it by the end of 2024. Read more about it: https://vestacp.com/docs/vesta-2-development
Не запускается iptables
Не запускается iptables
Доброе время суток.
У меня не выполняется start и restart iptables в панели vestacp. При нажатии кнопок происходит зависание сервера и приходится его перезагружать. Насколько я понимаю проблема в занятом порте, или же здесь совсем другая причина? Как это проще всего исправить?
У меня не выполняется start и restart iptables в панели vestacp. При нажатии кнопок происходит зависание сервера и приходится его перезагружать. Насколько я понимаю проблема в занятом порте, или же здесь совсем другая причина? Как это проще всего исправить?
-
- Support team
- Posts: 1047
- Joined: Fri Mar 21, 2014 7:49 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: Не запускается iptables
Попробуйте запустить процесс в консоли, что при этом пишет?
-
- Support team
- Posts: 1047
- Joined: Fri Mar 21, 2014 7:49 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: Не запускается iptables
И еще, в чем выражается "зависание" сервера?
Re: Не запускается iptables
Если так: service iptables start
тогда пишет: Failed to start iptables.service: Unit iptables.service not found.
тогда пишет: Failed to start iptables.service: Unit iptables.service not found.
Re: Не запускается iptables
Сервер не отвечает, по SSH не впускает. Приходится выполнять hard reboot через аккаунт провайдера.
Re: Не запускается iptables
Ни у кого нет предположений в чем может быть проблема?
Re: Не запускается iptables
Доброго всем, столкнулся с тем что после установки на чистую систему CentOS 6.9 не запускается iptables из админки, в консоли видно что он работает, file2ban работает видно. Похоже что не подцепляет конфиги из vestacp, какие могут быть советы? Зависания не происходит, он просто не работает с админкой.
service iptables start - старуте и стопает нормально:
iptables -L -n -v
Chain INPUT (policy ACCEPT 41297 packets, 112M bytes)
pkts bytes target prot opt in out source destination
2375 209K fail2ban-SSH tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 41197 packets, 94M bytes)
pkts bytes target prot opt in out source destination
Chain fail2ban-SSH (1 references)
pkts bytes target prot opt in out source destination
289 17748 REJECT all -- * * 187.141.143.180 0.0.0.0/0 reject-with icmp-port-unreachable
2086 191K RETURN all -- * * 0.0.0.0/0 0.0.0.0/0
service iptables start - старуте и стопает нормально:
iptables -L -n -v
Chain INPUT (policy ACCEPT 41297 packets, 112M bytes)
pkts bytes target prot opt in out source destination
2375 209K fail2ban-SSH tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 41197 packets, 94M bytes)
pkts bytes target prot opt in out source destination
Chain fail2ban-SSH (1 references)
pkts bytes target prot opt in out source destination
289 17748 REJECT all -- * * 187.141.143.180 0.0.0.0/0 reject-with icmp-port-unreachable
2086 191K RETURN all -- * * 0.0.0.0/0 0.0.0.0/0
-
- Posts: 31
- Joined: Fri Apr 07, 2017 2:03 pm
Re: Не запускается iptables
Я наблюдал похожую ситуацию на своем сервере, когда при установке панели забыл отключить selinux и firewall.
Re: Не запускается iptables
У меня была такая проблема на Ubuntu 18.04.Jeick911 wrote: ↑Mon Apr 09, 2018 8:21 pmДоброе время суток.
У меня не выполняется start и restart iptables в панели vestacp. При нажатии кнопок происходит зависание сервера и приходится его перезагружать. Насколько я понимаю проблема в занятом порте, или же здесь совсем другая причина? Как это проще всего исправить?
Решается правкой двух файлов:
nano /usr/local/vesta/bin/v-update-firewall
nano /usr/local/vesta/bin/v-stop-firewall
В каждом ищите строку (в конце):
Code: Select all
preup="/etc/network/if-pre-up.d/iptables"
Code: Select all
preup="/etc/network/if-up.d/iptables"
/usr/local/vesta/bin/v-update-firewall
Всё должно заработать.
Разработчики внесите это исправления в панель т.к. в текущей версии Ubuntu больше не существует указанной вами папки.
Re: Не запускается iptables
Вот что ещё нашёл, в Ubuntu 18.04 сетевые интерфейсы как я понял работают через netplan, а Vesta не корректно его обрабатывает.
Решается эта проблема установкой ifupdown пакета.
Скорее всего даже не понадобиться править файлы, о которых я говорил выше.
Решается эта проблема установкой ifupdown пакета.
Code: Select all
sudo apt-get install ifupdown