mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 01:29:26 +08:00
up
This commit is contained in:
@@ -33,7 +33,7 @@ if [ -f /etc/init.d/iptables ];then
|
||||
iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 888 -j ACCEPT
|
||||
iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 7200 -j ACCEPT
|
||||
iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT
|
||||
iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 30000:40000 -j ACCEPT
|
||||
# iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 30000:40000 -j ACCEPT
|
||||
service iptables save
|
||||
|
||||
iptables_status=`service iptables status | grep 'not running'`
|
||||
@@ -57,7 +57,7 @@ if [ ! -f /etc/init.d/iptables ];then
|
||||
firewall-cmd --permanent --zone=public --add-port=888/tcp
|
||||
firewall-cmd --permanent --zone=public --add-port=7200/tcp
|
||||
firewall-cmd --permanent --zone=public --add-port=3306/tcp
|
||||
firewall-cmd --permanent --zone=public --add-port=30000-40000/tcp
|
||||
# firewall-cmd --permanent --zone=public --add-port=30000-40000/tcp
|
||||
|
||||
|
||||
sed -i 's#AllowZoneDrifting=yes#AllowZoneDrifting=no#g' /etc/firewalld/firewalld.conf
|
||||
|
||||
@@ -25,7 +25,7 @@ if [ -f /usr/sbin/ufw ];then
|
||||
ufw allow 888/tcp
|
||||
ufw allow 7200/tcp
|
||||
ufw allow 3306/tcp
|
||||
ufw allow 30000:40000/tcp
|
||||
# ufw allow 30000:40000/tcp
|
||||
|
||||
fi
|
||||
|
||||
@@ -47,7 +47,7 @@ if [ ! -f /usr/sbin/ufw ];then
|
||||
firewall-cmd --permanent --zone=public --add-port=888/tcp
|
||||
firewall-cmd --permanent --zone=public --add-port=7200/tcp
|
||||
firewall-cmd --permanent --zone=public --add-port=3306/tcp
|
||||
firewall-cmd --permanent --zone=public --add-port=30000-40000/tcp
|
||||
# firewall-cmd --permanent --zone=public --add-port=30000-40000/tcp
|
||||
|
||||
# fix:debian10 firewalld faq
|
||||
# https://kawsing.gitbook.io/opensystem/andoid-shou-ji/untitled/fang-huo-qiang#debian-10-firewalld-0.6.3-error-commandfailed-usrsbinip6tablesrestorewn-failed-ip6tablesrestore-v1.8
|
||||
|
||||
@@ -30,7 +30,7 @@ if [ -f /etc/init.d/iptables ];then
|
||||
iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 888 -j ACCEPT
|
||||
iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 7200 -j ACCEPT
|
||||
iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT
|
||||
iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 30000:40000 -j ACCEPT
|
||||
# iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 30000:40000 -j ACCEPT
|
||||
service iptables save
|
||||
|
||||
iptables_status=`service iptables status | grep 'not running'`
|
||||
@@ -56,7 +56,7 @@ if [ "${isVersion}" == '' ];then
|
||||
firewall-cmd --permanent --zone=public --add-port=888/tcp
|
||||
firewall-cmd --permanent --zone=public --add-port=7200/tcp
|
||||
firewall-cmd --permanent --zone=public --add-port=3306/tcp
|
||||
firewall-cmd --permanent --zone=public --add-port=30000-40000/tcp
|
||||
# firewall-cmd --permanent --zone=public --add-port=30000-40000/tcp
|
||||
firewall-cmd --reload
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -32,7 +32,7 @@ if [ -f /etc/init.d/iptables ];then
|
||||
iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 888 -j ACCEPT
|
||||
iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 7200 -j ACCEPT
|
||||
iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT
|
||||
iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 30000:40000 -j ACCEPT
|
||||
# iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 30000:40000 -j ACCEPT
|
||||
service iptables save
|
||||
|
||||
iptables_status=`service iptables status | grep 'not running'`
|
||||
@@ -56,7 +56,7 @@ if [ ! -f /etc/init.d/iptables ];then
|
||||
firewall-cmd --permanent --zone=public --add-port=888/tcp
|
||||
firewall-cmd --permanent --zone=public --add-port=7200/tcp
|
||||
firewall-cmd --permanent --zone=public --add-port=3306/tcp
|
||||
firewall-cmd --permanent --zone=public --add-port=30000-40000/tcp
|
||||
# firewall-cmd --permanent --zone=public --add-port=30000-40000/tcp
|
||||
|
||||
|
||||
sed -i 's#AllowZoneDrifting=yes#AllowZoneDrifting=no#g' /etc/firewalld/firewalld.conf
|
||||
|
||||
@@ -25,7 +25,7 @@ if [ -f /usr/sbin/ufw ];then
|
||||
ufw allow 888/tcp
|
||||
ufw allow 7200/tcp
|
||||
ufw allow 3306/tcp
|
||||
ufw allow 30000:40000/tcp
|
||||
# ufw allow 30000:40000/tcp
|
||||
|
||||
fi
|
||||
|
||||
@@ -45,7 +45,7 @@ if [ ! -f /usr/sbin/ufw ];then
|
||||
firewall-cmd --permanent --zone=public --add-port=888/tcp
|
||||
firewall-cmd --permanent --zone=public --add-port=7200/tcp
|
||||
firewall-cmd --permanent --zone=public --add-port=3306/tcp
|
||||
firewall-cmd --permanent --zone=public --add-port=30000-40000/tcp
|
||||
# firewall-cmd --permanent --zone=public --add-port=30000-40000/tcp
|
||||
|
||||
# fix:debian10 firewalld faq
|
||||
# https://kawsing.gitbook.io/opensystem/andoid-shou-ji/untitled/fang-huo-qiang#debian-10-firewalld-0.6.3-error-commandfailed-usrsbinip6tablesrestorewn-failed-ip6tablesrestore-v1.8
|
||||
|
||||
Reference in New Issue
Block a user