Simple shell script to enable or disable the port to public by iptables

Due to the reason that I need to change the SSH Port for my vps to gain more security.
I need to change my ssh port and disable the default ssh port 22 on many new VPS.
So, I’m try to set me free from this work by using shell script by one line.
I share my one key script with you now.

You also can download this script from the url below:

wget http://down.vps.la/shell/f.sh

Code:

 

You can use this by:
enable 1314 to the public

disable 1314 to the public

 

未经允许不得转载:VPS啦 » Simple shell script to enable or disable the port to public by iptables

赞 (0) 打赏

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏