iptables stopped after installed
Posted: Thu Apr 18, 2019 6:09 pm
I installed Vesta, but iptables does not start. What can it be?
VPS Centos 7.6
VPS Centos 7.6
Community Forum
https://forum.vestacp.com/
Code: Select all
yum list installed | grep iptables
Code: Select all
systemctl status iptables.service -l
Code: Select all
service fail2ban status
Code: Select all
source /etc/profile ##to enable the use the vesta commands
PATH=$PATH:/usr/local/vesta/bin && export PATH ##to enable the use the vesta commands
v-update-firewall
/usr/local/vesta/bin/v-update-firewall: line 161: /sbin/iptables-save: No such file or directory
Code: Select all
sudo apt-get remove --purge iptable*
Code: Select all
Note, selecting 'iptables-converter-doc' for glob 'iptables*'
Note, selecting 'iptables' for glob 'iptables*'
Note, selecting 'iptables-optimizer-doc' for glob 'iptables*'
Note, selecting 'iptables-converter' for glob 'iptables*'
Note, selecting 'iptables-persistent' for glob 'iptables*'
Note, selecting 'iptables-nftables-compat' for glob 'iptables*'
Note, selecting 'iptables-optimizer' for glob 'iptables*'
Note, selecting 'iptables-dev' for glob 'iptables*'
Package 'iptables' is not installed, so not removed
Package 'iptables-dev' is not installed, so not removed
Package 'iptables-converter' is not installed, so not removed
Package 'iptables-converter-doc' is not installed, so not removed
Package 'iptables-nftables-compat' is not installed, so not removed
Package 'iptables-optimizer' is not installed, so not removed
Package 'iptables-optimizer-doc' is not installed, so not removed
Package 'iptables-persistent' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
Code: Select all
#whereis iptables
#iptables: /etc/iptables.rules
#nano /etc/iptables.rules ##was empty
#systemctl status iptables.service -l
Unit iptables.service could not be found.
#service fail2ban status
Unit fail2ban.service could not be found.
Code: Select all
sudo apt install iptables fail2ban
Code: Select all
OpenSSL error: error:0909006C:PEM routines:get_name:no start line
Code: Select all
sudo rm -rf /usr/share/phpmyadmin.bak
sudo mv /usr/share/phpmyadmin/ /usr/share/phpmyadmin.bak
sudo mkdir /usr/share/phpmyadmin/
cd /usr/share/phpmyadmin/
sudo wget https://files.phpmyadmin.net/phpMyAdmin/5.2.0/phpMyAdmin-5.2.0-all-languages.tar.gz
sudo tar xzf phpMyAdmin-5.2.0-all-languages.tar.gz
sudo mv phpMyAdmin-5.2.0-all-languages/* /usr/share/phpmyadmin
Code: Select all
sudo nano /usr/share/phpmyadmin/config.inc.php
Code: Select all
?php
// use here a value of your choice 32 chars long
$cfg['blowfish_secret'] = 'PASTE__32__CHAR__BLOWFISH_SECRET';
$i=0;
$i++;
$cfg['Servers'][$i]['auth_type'] = 'cookie';
Code: Select all
sudo mkdir /usr/share/phpmyadmin/tmp && sudo chmod 777 /usr/share/phpmyadmin/tmp
Code: Select all
sudo rm /usr/share/phpmyadmin/phpMyAdmin-5.2.0-all-languages.tar.gz
sudo rm -rf /usr/share/phpmyadmin/phpMyAdmin-5.2.0-all-languages
sudo rm -rf /usr/share/phpmyadmin.bak
Code: Select all
nginx N: Skipping acquire of configured file 'nginx/binary-i386/Packages' as repository 'http://nginx.org/packages/mainline/ubuntu bionic InRelease' doesn't support architecture 'i386'
Code: Select all
nano /etc/apt/sources.list.d/nginx.list
Code: Select all
deb [arch=amd64] http://nginx.org/packages/mainline/ubuntu/ bionic nginx
deb-src http://nginx.org/packages/mainline/ubuntu/ bionic nginx
Code: Select all
wget http://nginx.org/keys/nginx_signing.key
Code: Select all
apt-key add nginx_signing.key
Code: Select all
apt update