HirbodBehnam / Shadowsocks-Cloak-Installer

A one-key script to setup Cloak plugin with Shadowsocks on your server
GNU General Public License v3.0
420 stars 88 forks source link

cloak2 installer reset firewalld list #26

Closed A2116 closed 4 years ago

A2116 commented 4 years ago

during installation script completely reset firewalld open ports so, for example, ssh login to server become impossible or any other service that runs on specific port becomes inaccessible

HirbodBehnam commented 4 years ago

Hello What operating system?

A2116 commented 4 years ago

centos7

HirbodBehnam commented 4 years ago

Were you using iptables before that? (Did the script overwrite the iptables rules?)

A2116 commented 4 years ago

I do not change system defaults, everything is in its stock configuration

HirbodBehnam commented 4 years ago

Please note that in Centos 7, the script tries to install firewalld that probably overwrites the iptables rules. If you are using iptables, do not install firewalld when scripts asks you if you want to install it or not. Also note that if you choose to do not install the firewall, you have to add the cloak ports in iptables manually.

A2116 commented 4 years ago

the script does not ask for installation of firewalld

HirbodBehnam commented 4 years ago

If the firewalld is already installed, it will start it and add the cloak rules to it.

HirbodBehnam commented 4 years ago

Maybe I move the systemctl start firewalld to the block of code that installs it.